Login  Register

Re: Antwort: Concatenating Tiff stacks from ImageJ using libtiff tifftools

Posted by Chang, Joshua on Apr 23, 2008; 10:32pm
URL: http://imagej.273.s1.nabble.com/Concatenating-Tiff-stacks-from-ImageJ-using-libtiff-tifftools-tp3696458p3696460.html

Thanks Joachim, I appreciate your help.

I uploaded a part of a representative image here:

http://brennanlab.mednet.ucla.edu/example/5slices.tiff  (5 tiff directories, 8-bit, 320x240, 375K total)

KCB:example joshchang$ tiffinfo 5slices.tiff
TIFFReadDirectory: Warning, 5slices.tiff: unknown field with tag 50838 (0xc696) encountered.
TIFFFieldWithTag: Internal error, unknown tag 0xc697.
TIFF Directory at offset 0x8 (8)
Subfile Type: (0 = 0x0)
Image Width: 320 Image Length: 240
Bits/Sample: 8
Compression Scheme: None
Photometric Interpretation: min-is-black
Samples/Pixel: 1
Rows/Strip: 240
Planar Configuration: single image plane
ImageDescription: ImageJ=1.40c
images=5
slices=5
loop=false

Now say I want to take slices 2, 3 and 4 out and combine them into a new image I did

KCB:example joshchang$ tiffcp 5slices.tiff,2,3,4 result.tiff
TIFFReadDirectory: Warning, 5slices.tiff: unknown field with tag 50838 (0xc696) encountered.
TIFFFieldWithTag: Internal error, unknown tag 0xc697.
TIFFReadDirectory: Warning, 5slices.tiff: unknown field with tag 50838 (0xc696) encountered.
TIFFFieldWithTag: Internal error, unknown tag 0xc697.
TIFFReadDirectory: Warning, 5slices.tiff: unknown field with tag 50838 (0xc696) encountered.
TIFFFieldWithTag: Internal error, unknown tag 0xc697.
TIFFReadDirectory: Warning, 5slices.tiff: unknown field with tag 50838 (0xc696) encountered.
TIFFFieldWithTag: Internal error, unknown tag 0xc697.

And the result is http://brennanlab.mednet.ucla.edu/example/result.tiff

The first slice looks like it should, but the slices afterward are weird.

Concatenation across files gives the same type of result:

tiffcp 5slices.tiff 5slices.tiff combined.tiff   http://brennanlab.mednet.ucla.edu/example/combined.tiff

Thanks!



----------------------------------------------------------
IMPORTANT WARNING:  This email (and any attachments) is only intended for the use of the person or entity to which it is addressed, and may contain information that is privileged and confidential.  You, the recipient, are obligated to maintain it in a safe, secure and confidential manner.  Unauthorized redisclosure or failure to maintain confidentiality may subject you to federal and state penalties. If you are not the intended recipient, please immediately notify us by return email, and delete this message from your computer.
----------------------------------------------------------