Re: can I set INTERLEAVE type in DIALOG_WRITE_IMAGE [message #30644] |
Mon, 13 May 2002 10:11 |
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  |
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  |
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
|
|
|