comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Contour
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Contour [message #15318 is a reply to message #8458] Fri, 30 April 1999 00:00 Go to previous message
VU KHAC Tri is currently offline  VU KHAC Tri
Messages: 25
Registered: March 1999
Junior Member
Hi,
Suppose you have 2D BW image (0-black, 1-white)
img1 = AddBorderToImage(img, 1, 1, 1, 1)
img2 = shift(img1,1,1)
img3 = shift(img1,0,1)
img4 = shift(img1,-1,1)
img5 = shift(img1,0,1)
img6 = shift(img1,0,-1)
img7 = shift(img1,-1,1)
img8 = shift(img1,-1,0)
img9 = shift(img1,-1,-1)
My_Contour = (img1 EQ 1) AND ((img1 NE img2) OR (img1 NE img3) OR (img1 NE
img4) OR ...(img1 NE img())
My_Contour = TrimBorderOfImage(My_Contour, 1,1,1,1)

My_Contour now is the image of the contour of BW image.
Regards,
Tri.


> Ciao,
>
> I want to extract the contour of lungs in CT-images. Therefore I created
> an black/white image, where the threshold can be selcted by the user. I
> want to overlay the resulting contour of black/white image with the
> original image. Unfortunatly the returned contour is tiny and is not
> congruent with the original. How can I magnify the contour and fit it in
> the given frame?
> So far my code is looking like that:
>
> contour, contrast,path_xy=x,y,Path_info=pafo
>
> FOR I=0,(n_Elements(pafo)-1) DO BEGIN
> s=[ indgen(pafo(I).N),0]
> Ploats,xy(*,pafo(I).Offset + s),/Norm
> ENDFOR
>
> Regards, Ruth
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: Problems reading HDF after 5.2 upgrade
Next Topic: Numerical Recipes in IDL

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Sat Oct 11 22:24:47 PDT 2025

Total time taken to generate the page: 1.36043 seconds