public class ConvertFromImagePlus extends Object
ImagePlus
into a channel or voxels.
Voxel buffers are always copied from the ImagePlus not reused. This creates a performance penalty.
Modifier and Type | Method and Description |
---|---|
static Channel |
toChannel(ij.ImagePlus imagePlus,
Optional<Resolution> resolution)
Converts an
ImagePlus to a Channel . |
static VoxelsUntyped |
toVoxels(ij.ImagePlus image)
Converts an
ImagePlus to a VoxelsUntyped . |
public static Channel toChannel(ij.ImagePlus imagePlus, Optional<Resolution> resolution)
ImagePlus
to a Channel
.imagePlus
- the image-plus to convertresolution
- image-resolutionpublic static VoxelsUntyped toVoxels(ij.ImagePlus image)
ImagePlus
to a VoxelsUntyped
.image
- the image-plus to convertCopyright © 2010–2023 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.