different results with ome.tiff and ome.xml
Posted: Mon Nov 26, 2012 12:36 pm
I'm trying to convert an Olympus OIB image to OME and I'm getting two different results depending on whether I use OME-XML or OME-TIFF as output. The microscope file has two channels and in the end results I'd expect to see 2 Image elements, both with 2 channel and 2 BinData (2 channels 394x2500 pixels and 2 reference pictures 512x512 pixels).
Output from showinf tells me that one Image series has disappeared:
With OME-XML I get one image tag with two channels and four BinData elements. Since there is only one Pixel element then the pixel size and count information for the reference image disappears. Below are the relevant parts of the XML:
For an OME-TIFF image, the contents are correct
I'd use the OME-TIFF format if I could, but my program is in Python and I can read XML without having to install extra packages for reading tiff files. I'd appreciate any help on getting the correct data but using the OME-XML file.
Output from showinf tells me that one Image series has disappeared:
- Code: Select all
Reading core metadata
Filename = 36032aeb31.ome
Series count = 1
Series #0 :
Image count = 2
RGB = false (1)
Interleaved = false
Indexed = false (false color)
Width = 394
Height = 2500
SizeZ = 1
SizeT = 1
SizeC = 2
Thumbnail size = 20 x 128
Endianness = intel (little)
Dimension order = XYCZT (certain)
Pixel type = uint16
Valid bits per pixel = 16
Metadata complete = false
Thumbnail series = false
-----
Plane #0 <=> Z 0, C 0, T 0
Plane #1 <=> Z 0, C 1, T 0
Reading pixel data (0-1)
Read 2/2 planes (100%)
[done]
0.579s elapsed (289.5ms per plane)
With OME-XML I get one image tag with two channels and four BinData elements. Since there is only one Pixel element then the pixel size and count information for the reference image disappears. Below are the relevant parts of the XML:
- Code: Select all
<Instrument ID="Instrument:0">
<Image ID="Image:0" Name="Series 1">
<AcquisitionDate>2012-07-26T10:30:29</AcquisitionDate>
<InstrumentRef ID="Instrument:0"/>
<Pixels DimensionOrder="XYCZT" ID="Pixels:0" PhysicalSizeX="0.207" PhysicalSizeY="0.207" PhysicalSizeZ="1.0" SizeC="2" SizeT="1" SizeX="394" SizeY="2500" SizeZ="1" TimeIncrement="1.0" Type="uint16">
<Channel EmissionWavelength="515" ExcitationWavelength="488" ID="Channel:0:0" IlluminationType="Epifluorescence" Name="CH1" SamplesPerPixel="1">
<Channel ExcitationWavelength="488" ID="Channel:0:1" IlluminationType="Epifluorescence" Name="CH2" SamplesPerPixel="1">
<BinData BigEndian="false" Length="0" xmlns="http://www.openmicroscopy.org/Schemas/BinaryFile/2012-06"/>
<BinData BigEndian="false" xmlns="http://www.openmicroscopy.org/Schemas/BinaryFile/2012-06"/>
<BinData BigEndian="false" xmlns="http://www.openmicroscopy.org/Schemas/BinaryFile/2012-06"/>
<BinData BigEndian="false" xmlns="http://www.openmicroscopy.org/Schemas/BinaryFile/2012-06"/>
<BinData BigEndian="false" xmlns="http://www.openmicroscopy.org/Schemas/BinaryFile/2012-06"/>
For an OME-TIFF image, the contents are correct
- Code: Select all
Series count = 2
Series #0 :
Image count = 2
RGB = false (1)
Interleaved = false
Indexed = false (false color)
Width = 394
Height = 2500
SizeZ = 1
SizeT = 1
SizeC = 2
Thumbnail size = 20 x 128
Endianness = intel (little)
Dimension order = XYCZT (certain)
Pixel type = uint16
Valid bits per pixel = 16
Metadata complete = true
Thumbnail series = false
-----
Plane #0 <=> Z 0, C 0, T 0
Plane #1 <=> Z 0, C 1, T 0
Series #1 :
Image count = 2
RGB = false (1)
Interleaved = false
Indexed = false (false color)
Width = 512
Height = 512
SizeZ = 1
SizeT = 1
SizeC = 2
Thumbnail size = 128 x 128
Endianness = intel (little)
Dimension order = XYCZT (certain)
Pixel type = uint16
Valid bits per pixel = 16
Metadata complete = true
Thumbnail series = false
-----
Plane #0 <=> Z 0, C 0, T 0
Plane #1 <=> Z 0, C 1, T 0
Reading series #0 pixel data (0-1)
Read 2/2 planes (100%)
[done]
0.232s elapsed (116.0ms per plane)
I'd use the OME-TIFF format if I could, but my program is in Python and I can read XML without having to install extra packages for reading tiff files. I'd appreciate any help on getting the correct data but using the OME-XML file.