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

Home » Public Forums » archive » Re: TVRD on an XROI screen??
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: TVRD on an XROI screen?? [message #40726 is a reply to message #40722] Mon, 30 August 2004 10:44 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Jeff writes:

> I have an image loaded into XROI and have drawn a bunch of ROI's on
> it. Is there a way to quickly and easily write out a tiff file that
> has the image and the ROI outlines in it..like you could do if you
> could do a TVRD on an XROI window?

Here is what I would do. I would define another keyword
for XROI, named OWINDOW. I would define it like this:

XROI, $
..., $
OWINDOW=oWindow, $
...

Then, I would call XROI like this:

IDL> XROI, myimagem OWINDOW=win

After I had drawn my ROI's and before I opened any other
windows, I would do this:

IDL> win -> GetProperty, Image_Data=theImage
IDL> Write_Tiff, 'myroiimage.tif', Reverse(theImage,3)

There you go. :-)

Cheers,

David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: IDL and FFTW 3
Next Topic: Re: find rotation between two images

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

Current Time: Sat Oct 11 08:03:29 PDT 2025

Total time taken to generate the page: 0.32069 seconds