Ask Your Question

Threshold values problem

asked 2014-09-23 00:53:01 -0500

jamesnzt gravatar image

In my program I worked with leaf image. i use threshold values for obtaining green regions in HSV color space. H: 45 to 95 s: 55 to 110

and for erosion and dilation i specified erosion_size and dilation_size as 20,10. now the problem is i have another image of leaf taken with less light intensity. Now the threhold valuers needs to be changed. What i have to do when i work on real-time image? Whether i should not use thresholding ? if so any other alternative for that?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2014-09-23 01:08:52 -0500

Hi @James!

Have a look at this Histogram back projection method in opencv.

edit flag offensive delete link more


Thanks for your answer @Balaji Renganathan i cant get your idea please explain how i can use back projection instead of threshold function

jamesnzt gravatar imagejamesnzt ( 2014-09-23 01:41:14 -0500 )edit

Just relate your leaf Histogram to Hand/Skin in this example. Read about it & you may find that interesting.

Balaji R gravatar imageBalaji R ( 2014-09-23 01:58:32 -0500 )edit
Login/Signup to Answer

Question Tools


Asked: 2014-09-23 00:53:01 -0500

Seen: 79 times

Last updated: Sep 23 '14