Posted by
Michael P Ellis on
URL: http://imagej.273.s1.nabble.com/Copy-To-System-and-asynchronicity-tp5023888p5023889.html
Dear Wayne,
I am currently using ImageJ as jar library for my own project. I am reading some
proprietary TIFF files that have information stored in the IMAGE_DESCRIPTION (TIFF TAG 270)
in every page of a multi-page TIFF file.
Currently ij.io.TiffDecoder.OpenIFD()
Only picks up the IMAGE_DESCRIPTION for the first page.
Is there any reason that this cannot be relaxed to pick them all up?
I have modified the code (just commented out the ifdCount test) and in my use case,
I have not seen any problems. All the information is conveniently accumulated and
available in the ImagePlus::getProperty("Info");
in File ij.io.TiffDecoder.java, from line 549, in method OpenIFD()
case IMAGE_DESCRIPTION:
// if (ifdCount==1) {
byte[] s = getString(count, lvalue);
if (s!=null) saveImageDescription(s,fi);
// }
break;
The advantage, obviously, is IMAGE_DESCRIPTION data stored in all the planes is now
available within ImageJ
As far as I can see any use of the String returned by ImagePlus::getProperty("Info");
probably requires parsing and testing so it would seem unlikely that this would cause
much of a compatibility problem.
----------------------------
Here is an example of the output from the Image->Show Info... for my use case.
ImageDescription: "Cy5.5" enabled slide_name = "" operator_name = "" patient_name = ""
experiment_comment = "" comment = "Cambio 24 Colour MFISH" position = (0.0,0.0,0.0) sense =
"Fluorescence" tint rgb = (0,0,255) norm lu = (27,255) brightness = (100) autobright probeweight =
(0) location = "|merge|1" frame = 1/1
ImageDescription: "Cy5" enabled slide_name = "" operator_name = "" patient_name = ""
experiment_comment = "" comment = "Cambio 24 Colour MFISH" position = (0.0,0.0,0.0) sense =
"Fluorescence" tint rgb = (255,0,255) norm lu = (51,217) brightness = (100) autobright probeweight
= (0) location = "|merge|1" frame = 1/1
ImageDescription: "Cy3.5" enabled slide_name = "" operator_name = "" patient_name = ""
experiment_comment = "" comment = "Cambio 24 Colour MFISH" position = (0.0,0.0,0.0) sense =
"Fluorescence" tint rgb = (255,255,0) norm lu = (45,221) brightness = (100) autobright probeweight
= (0) location = "|merge|1" frame = 1/1
ImageDescription: "Cy3" enabled slide_name = "" operator_name = "" patient_name = ""
experiment_comment = "" comment = "Cambio 24 Colour MFISH" position = (0.0,0.0,0.0) sense =
"Fluorescence" tint rgb = (255,0,0) norm lu = (48,215) brightness = (100) autobright probeweight =
(0) location = "|merge|1" frame = 1/1
ImageDescription: "Fitc" enabled slide_name = "" operator_name = "" patient_name = ""
experiment_comment = "" comment = "Cambio 24 Colour MFISH" position = (0.0,0.0,0.0) sense =
"Fluorescence" tint rgb = (0,255,0) norm lu = (15,220) brightness = (100) autobright probeweight =
(0) location = "|merge|1" frame = 1/1
ImageDescription: "Dapi" enabled slide_name = "" operator_name = "" patient_name = ""
experiment_comment = "" comment = "Cambio 24 Colour MFISH" position = (0.0,0.0,0.0) sense =
"Fluorescence" tint rgb = (255,255,255) norm lu = (1,238) brightness = (100) autobright probeweight
= (0) location = "|merge|1" frame = 1/1
--------------------------------------------
ImageJ 1.53c; Java 14.0.1 [64-bit]; Mac OS X 10.15.6; 27MB of 4096MB (<1%)
Title: s22 _Frame_1.tif
Width: 832 pixels
Height: 768 pixels
Depth: 6 pixels
Size: 3.7MB
Voxel size: 1x1x1 pixel^3
ID: -2
Bits per pixel: 8 (color LUT)
Display range: 0-255
Image: 1/6
No threshold
ScaleToFit: false
Uncalibrated
Path: /Users/michaelellis/SmartType Cases/MFISH Yang/MFISH Yang.00001/s22 _Frame_1.tif
Screen location: 257,125 (1680x1050)
SetMenuBarCount: 2 (121ms)
Coordinate origin: 0,0,0
No properties
No overlay
No selection
-- Regards -- Michael Ellis (Digital Scientific UK)
--
ImageJ mailing list:
http://imagej.nih.gov/ij/list.html