|
"meghna " <meghn9488@gmail.com> wrote in message <gv3obl$93$1@fred.mathworks.com>...
> hey ppl.......
> i need urgent help...if there's anyone out there who can tell me how to do thresholding and erosion of an image in order to select a few sections of the image only...
> say,...for the image of a basket of fruits filled with 5 fruits....i wanna only get the apples and nothing else...how do i perform thresholding on the image and then erosion to get rid of everything but the apples.
> and if there is any other technique to do so..
> P.S.-its a colored image
--------------------------------------------------------------------------------------
Well you might do a search of this newsgroup for "blobMeasurements" where I've posted useful demos many times. The code illustrates thresholding and measurement. You'd maybe just need to adapt it to convert to HSV color space with rgb2hsv() to get an image where the red objects are in a certain gray scale range, and then call imerode(), but those easy things to do. If you still get stuck after that, then post your code and test image and we might see what can be done to improve/fix it.
Good luck,
ImageAnalyst
And what a stroke of genius to come up with your subject heading! So much more informative than something like 'need image processing help" or "color segmentation problem." The only way to improve it would be with the highly popular technique of adding a dozen exclamation points after it!!!!!!!!!!!!!!!!!!!!!
|