Ask Your Question

ati's profile - activity

2017-05-10 08:51:22 -0600 received badge  Famous Question (source)
2016-02-10 03:44:35 -0600 received badge  Good Question (source)
2015-12-16 06:10:31 -0600 received badge  Notable Question (source)
2015-06-18 12:04:14 -0600 received badge  Popular Question (source)
2015-01-02 00:17:30 -0600 received badge  Famous Question (source)
2014-12-09 13:58:24 -0600 marked best answer Finding index of an image

I could find contours of an object in an image by using findContours.

and by using this I could crop the object contours.

Dist.copyTo(crop, mask);

now, I need to find the index of crop Image in Dist image.

to do that I converted the Mat into the float to pointer and I called it cropped!

and then I tried this:

for(int j=0; j < (Dist.rows * Dist.cols); j++){
            if(cropped[j] != 0 ){
                row = (j / width) + ((Dist.rows));
        col = (j % width) + (Dist.cols);

            }
            Index.push_back(std::make_pair(row,col));
            }

But it does not give me any correct answer...

2014-12-09 13:57:36 -0600 marked best answer get memory allocation error/ normalization

To do normalization using opencv I am using this function:

cvNormalize(Src.data, Src.data, 255, 0, CV_MINMAX);

type of the input is Mat...to be able to use it as a pointer I have used .data but I get memory allocation error when I try this function...

Does anyone have any idea?

Thanks in advance

2014-11-18 09:02:52 -0600 received badge  Nice Question (source)
2014-10-04 13:55:47 -0600 marked best answer max and min values in a Mat

Hi..How do I get the max and min value in a Mat? Is there any function in Opencv which return these two values?

2014-10-01 00:24:57 -0600 received badge  Notable Question (source)
2014-09-11 07:25:35 -0600 received badge  Student (source)
2014-08-22 04:05:58 -0600 marked best answer how to find the coordinate of top/bottom/left and right points

how do I find the coordinate of these 4 points in a detected object(which does not have any specific shape)? image description

2014-08-19 16:36:57 -0600 received badge  Popular Question (source)
2014-06-07 06:52:04 -0600 asked a question Load a text file(pixel values) / Opencv / C++

what is opencv equivalent of mat2gray using in Matlab?

I have a text file contains pixel values of an Image. I want to import it to the code and then normalize it...

How do I load it?

Thanks in advance..

2014-04-12 10:47:31 -0600 asked a question Gaussian Filter Algorithm

Does anyone know How Gaussian filter algorithm apply to an image(in OPENCV)that is this much fast?

2014-03-29 14:34:31 -0600 asked a question Using matlab for visualization

Hi, I have a question, but it is not about opencv. It is about Matlab. Actually, I could use opencv filtering functions to filter my image. Now, I want to import this Image(Matrix) to matlab and then visualize it as a surface.

something like this file: link text

How do I do that?

Thanks in advance..

2014-02-11 04:17:56 -0600 commented answer threshold function

shouldn't I use "THRESHOLD TO ZERO" as its type? if yes, what should I write in maxval part?!

2014-02-11 04:06:02 -0600 commented question threshold function

they should not be changed..if it is 587 after thresholding should remain 587!

2014-02-11 03:40:20 -0600 asked a question threshold function

I am getting creazy with Thresholding function in opencv...

I want to keep all values higher than 200 and remove rest of them!

seems I should use this THRESH_TOZERO type but I do not know what should I write instead of double maxval

threshold( Src2, dst, 200, double maxval ,THRESH_TOZERO );

any idea would be appreciated...

EDIT:

Thanks for your comments, I changed it like this but still I do not get the correct result:

#define THRESHOLD TO ZERO 3
threshold(Src2, dst, 200, CV_THRESH_BINARY , 3);
2014-02-06 07:05:33 -0600 edited question derivative

I have a basic question in image processing...

I want to know what would be the first derivative of a pixel in an image? doed it have any meaning?

and what would be the result of calculating structure tensor at each pixel?

Thanks in advance..