Class CopyConvert
Object
CopyConvert
Copies the bytes from a
IFormatReader to a list of channels, converting if necessary.- Author:
- Owen Feehan
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidcopyAllFrames(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 ofChannels converting them if necessary along the way.
-
Method Details
-
copyAllFrames
public static void copyAllFrames(loci.formats.IFormatReader reader, List<Channel> destination, ImageFileShape targetShape, ConvertTo<?> convertTo, ReadOptions readOptions, OrientationChange orientationCorrection) throws loci.formats.FormatException, IOException Copies all frames, channels, z-slices (in a byte-array) into a destination set ofChannels converting them if necessary along the way.- Parameters:
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).convertTo- how to convert the source bytes to the desired target form.readOptions- Options that influence how stack is read.orientationCorrection- any correction of orientation to be applied as bytes are converted.- Throws:
loci.formats.FormatException- when the operation fails due to file-format problems.IOException- when the operation fails due to read or write IO problems.
-