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

Home » Public Forums » archive » Re: Image output display from IDL
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 output display from IDL [message #60844 is a reply to message #60843] Thu, 19 June 2008 20:38 Go to previous message
Chris[5] is currently offline  Chris[5]
Messages: 16
Registered: May 2008
Junior Member
Are they truecolor images?

If so, it may be an issue with how the image is passed back and forth
in IDL. An n pixel by n pixel color image read into idl (usually) gets
stored as a n x n x 3 data cube (plane 0 is R, plane 1 is G, and plane
2 is B). You have to tell IDL which dimension of the array stores
these color slices when working with them. In the above example, the
third dimension stores the color slices so, if I wanted to display the
image in IDL, I would use tvscl,im,true=3. Similarly, if you write out
a color image, you usually have to specify which dimension runs
through the different colors. Perhaps during the reading and writing
stages, you switched this index, meaning that the final image would
have all of these weird color/stripe patterns.

Try scanning the IDL help for the "TRUE" keyword

Chris

On Jun 19, 1:42 pm, Raghu <geor...@gmail.com> wrote:
> Hi all,
>
> I wrote a script in IDL which reads multiple images and outputs an
> image according to some conditions i specified.
> The code works, seemingly with no errors and outputs the required
> image. However, when i display the image in ENVI, the output image
> looks like a series of tiles/bands as if the values are grouped line-
> by-line. The statistics are right, but the display looks really weird.
>
> I had read something about how IDL stores images but i can't quite
> find the keywords to search for it.
> Does this have to do with any machine settings or is it a setting
> within IDL itself ? Any ideas ?
>
> I can attach a graphic if it helps.
>
> Thanks in advance,
> Ram
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: IDL7 IDLWAVE help problem
Next Topic: Fed Up with IDL: image subset by shape or EVF file

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

Current Time: Sun Oct 12 14:45:22 PDT 2025

Total time taken to generate the page: 1.02578 seconds