Trying to Load and Save 16-bit x3 color (RGB) TIFF Images ... Unsuccessfully?
astrostu
1) I can't seem to save 48-bit TIFF images. 16-bit just saves a 16-bit greyscale of an NxMx3 wave instead of color. Putting in /DS=48 reverts to a default (?) 8-bit greyscale. Command attempt (or /DS=48):
ImageSave /DS=16 /Q=1 /T="tiff" MasterImage as (s_image_path+s_image_folder+"Master.tiff")
2) I can't seem to properly load correctly saved (from Photoshop) 48-bit TIFF images. They load as 3-color, but revert to 8-bit (pixel values between 0 and 255), and they look like a pointillism-ist's dream.
I'm sure there has to be a way to do this, but I can't figure it out! If it matters, I'm using the latest v7 beta, but I had this issue in v6, too (with the /D flag instead of /DS for saving).
June 27, 2016 at 03:44 am - Permalink
June 27, 2016 at 08:50 am - Permalink
Testing in IP7:
I created a 48-bit image using:
Saved it into a 48-bit image:
and loaded it back using:
In IGOR 6.x if your 48-bit TIFF file is written with samplesPerPixel=3 it would be read by IGOR into a 3-layer RGB wave of type unsigned short. Since I do not have your image, I can only suggest that you run your load command with /RAT and then take a look at the tags.
If you see different results or to report anything else relating to IP7 please contact support@wavemetrics.com.
A.G.
WaveMetrics, Inc.
June 27, 2016 at 09:48 am - Permalink
b) The issue was /bigt=0. Setting that, and it loads perfectly fine. So it's Igor's library that works, the generic one that doesn't.
c) No idea why the saving now works. I wonder if it's because of the exact wave type before, that it needs to be unsigned 16-byte specifically?
d) A sample image was in my previous reply, but now that this works ... it works.
June 27, 2016 at 10:07 am - Permalink
I have no idea why IP6 did not work for you. When you encounter such difficulty you should contact support with the file in question.
A.G.
WaveMetrics, Inc.
June 27, 2016 at 11:59 am - Permalink