Bio-Formats is a Java library for reading and writing data in life sciences image file formats. It is developed by the Open Microscopy Environment. Bio-Formats is released under the GNU General Public License (GPL); commercial licenses are available from Glencoe Software.
Compare the test case in #4149 and/or something like bfconvert "test&sizeC=2.fake" test.ome.tiff -channel 1 with and without this PR. Without this PR, the output OME-TIFF should have 2 Channels defined in the OME-XML produced by tiffcomment or showinf -nopix -omexml. With this PR, the output OME-TIFF should have a single Channel.
This should also be tested with both -channel and -series used, so that the case where most Image and Pixels elements are removed is also covered.
Fixes #4149.
Compare the test case in #4149 and/or something like
bfconvert "test&sizeC=2.fake" test.ome.tiff -channel 1
with and without this PR. Without this PR, the output OME-TIFF should have 2Channel
s defined in the OME-XML produced bytiffcomment
orshowinf -nopix -omexml
. With this PR, the output OME-TIFF should have a singleChannel
.This should also be tested with both
-channel
and-series
used, so that the case where mostImage
andPixels
elements are removed is also covered.