|[mmdcells] [Up] [mmdconcrete]||Demonstrations|
The input image is a gray-scale image of many different chicken parts. The purpose is to classify them in breast, legs+tights, tights and wings.
The input image is read.
a = mmreadgray('chickparts.tif');
Measure the area o each object and put this value as the pixel object value. For displaying purpose, overlay the background as red in the right image below.
The wings are detected by finding objects with area 100 and 2500 pixels. The tights are selected as connected objects with area between 2500 and 5500 pixels.
Overlay the contour of the detected parts over the original image
mmshow(a, mmgradm(wings), mmgradm(tights), mmgradm(legs),mmgradm(breast));
|a, mmgradm(wings), mmgradm(tights), mmgradm(legs),mmgradm(breast)|
|[mmdcells] [Up] [mmdconcrete]|
|Copyright (c) 1998-2008 by SDC Information Systems|