Erosion and dilation [message #28933] |
Tue, 22 January 2002 21:54 |
idlfreak
Messages: 47 Registered: October 2001
|
Member |
|
|
HI,
I have a image in this link given below. This image is a segmented
and thresholded binary image. I want to perform morphological
operations so that i can get the arteries and veins only.
http://www.geocities.com/idlfreak/image.jpg
this is what i tried:
st_el = 1
B=REPLICATE(1,st_el,st_el)
image2=ERODE(DILATE(image1,B),B)
WINDOW,2,XSIZE=imSize[1],YSIZE=imSize[2]
TVSCL,CONGRID(image2,imSize[1],imSize[2])
when i enter a value of 1 for the structuring elements. the image is
completely black and for a value of 2 its completely white. I have no
idea why that happens. I'm not able to enter a value that's floating
also.
Can anybody help me with this please.
thank you in advance....
Cheers,
Akhila.
|
|
|