Top "Mat" questions

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

OpenCv create 3 channel Mat from continuous data array

I'd like to create an OpenCV 3-channel Mat using data allocated elsewhere where the pixels of each channel are together, …

c++ opencv image-processing mat opencv-mat
OpenCV HLS color space range

Look my code, why the second line in console is 170 10 121. H is 170, S is 10, but why L is 121. Because L …

opencv mat hsl
Java and OpenCV: Calculate Median / Mean / Stdev value of MAT (Gray-Image)

I've got an image as grayscale image using Mat m = Highgui.imread(path, Highgui.CV_LOAD_IMAGE_GRAYSCALE); in Java …

java opencv image-processing mat
how to modify values of Mat according to some condition in opencv?

In Matlab a(a>50)=0 can replace all elements of a that are greater than 50 to 0. I want to do …

matlab opencv image-processing mat
Get the mean of sequence of frames

I want to calculate the mean of the sequence of frames by adding them and then divide by the total …

opencv element frames mean mat
Mat and Vec_ types multiplication

Is there any easy way to multiplicate Mat and Vec_? (Provided, that they have proper sizes, e.g.: Mat_<…

opencv mat
Filter OpenCV Mat for NAN values

Is there a direct way to create a mask where values in a cv::Mat_<double> are compared …

c++ opencv nan mat
conversion between Mat and Mat1b/Mat3b

I want to match my code into a given interface. Inside my class OperateImage in all methods I use cv::…

c++ opencv image-processing mat
Print opencv matrix content in Java

I have openCV matrix in Java and I would like to print out the content of it.I tried the …

java android opencv mat