Automatic Segmentation of a region [message #29633] |
Sun, 03 March 2002 13:42 |
idlfreak
Messages: 47 Registered: October 2001
|
Member |
|
|
Hi,
I have a small problem in segmentation. I first threshold a image and
then i perform morphological operations on the binary image. Using
label_regions i've identified all the blobs. I used the where function
to get the regions in each blob. I have one huge blob and the rest are
small. I want to make all the pixels in the small blob as 0.
I tried the following:
Method1:
im = Origimage and morphimage
tv,image
Method 2:
for j = 1, noofblobs do begin
region = Where (morphimage eq j)
Area = n_elements(region)
if (Area le 80000) then begin
morphimage[region] = 0B
endif
endfor
Both didn't work and i get a black screen.
Can anybody please help me.
Thank you for ur help in advance.
Cheers,
Akhila.
|
|
|