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

Home » Public Forums » archive » Image question.
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 question. [message #2996 is a reply to message #2909] Thu, 13 October 1994 06:40 Go to previous message
Geoff.Sobering is currently offline  Geoff.Sobering
Messages: 14
Registered: June 1994
Junior Member
In article <1994Oct12.112035.26360@msuvx1.memphis.edu>,
pvemulakonda@cc.memphis.edu (PAVAN VEMULAKONDA) wrote:

> How can I read an image on the screen into an integer array and store
> it as a data file (im.dat) consisting of integer data.

It is a two step process:

1) Copy the image on the screen (I assume in an IDL window) into an
array using 'tvrd' (p. 16-5 in my 3.1 "User's Guide").

2) Write the array to disk as unformatted data using 'writeu'
(p. 17-27 in the "User's Guide").

I use the following routine all the time for writing "raw" binary files:

PRO wrbblk, filename, image_array

get_lun,unit ;get logical unit number
openw,unit,filename ;open file

writeu, unit, image_array

close,unit ;close file
free_lun,unit ;free logical unit number

RETURN
END

--
Geoff Sobering (Geoff.Sobering@nih.gov)
In Vivo NMR Research Center
National Institutes of Health
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: rounding function
Next Topic: Bug regarding plot limits when setting RANGE and TICKS

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

Current Time: Thu Oct 09 03:02:11 PDT 2025

Total time taken to generate the page: 0.23963 seconds