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

Home » Public Forums » archive » Re: Fill in a logic image: possible in IDL ?
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: Fill in a logic image: possible in IDL ? [message #24708] Mon, 16 April 2001 09:41 Go to previous message
Ivan Zimine is currently offline  Ivan Zimine
Messages: 40
Registered: February 1999
Member
jsilva@ci.uc.pt wrote:
>
> Hello
> To explain what I?m trying to do about a FILL in a logic image, I give an
> example (see the Computer Tomography lung image in
> http://www.ci.uc.pt/pessoal/jsilva/idl_fill.jpg )
> Thanks in advance for any suggestion.
> Jose Silva
> Physics Dep., FCTUC, Portugal
>

mask = byte(median(image gt 50, 9))
roi = search2d(mask, 0, 510, 0, 0)
msk1 = mask*0b
msk1[roi] = 1
roi = search2d(mask, 27, 32, 0, 0)
msk2 = mask*0b
msk2[roi] = 1

back_mask = msk1 or msk2
image_mask = 1 - back_mask


--
Ivan Zimine | ivan.zimine@physics.unige.ch
Dpt. of Radiology | (+41 22) 372 70 70
Geneva University Hospitals |
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Fill in a logic image: possible in IDL ?
Next Topic: How to read two-bytes variables from a file saved in Mac?

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

Current Time: Fri Oct 10 03:31:59 PDT 2025

Total time taken to generate the page: 0.24095 seconds