I managed to use ImageMagick to convert the images to TIFF24 which 'identify' reports as a DirectClass image. Unfortunately, the same problems appear. I'm hoping that telling readImage to use the ImageMagick reader will solve my problems (since ImageMagick handles the hdf image correctly) but that option doesn't appear on my version of OpenDX. While looking through the list archives, there was mention that this was added recently. I'm running 4.1.3 from redhat rpm's that I downloaded last weekend. What version do I need to get the ImageMagick reader? I did notice that I apparently have ImageMagick writer support in writeImage. Will there be problems with the ImageMagick reader and the hdf libraries? I had to compile my own ImageMagick tools to support hdf since its not included in the stock distro.

Thanks for your help.... it seem so close.  :)

jay

Randall Hopper wrote:

Jay Lyerly:
|> natively, so I've converted them to TIFF files with ImageMagick. |> However, when I read in the image, the result is pixelated where the |> data set changes.
...

Just tried your images:

identify in.tiff

/usr/tmp/magicCAAa000o- TIFF 512x128 PseudoClass 256c 8-bit 64kb 0.1u 0:01

identify out.tiff

/usr/tmp/magicCAAa000oa TIFF 512x128 DirectClass 8-bit 192kb 0.1u 0:01

The DX-native "tiff" format reader in ReadImage apparently doesn't support
this format (colormapped TIFFs in general probably).  Use gimp or your
favorite tool to convert it to a direct color image and it'll work.

Alternatively, use the Imagemagick reader (give ReadImage this value for
the format parameter: "Image Magick supported format" -- it's on the pop-up
menu), and it'll work.  You can set delayed and colortype to any desired
values with this reader.

Randy



Reply via email to