Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

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, AmpGSignal_Bilateral, 200, double maxval ,THRESH_TOZERO );

any idea would be appreciated...

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, AmpGSignal_Bilateral, 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);

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);