Ask Your Question

robro's profile - activity

2018-10-13 12:08:53 -0600 commented question Roi to small?

:D Yes, i missed that! Thank you very much, problem solved ;-)

2018-10-13 11:50:59 -0600 asked a question Roi to small?

Roi to small? Hi, I am using ROIs to crop my images and I just noticed that the ROIs are always one pixel to small. Ac

2018-08-01 12:27:36 -0600 commented answer Efficient calculation with multiple cv::Mat

Thank you very much! This is exactly what I was looking for :-)

2018-08-01 12:27:18 -0600 commented answer Efficient calculation with multiple cv::Mat

Thank you very much!

2018-08-01 12:27:02 -0600 marked best answer Efficient calculation with multiple cv::Mat

Hello, I need to do some math with my matrices and I would like to know the most performant way. I have the following vectors:

std::vector<cv::Mat> b //200 matrices with 1 row and 1000 elements per row
std::vector<cv::Mat> w //200 matrices with 1 row and 1000 elements per row 
std::vector <cv::Mat>image //200 matrices with 500 rows and 1000 elements per row

All vectors with the same index belong together. I need to calculate the following for every Mat of the vectors with the same index and every pixel in the image:

image(x, y) = (image(x,y) – b(x)) / (w(x) – b(x))  * 0,9

I would start like the following:

for(int i=0; i<image.size(); i++) 
{
//And here? 
//Usage of the β€œat”-method or pointer arithmetic?
//Or is there an operation which can calculate everything automatically line by line?
}

Thank you very much :-)

2018-08-01 00:23:25 -0600 commented question Efficient calculation with multiple cv::Mat

Thanks for the idea! I just had another one. I could make the number of rows of "b" and "w" dynamically the same as imag

2018-07-31 15:33:44 -0600 asked a question Efficient calculation with multiple cv::Mat

Efficient calculation with multiple cv::Mat Hello, I need to do some math with my matrices and I would like to know the

2018-07-02 11:44:22 -0600 commented answer Create a vector of Mat from a three dimensional vector

Thanks! One last question... How can Mat's memory be consecutive if the end dimensions (rows, cols) are not known at the

2018-07-02 11:39:19 -0600 received badge  Supporter (source)
2018-07-02 11:39:16 -0600 marked best answer Create a vector of Mat from a three dimensional vector

Hello,

I have a vector of the type

std::vector< std::vector< std::vector  <uint16_t> > >

and data is stored in the following order: vector[col][channel][row].

I would like to create a vector of the type std::vector<cv::Mat> in which a grayscale image of each channel is stored. Also, the Mat vector should point to the original data.

The original vector changes dynamically as new columns are appended and so the Mat vector should grow as well.

What is the best way to create, fill and extend the Mat vector?

Thank you very much!

2018-07-02 11:39:16 -0600 received badge  Scholar (source)
2018-07-02 11:12:23 -0600 commented question Create a vector of Mat from a three dimensional vector

Sorry, I was not clear enough. The original format is uchar* buffer for eyery image line. From this buffer I need to cas

2018-07-02 10:30:40 -0600 commented question Create a vector of Mat from a three dimensional vector

Yes and I always get a buffer with one image line.

2018-07-02 10:12:25 -0600 commented question Create a vector of Mat from a three dimensional vector

This is a hyperspectral cube coming from BIL format (http://desktop.arcgis.com/en/arcmap/10.3/manage-data/raster-and-ima

2018-07-02 09:15:42 -0600 asked a question Create a vector of Mat from a three dimensional vector

Create a vector of Mat from a three dimensional vector Hello, I have a vector of the type "std::vector< std::vector&