Re: Envi Users out there? [message #8986] |
Fri, 16 May 1997 00:00 |
i0l1
Messages: 2 Registered: May 1997
|
Junior Member |
|
|
David Fanning (davidf@dfanning.com) wrote:
: William Wei Liong Young writes:
: > I was wondering if there were any ENVI users out there who might be able to
: > give me some advice (ENVI is a tool developed on top of IDL).
: >
: s = SIZE(originalImage)
: tiffImage = Make_Array(s(1), s(2), /Byte, Value=255) ; Make it white
: tiffImage(roi) = originalImage(roi)
: TVLCT, r, g, b, /Get
: Tiff_Write, 'myfile.tif', tiffImage, Red=r, Green=g, Blue=b
Thanks very much for the tip David, I am attempting to do something similar.
I made a plain white Tiff file using:
tiffImage=Make_Array(500,350,/Byte,Value=255)
TVLCT,r,g,b,/Get
Tiff_Write, 'white.tif', tiffImage, Red=r, Green=g, Blue=b
Then I wanted to read in this file through ENVI, and then using ENVI load in
the *.roi file on top of the white tif file. However, when I load "white.tif"
with ENVI the image appears black. Any clues as to why?
Thanks again,
Will
|
|
|