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

Home » Public Forums » archive » Re: can I set INTERLEAVE type in DIALOG_WRITE_IMAGE
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: can I set INTERLEAVE type in DIALOG_WRITE_IMAGE [message #30644] Mon, 13 May 2002 10:11
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Xiaoying Jin (xje4e@mizzou.edu) writes:

> I think the INTERLEAVE used by DIALOG_WRITE_IMAGE is 0 (Pixle interleaved)
> With WRITE_TIFF, how can I easily make a dialog to choose the directory and
> filename?

Uh, Dialog_Pickfile?

filename = Dialog_Pickfile(Filter='*.tif', File='myimage.tif',
Write=1, Title='Save TIFF File As...')
IF filename NE "" THEN Write_Tiff, filename, image, PlanarConfig=2

Cheers,

David

--
David W. Fanning, Ph.D.
Fanning Software Consulting
Phone: 970-221-0438, E-mail: david@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
Re: can I set INTERLEAVE type in DIALOG_WRITE_IMAGE [message #30645 is a reply to message #30644] Mon, 13 May 2002 09:56 Go to previous message
Xiaoying Jin is currently offline  Xiaoying Jin
Messages: 20
Registered: May 2002
Junior Member
Thanks.

I think the INTERLEAVE used by DIALOG_WRITE_IMAGE is 0 (Pixle interleaved)
With WRITE_TIFF, how can I easily make a dialog to choose the directory and
filename?

Regards,

Xiaoying Jin

"David Fanning" <david@dfanning.com> wrote in message
news:MPG.174998bfeef593a39898cb@news.frii.com...
> Xiaoying Jin (xje4e@mizzou.edu) writes:
>
>> I use read_tiff to read an image file in, the INTERLEAVE of the file is
2
>> (Planar interleaved [Columns, Rows, Channels]). But when I want to
write
>> the image using DIALOG_WRITE_IMAGE, the result is totally wrong. The
>> INTERLEAVE of the file saved is [Rows, Channels, Columns]. How can I
set
>> INTERLEAVE type in DIALOG_WRITE_IMAGE?
>
> I don't believe you can. I think you are going to have
> to use WRITE_TIFF directly.
>
> Cheers,
>
> David
>
> --
> David W. Fanning, Ph.D.
> Fanning Software Consulting
> Phone: 970-221-0438, E-mail: david@dfanning.com
> Coyote's Guide to IDL Programming: http://www.dfanning.com/
> Toll-Free IDL Book Orders: 1-888-461-0155
Re: can I set INTERLEAVE type in DIALOG_WRITE_IMAGE [message #30649 is a reply to message #30645] Mon, 13 May 2002 09:33 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Xiaoying Jin (xje4e@mizzou.edu) writes:

> I use read_tiff to read an image file in, the INTERLEAVE of the file is 2
> (Planar interleaved [Columns, Rows, Channels]). But when I want to write
> the image using DIALOG_WRITE_IMAGE, the result is totally wrong. The
> INTERLEAVE of the file saved is [Rows, Channels, Columns]. How can I set
> INTERLEAVE type in DIALOG_WRITE_IMAGE?

I don't believe you can. I think you are going to have
to use WRITE_TIFF directly.

Cheers,

David

--
David W. Fanning, Ph.D.
Fanning Software Consulting
Phone: 970-221-0438, E-mail: david@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: Online Help ideas
Next Topic: Re: RSI Update on IDL for Mac OS X

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

Current Time: Sun Oct 12 09:20:02 PDT 2025

Total time taken to generate the page: 3.12012 seconds