When I performed
image_to_png real_space-0009999.h5 out.tiff
The tiff file was in greyscale but the greyscale values are so
oversaturated that a binary black and white image is observed. The
tiff file must be in a strange format as it is not opened correctly in
gimp and I had to use the ImageMagick Display program.
The diffraction image file in the database is also an example of this
http://www.cxidb.org/id-1.html
Diffraction Pattern: cxidb-1.tiff (TIFF format)
image_to_png real_space-0009999.h5 out.png works better but a jet
color mapped image is produced, I have managed to convert to greyscale
this image (using the octave jet(256) command to provide a mapping
look up table. My converted image looks ok, but I am not sure on the
exact colour mapping of the jet colour space that you use.
Cheers
David
On Mar 2, 8:11 pm, Filipe Maia <
filipe.c.m...@gmail.com> wrote:
> I think it's not currently possible to save pngs with grayscale.
> You can view them using the graphical interface in grayscale but not save as
> png.
> If you want something similar you can try to save as tiff files.
> This will create 32bit floating point tiff files that can be opened in
> programs such as ImageJ.
> The tiff also has the advantage that it will keep all the information (of
> non complex images), while the png is only useful for display purposes.
> You can create tiff files with image_to_png. image_to_png in
> the beginning only converted to pngs but nowadays it converts between
> formats depending in the file extension.
> It's not possible to convert png to tiff though, because there's information
> loss while creating the png files.
>
> Cheers,
> Filipe
>
> On Wed, Mar 2, 2011 at 06:47, DaveWatts
> <
david.terence.wa...@googlemail.com>wrote: