Hello Jaikishan, Yes, -normalize will stretch your grayscale colors out to full dynamic range, if your problem was that you only had very dark grayscale values. I thought you might have been getting a binary image and needed to change it to grayscale. But seems you are on the right path.
However, -normalize will clip values. So you are better off using -contrast-stretch 0 see http://www.imagemagick.org/script/command-line-options.php#normalize it is equivalent to -contrast-stretch 2x1%. Thus 2% is lost at the dark end and 1% is lost at the bright end. Fred >I tried adding -normalize and it worked. However, adding type or >colorspace didnot work. > >On Tue, Feb 24, 2009 at 12:45 PM, Fred Weinhaus ><<mailto:[email protected]>[email protected]> wrote: > >see > ><http://www.imagemagick.org/Usage/basics/#cmdline>http://www.imagemagick.org/Usage/basics/#cmdline ><http://www.imagemagick.org/Usage/formats/#bmp>http://www.imagemagick.org/Usage/formats/#bmp > >try adding -type truecolor (also possibly -colorspace gray) after the >input image > > > > > > > >>Hello, >> >>I have been trying to convert a 16 bit unsigned type fits image to bmp image >>but it does not give the expected output. The input fits image is grayscale >>and when I see the output , most of the pixels are black. What is the right >>way to do the conversion? >> >>$convert -size 1536x1024 -depth 16 <fits_file_name> <bmp_file_name>; >>-- >>Thanks, >>Jaikishan >>Sent from: Ames Iowa United States. > >_______________________________________________ >Magick-users mailing list ><mailto:[email protected]>[email protected] ><http://studio.imagemagick.org/mailman/listinfo/magick-users>http://studio.imagemagick.org/mailman/listinfo/magick-users > > > > >-- >Thanks, >Jaikishan >Sent from: Ames Iowa United States. _______________________________________________ Magick-users mailing list [email protected] http://studio.imagemagick.org/mailman/listinfo/magick-users
