GIVEN: The following code fragment: EXPECTATION: Should produce, in my understanding, the following output: OUTPUT: Instead, the output is as ...
GIVEN: The following code fragment: EXPECTATION: Should produce, in my understanding, the following output: OUTPUT: Instead, the output is as ...
GIVEN: A matrix (N, 3) build from a point cloud, i.e. a vector<Point3d> Thus having pcMat to be something like: GOAL: An efficient metho ...
I am using a 3rd party SDK in my project which accepts void * pointer for setting user specific metadata. But my metadata is in cv::Mat format thus I ...
I have cv::Mat and my custom struct that holds the data. Is it safe to pass the data from cv::Mat to my structure like this? Basically, I need Open ...
I have a const std::vector<cv::Mat> containing 3 matrices (3 images), and in order to use each image further in my program I need to save them i ...
I am reading the QByteArray using QTcpSocket and converting the array into the cvMat image. to display the image using imshow().but i am getting gray ...
I am looking for a fast and reliable way to convert xt::xarray <-> cv::mat / cv::mat1f. In my specific case, I what it for 2 dimensions and data ...
I am completely new to OpenCV and I'm trying to initialize two cv::Mat matrices from two different type of data. One is simple one-channel array of ui ...
I want to implement a function that takes an image as optional parameter. In case an image is passed, I want to use it - otherwise I want to calculate ...
I cannot figure out how to properly access elements of a 3D cv::Mat array. The following code runs in Vivado HLS and fails with a non-descriptive erro ...
Either I am doing something very wrong, or there is a problem with cv::max. I am calling it in the most obvious way possible: #include<iostream> ...
Suppose I have three char arrays r[1024], g[1024], b[1024] which contains the rgb data of one image. How could I create a cv::Mat with these channel d ...
I'm loading image into cv::Mat. For some reason, when I'm printing each pixel data, color doesn't match with actual image pixels. Clearly, there is no ...
I am trying to resize a Mat on the fly which I am overlaying on to another image. The image is stored on the IOS device in the Assets.xcassets folder ...
I'm having an YUYV image buffer in cvMat object (snippet shown below). I had to convert this cvMat object to IplImage for color conversion. I tried ...
I'm using opencv in a Qt app. I've seen some generic c++ ways of printing out the values of a Mat and have done so with Ideally I could have a QSt ...
Does the second channel of a C2 image represent the alpha channel or do they just fill the gap between C1-C3,C4? ...
My code opens image with road signs, detects them, rescale to specified size and then puts them into matrix. It all works properly when there is o ...
I am trying to convert an UIImage to cv::Mat so I can use the LineIterator OpenCV class on it. I am using the code provided by the opencv documentatio ...
How is the comma-separated initializer of OpenCV Mat implemented with C++? How does the "1" get into the Mat after the "0"? ...