mat Questions

4

Solved

I need to implement a function that receives a string containing the bytes of an image (received via boost socket connection) and converts the info into an OpenCV cv::Mat. I also know the width an...
Chimney asked 4/12, 2012 at 14:50

2

Solved

I have extracted SIFT features in (opencv open source) and they are extracted as keypoints. Now, I would like to convert them to Matrix (With their x,y coordinates) or save them in a text file... ...
Ritz asked 4/10, 2011 at 4:32

2

Solved

I have a mat A of type CV_32F and a mask M with binary value 0 and 255. For example, A = [0.1 0.2; 0.3 0.4] M = [1 0 ; 0 0 ] I want to get the result of A&B = [0.1, 0;0 0] While bitwise op...
Crowell asked 3/4, 2015 at 12:32

4

Solved

Mat b = new Mat(); Bitmap bmp = getIntent().getExtras().getParcelable("image_send"); @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContent...
Clop asked 30/6, 2013 at 12:19

3

In OpenCV, I see imread() and VideoCapture() both take a string to a file path of multiple extensions. Is there a way to get a list of extensions that are supported by them? For example, getting a ...
Bostow asked 31/12, 2013 at 5:55

1

Solved

I want to convert this file to pandas dataframe. import pandas as pd import scipy.io mat = scipy.io.loadmat('cardio.mat') cardio_df = pd.DataFrame(mat) I get this error : Exception: Data must b...
Brogan asked 10/7, 2017 at 8:22

1

Solved

#include <iostream> #include <opencv2/opencv.hpp> using namespace std; using namespace cv; int main() { Mat a = (Mat_<double>(3, 3) << 0, 1, 2, 3, 4, 5, 6, 7, 8); cout ...
Adept asked 5/7, 2017 at 13:35

3

Solved

In Matlab a(a>50)=0 can replace all elements of a that are greater than 50 to 0. I want to do same thing with Mat in OpenCV. How to do it?
Pretypify asked 15/1, 2015 at 14:19

2

Solved

I was working on homography and whenever I try to check the values of H matrix (type CV_64F) using H.at<float>(i, j) I get random numbers(sometimes garbage value). I want to access pixel valu...
Silverman asked 28/2, 2013 at 7:47

1

std::vector<cv::Mat1f> mat = std::vector<cv::Mat1f>(10,cv::Mat1f::zeros(1,10)); mat[0]+=1; for(size_t i=0;i<mat.size();i++) std::cout<<mat[i]<<std::endl; And it prints...
Tight asked 4/4, 2017 at 8:37

1

Solved

I'd like to create an OpenCV 3-channel Mat using data allocated elsewhere where the pixels of each channel are together, unlike the data for an OpenCV Mat where the data from different channels is ...
Scevo asked 3/4, 2017 at 11:52

3

Solved

I need to initialize these array values directly into a Mat object. I tried using obj.put(i,j,data) but this does not work and the Mat object is still empty. i need this in java data [] = {103547....
Smatter asked 3/4, 2017 at 8:39

1

I am doing native development with android. I can't use OpenCV in java. I will give Bitmap as input to jni. I found a way to convert Bitmap-> Mat. Then I can process() Mat image type. Now I need to...
Workaday asked 22/11, 2016 at 1:45

1

I have already looked at how to get sub image by using OpenCV in java api, but this did not help I am curious how to create a sub image of a Mat image that I have loaded in from a file. When I run...
Divulgence asked 27/2, 2016 at 5:51

2

Solved

I have an app that prints a 3x3 cv::Mat on the iPhone screen. I need to reduce the decimals, as the screen is not so big, see: [1.004596557012473, -0.003116992336797859, 5.936915104939593; -0.007...
Escamilla asked 7/6, 2013 at 20:23

4

I would like to confirm whether cv::Mat::release() method is similar to free() in C programming, i.e., its deallocates the Matrix data from the memory. In particular, I would like to understand th...
Philter asked 8/4, 2013 at 7:30

4

Solved

I would like to display Mat objects from OpenCV directly with JavaFX. I have seen that it is possible to convert a Mat object into a BufferedImage. But as far as I know you can't display a Buffered...
Roseleeroselia asked 3/1, 2015 at 13:4

1

I would like to read using python the following dataset: http://ufldl.stanford.edu/housenumbers/train_32x32.mat I had loaded this mat file using io.loadmat('train_32x32.mat') but when I am trying ...
Hampden asked 21/3, 2015 at 17:4

5

Solved

I'm trying to implement a streaming service using OpenCV and sockets. The server side loads a given image and sends it to the client, which receives it through the socket and displays it. I'm havin...
Keitt asked 1/12, 2013 at 16:41

2

Solved

I want to use OpenCV to process my desktop as if it were a video stream. I am familiar with OpenCV. I am not familiar with the Windows API. I realize there are other ways to capture the screen, but...
Borzoi asked 3/1, 2013 at 23:7

1

Solved

I've been reading about openCV recently and its cv::Mat data structure. In the documentation, the author keeps mentioning about multi-channel array and multi-channel matrix. Can some one give me a ...
Gemma asked 13/2, 2016 at 15:51

5

Solved

I searched to convert an IplImage* to Mat, but all answers were about the conversion to cvMat. How, can I do it? and what is the difference between Mat and cvMat? Thanks in advance
Sluice asked 10/4, 2013 at 11:53

1

Solved

I have been through the documentation and didn't get a clear detailed description about UMat; however I think it has something to relate with GPU and CPU. Please help me out. Thank you.
Macnamara asked 9/11, 2015 at 4:42

1

Solved

Is there a more efficient way to load a large Mat object into memory than the FileStorage method in OpenCV? I have a large Mat with 192 columns and 1 million rows I want to store locally in a file...
Recrimination asked 1/9, 2015 at 13:27

2

I want to create a matrice in opencv for my project of raytracing. This is the code I have come up: #include "Windows.h" #include "core/mat.hpp" #include "core/core.hpp" #include "core/types_c.h" ...
Sheffield asked 9/1, 2014 at 21:23

© 2022 - 2024 — McMap. All rights reserved.