Hi everybody !
I've got a problem with my first perl script using imagemagick:
I've got a sequence of tiff frame and I want to get the bitdepth of each.
Extract of my script:
$image = Image::Magick->new;
$image->Read($complete_file_name);
$file_bitdepth = $image->Get('depth');
I get for some frames the correct bitdepth: 16 but also some frames a 9 !!
If I check with tiffinfo, here is the result:
The first frame getting a depth of 16 in IM
tiffinfo
/nwave/DATA/ADMIN/joe/HIGH_RES/060_0200_FG_LIGHT_MAIN_R_v03.1436.tif
TIFF Directory at offset 0x294
Subfile Type: (0 = 0x0)
Image Width: 1024 Image Length: 576
Position: 0, 0
Bits/Sample: 16
Sample Format: unsigned integer
Compression Scheme: LZW
Photometric Interpretation: RGB color
Extra Samples: 1<assoc-alpha>
Orientation: row 0 top, col 0 lhs
Samples/Pixel: 4
Rows/Strip: 16
Planar Configuration: single image plane
Reference Black/White:
0: 0 65535
1: 0 65535
2: 0 65535
3: 3.15292e-43 0
Software: 3Delight 7.0.63 linux64 (Sep 30 2008) "Midnight Express"
DateTime: 2008:12:31 19:56:41
Artist: root
HostComputer: nasa32
ImageFullWidth: 1024
ImageFullLength: 576
TextureFormat: Image
MatrixWorldToScreen:
-0.392603,0.612204,0.919143,0.919142,0.275911,2.254848,-0.203327,-0.203326,1
.235815,-0.308932,0.337396,0.337395,0.208517,-11.511807,-6.714481,-6.704474
MatrixWorldToCamera:
-0.296146,0.259759,0.919142,0.000000,0.208123,0.956736,-0.203326,0.000000,0.
932192,-0.131081,0.337395,0.000000,0.157287,-4.884478,-6.704474,1.000000
Predictor: horizontal differencing 2 (0x2)
The second one giving a depth of 9
tiffinfo
/nwave/DATA/ADMIN/joe/HIGH_RES/060_0200_FG_LIGHT_MAIN_R_v03.1437.tif
TIFF Directory at offset 0x296
Subfile Type: (0 = 0x0)
Image Width: 1024 Image Length: 576
Position: 0, 0
Bits/Sample: 16
Sample Format: unsigned integer
Compression Scheme: LZW
Photometric Interpretation: RGB color
Extra Samples: 1<assoc-alpha>
Orientation: row 0 top, col 0 lhs
Samples/Pixel: 4
Rows/Strip: 16
Planar Configuration: single image plane
Reference Black/White:
0: 0 65535
1: 0 65535
2: 0 65535
3: 3.15292e-43 0
Software: 3Delight 7.0.63 linux64 (Sep 30 2008) "Midnight Express"
DateTime: 2008:12:31 19:08:49
Artist: root
HostComputer: NASA79
ImageFullWidth: 1024
ImageFullLength: 576
TextureFormat: Image
MatrixWorldToScreen:
-0.319159,0.627911,0.933307,0.933306,0.261397,2.250667,-0.221744,-0.221744,1
.259885,-0.307895,0.282436,0.282436,-0.152304,-11.643422,-6.661236,-6.651229
MatrixWorldToCamera:
-0.240746,0.266424,0.933306,0.000000,0.197175,0.954961,-0.221744,0.000000,0.
950349,-0.130640,0.282436,0.000000,-0.114885,-4.940322,-6.651229,1.000000
Predictor: horizontal differencing 2 (0x2)
Anybody has an idea ??
Thanks
Joel
_______________________________________________
Magick-users mailing list
[email protected]
http://studio.imagemagick.org/mailman/listinfo/magick-users