Re: Image output display from IDL [message #60844 is a reply to message #60843] |
Thu, 19 June 2008 20:38  |
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
|
|
|