Prev: conflict of pcolor and contour
Next: reshaping matrix
From: Priyanka Tiwari on 2 May 2010 09:55 hello sir, i am working on segmentation of thread like objects in the image .but a lot of small loops and noise is present in the image .sir plz help me to remove all those small unwanted objects. i want only long threads to be present in the the output image. sir plz help me link to the image is this- http://drop.io/seg_thread
From: ImageAnalyst on 2 May 2010 11:21 First use bwlabel and then call regionprops. Then use ismember to filter on the ratio of perimeter squared to area. Thread-like structures will have a high value for this ratio. You can also use bwareaopen on the binary image prior to labeling, or use ismember on the measured areas returned from regionprops, to get rid of small ojbects - but that will get rid of small thread-like objects as well unless you take special care with ismember to include the P^2/A ratio in your exclusion criteria. Go here for more info and an example on using ismember to filter regionprops measurements: http://www.mathworks.com/matlabcentral/fileexchange/25157
|
Pages: 1 Prev: conflict of pcolor and contour Next: reshaping matrix |