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

Home » Public Forums » archive » problem with writing a 2D image .tiff
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: problem with writing a 2D image .tiff [message #53797 is a reply to message #53614] Thu, 03 May 2007 09:58 Go to previous messageGo to previous message
aleks.franca@gmail.co is currently offline  aleks.franca@gmail.co
Messages: 33
Registered: March 2007
Member
On 20 abr, 12:26, "Jeff N." <jnett...@utk.edu> wrote:
> I used your code, changing the input file to the 'image.tif' file in
> the examples\data folder, and got decent tif and jpg files. I also
> changed the variable "Nivel" to "level" in your code. The tif and jpg
> files weren't exactly like what was displayed on screen - the color
> levels were different, but they at least were not black like what you
> were getting.
>
> Jeff

ok. I have the solution to my problem. I work with grayscale images
and they have only 6 diferent pixel values. From 0 to 6. I can
visualize the image because I created a 6-level-colortable to
visualize, but when I save it, I cannot see the image because the
pixel values are very low.
To save it the way I can actually see the image I have to use the
command:

image = bytscl(image)

Now I'm confused. Why did that work?

Thank you!
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: HISTOGRAM and string data
Next Topic: how to force idl to export data in one line?

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

Current Time: Sat Oct 11 04:27:58 PDT 2025

Total time taken to generate the page: 0.40016 seconds