Top "Mat" questions

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

UnsatisfiedLinkError: n_Mat while using opencv2.4.3 with android 4.0

i am using opencv in android. but when i am adding Mat() in my code my application unexpectedly stops after …

android opencv logcat mat
Convert char array to Opencv Mat

I have defined an array char buf[], and need to convert it into Opencv Mat. Is there a way? char …

opencv char mat
Right way to compute cosine similarity between two arrays?

I am working on a project that detects some features of two input images(handwritten signatures) and compares those two …

c++ arrays opencv mat cosine-similarity
Print coordinates and pixel values using Mouse callback

This is the code which i tried, only the coordinate values are printed but not the pixel values. #include <…

opencv mouseevent cout mat
Compress Mat into Jpeg And save the result into memory

I know that the function cv::imwrite can compress a cv::Mat into Jpeg and save it to a file. …

c++ opencv jpeg mat
Get frame from video with libvlc smem and convert it to opencv Mat. (c++)

[UPDATED WITH PARTIAL ANSWER] Here is my code: void cbVideoPrerender(void *p_video_data, uint8_t **pp_pixel_buffer, int …

c++ opencv image-processing libvlc mat
What is meant by img.at<uchar>(i,j)?

Its kind a basic question. I don't know what this structure. img.at<uchar>(i,j) is meant …

c++ opencv mat
convert keypoints to mat or save them to text file opencv

I have extracted SIFT features in (opencv open source) and they are extracted as keypoints. Now, I would like to …

c++ opencv vector mat keypoint
What does Mat::checkVector do in OpenCV?

I tried to use the following function in OpenCV (C++) calcOpticalFlowPyrLK(prev_frame_gray, frame_gray, points[0], points[1], status, err, …

c++ opencv mat assertion
Getting ROI from a Circle/Point

I have two points in an image, centre left eye (X, Y) and centre right eye (X, Y). I have …

c++ opencv mat roi