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
"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!!!!!!!!!!!!!!!!!!!!!
NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for
all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content.
Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available
via MATLAB Central.
Read the complete Terms prior to use.