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

Home » Public Forums » archive » Re: image on map
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: image on map [message #58034 is a reply to message #58033] Sat, 12 January 2008 12:23 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
skymaxwell@gmail.com writes:

> but now another question
> now i want to create BMP file
> i was looked at one of your tips
>
> http://www.dfanning.com/color_tips/howjpeg.html
>
> and some forum messages here. So here is my code
>
> ;read image from idl window
> image=TVRD(TRUE=1)
> help,image
> ;something wrong with microsoft ? RGB to BGR
> newImage=Transpose(image[2,1,0])
> ;try create bmp
> WRITE_BMP,'file_src.bmp',newImage;,/RGB
>
>
> and i got the error
>
> IMAGE BYTE = Array[3, 600, 360]
> TRANSPOSE: Expression must be an array in this context: <BYTE
> ( 0)>.
> Execution halted at: $MAIN$ 58 C:\Documents and Settings
> \user\Desktop\bmpwindow.pro

I don't know. Did you try creating the BMP file with
TVRead? That always works for me. Even on Windows.

IDL> void = TVRead(/BMP)

You can find it here:

http://www.dfanning.com/programs/tvread.pro

You could dissect the code to see how it is I'm writing the
BMP file. This could be a version issue, too. What version of
IDL are you using?

Cheers,

David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: image on map
Next Topic: how to sort data based on other sorted data

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

Current Time: Sat Oct 11 11:51:46 PDT 2025

Total time taken to generate the page: 2.00031 seconds