Top "Mat" questions

Use this tag for questions dealing with opencv cv::Mat (or cvMat) data structure.

c++ and opencv get and set pixel color to Mat

I'm trying to set a new color value to some pixel into a cv::Mat image my code is below: …

c++ opencv image-processing pixel mat
Pandas: Creating DataFrame from Series

My current code is shown below - I'm importing a MAT file and trying to create a DataFrame from variables …

python pandas mat
Change type of Mat object from CV_32F to CV_8U

I tried to display an image of CV_32F type using imshow function but it showed a WHITE image. In …

opencv floating-point mat
How to write a Float Mat to a file in OpenCV

I have a matrix Mat B(480,640,CV_32FC1); containing floating values..I want to write this matrix to a file …

c++ opencv file-io floating-point mat
Conversion from IplImage* to cv::MAT

I searched to convert an IplImage* to Mat, but all answers were about the conversion to cvMat. How, can I …

c++ opencv iplimage mat
convert Bitmap to Mat after capture image using android camera

Mat b = new Mat(); Bitmap bmp = getIntent().getExtras().getParcelable("image_send"); @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); …

android opencv bitmap mat
Can I determine the number of channels in cv::Mat Opencv

This maybe rudimentary, but is it possible to know how many channels a cv::Mat has? For eg, we load …

c++ opencv mat
Converting `BufferedImage` to `Mat` in OpenCV

How can I convert a BufferedImage to a Mat in OpenCV? I'm using the JAVA wrapper for OpenCV(not JavaCV). …

java opencv bufferedimage mat
load image with openCV Mat c++

I want to load an image using Mat in openCV My code is: Mat I = imread("C:/images/apple.jpg", 0); …

c++ opencv mat loadimage
How to edit/read pixel values in OpenCv from Mat variable?

I am looking for an efficient way for editing/reading pixels from Mat (or Mat3b) variable. I have used :…

c++ opencv getpixel mat