Top "Mat" questions

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

How to convert mat to array2d<rgb_pixel>?

I created dll for the dlib face landmark code there used array2d to get the image, but i like …

c++ opencv image-processing rgb mat
Convert mat file to pandas dataframe

I want to convert this file to pandas dataframe. import pandas as pd import scipy.io mat = scipy.io.loadmat(…

python pandas dataframe mat
How to convert a heap dump in android to eclipse format

Im attempting to analyze a memory leak that has been driving me crazy for weeks, I found out about the …

android eclipse heap-dump mat
OpenCV How to initialize Mat with 2D array in JAVA

Suppose, I have a 2D array initialized with values, how do I put this value in a Mat object in …

opencv multidimensional-array mat
How to read the text file and create Mat object in C++

Hi i have being able to write a Mat object in to a text file. As follows, std::fstream outputFile; …

c++ opencv mat
How to initialize a cv::Mat using a vector of floats?

Is there a way of initializing a opencv cv::Mat using a vector<float> object? Or do I …

opencv vector mat
Convert RGB array to Mat (OpenCv)

I've been trying to convert an array [R,G,B,..] in Mat object with opencv. But is returning wrong data, …

c opencv rgb mat
Issue converting unsigned char * image to OpenCV Mat

I have an issue parsing the image data from the frame grabber into an OpenCV Mat format. I can get …

c++ opencv image-processing computer-vision mat
how to read Mat v7.3 files in python ?

I am trying to read the mat file given in the following website, ufldl.stanford.edu/housenumbers, in the file …

python matlab hdf5 mat h5py
Crop half of an image in OpenCV

How can I crop an image and only keep the bottom half of it? I tried: Mat cropped frame = frame(…

opencv crop mat roi