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...
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...
...
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...
4
Solved
Mat b = new Mat();
Bitmap bmp = getIntent().getExtras().getParcelable("image_send");
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContent...
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...
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...
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...
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....
1
1
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...
4
Solved
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 ...
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...
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...
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 ...
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
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.
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...
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.