public class CopyConvert extends Object
IFormatReader
to a list of channels, converting if necessary.Modifier and Type | Method and Description |
---|---|
static void |
copyAllFrames(loci.formats.IFormatReader reader,
List<Channel> destination,
ImageFileShape targetShape,
ConvertTo<?> convertTo,
ReadOptions readOptions,
OrientationChange orientationCorrection)
Copies all frames, channels, z-slices (in a byte-array) into a destination set of
Channel s converting them if necessary along the way. |
public static void copyAllFrames(loci.formats.IFormatReader reader, List<Channel> destination, ImageFileShape targetShape, ConvertTo<?> convertTo, ReadOptions readOptions, OrientationChange orientationCorrection) throws loci.formats.FormatException, IOException
Channel
s converting them if necessary along the way.reader
- the source of the copy.destination
- the destination of the copy.targetShape
- the shape of the image-file to convert to (before any orientation
correction).readOptions
- Options that influence how stack is read.orientationCorrection
- any correction of orientation to be applied as bytes are
converted.loci.formats.FormatException
IOException
Copyright © 2010–2023 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.