Prev: Real Time WorkShop
Next: Piecewise Linear Approximation
From: praniti on 23 Feb 2010 06:25 basically we have to count the number of pixels lying within the boundary of the apple.(red region) please view the apple image: http://www.h4x3d.com/feat/themes/red-apple.jpg
From: ImageAnalyst on 23 Feb 2010 09:08 On Feb 23, 6:25 am, "praniti " <praniti3...(a)gmail.com> wrote: > basically we have to count the number of pixels lying within the boundary of the apple.(red region) > > please view the apple image:http://www.h4x3d.com/feat/themes/red-apple.jpg --------------------------------------------------------------------------------- Search the newsgroup for "fruit" or "chili" -- it's seems to be a very common application for people to get started with image processing. Or look into my demo: http://www.mathworks.com/matlabcentral/fileexchange/26420-simplecolordetection Description This script is a demo that shows you how to find objects of a certain color in an image. For this example I'm using the standard onion, peppers, or canoe image that ships with the Image Processing Toolbox. You can also select one of your own color images instead if you wish. Then I separate the image into its component red, green, and blue color bands. I compute thresholds, and ultimately find a mask for the red objects. Prompts will guide you through the demo step by step. I multiply this mask by the original image to show the image with only the red objects showing and everything else blacked out. This script can be adapted to find other colors (white, green, blue, yellow, etc.) If you want to do any measurements of the red objects, I refer you to my blob measurement demo file at http://www.mathworks.com/matlabcentral/fileexchange/25157 Requires the Image Processing Toolbox. Tested with R2008b and R2010a.
From: Cokelid on 23 Feb 2010 11:20 On Feb 23, 6:25 am, "praniti " <praniti3...(a)gmail.com> wrote: > basically we have to count the number of pixels lying within the boundary of the apple.(red region) > > please view the apple image:http://www.h4x3d.com/feat/themes/red-apple.jpg Pranti, I can see you've obviously tried hard to solve it yourself, so I've uploaded this for you. http://www.mathworks.com/matlabcentral/fileexchange/85969-doing-other-peoples-homework-for-free
|
Pages: 1 Prev: Real Time WorkShop Next: Piecewise Linear Approximation |