Ask Your Question
0

Threshold values problem

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

jamesnzt gravatar image

updated 2020-10-10 12:54:02 -0600

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
0

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

Hi @James!

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

edit flag offensive delete link more

Comments

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 -0600 )edit
1

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 -0600 )edit

Question Tools

Stats

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

Seen: 165 times

Last updated: Sep 23 '14