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

Home » Public Forums » archive » what is the most convenient way to read an image generated by ENVI in IDL
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
what is the most convenient way to read an image generated by ENVI in IDL [message #32591] Mon, 21 October 2002 20:12
Julia is currently offline  Julia
Messages: 11
Registered: July 2002
Junior Member
Hi, there,

After some operations in ENVI, I output the resulting image using the format
'.img'. It's an multispectral image.
The '.hdr' head file is like this:
ENVI
description = {
image [Fri Oct 18 11:01:10 2002]}
samples = 116
lines = 261
bands = 4
header offset = 0
file type = ENVI Standard
data type = 4
interleave = bsq
sensor type = Unknown
byte order = 0

My question is: how can I read this file using IDL functions?
Now I am doing this using the following:
imgdata = READ_BINARY('test.img', DATA_TYPE = 4, DATA_DIMS = [116, 261,
4]).

But I need to specify the data type and dimensions of the image. How can I
read it more generally that I need to specify nothing? Is there other
functions in IDL?

Any suggestion will be appreciated.

Regards,

Julia
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: How can I do region-labeling for gray imagery
Next Topic: Re: basic IDL questions: please help!

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

Current Time: Fri Oct 10 06:53:17 PDT 2025

Total time taken to generate the page: 1.27291 seconds