Class ConvertFromImagePlus
Object
ConvertFromImagePlus
Converts an
ImagePlus
into a channel or voxels.
Voxel buffers are always copied from the ImagePlus not reused. This creates a performance penalty.
- Author:
- Owen Feehan
-
Method Summary
Modifier and TypeMethodDescriptionstatic Channel
toChannel
(ij.ImagePlus imagePlus, Optional<Resolution> resolution) Converts anImagePlus
to aChannel
.static VoxelsUntyped
toVoxels
(ij.ImagePlus image) Converts anImagePlus
to aVoxelsUntyped
.
-
Method Details
-
toChannel
Converts anImagePlus
to aChannel
.- Parameters:
imagePlus
- the image-plus to convertresolution
- image-resolution- Returns:
- a newly created channel containing a newly created buffer (copied from image-plus)
-
toVoxels
Converts anImagePlus
to aVoxelsUntyped
.- Parameters:
image
- the image-plus to convert- Returns:
- newly created voxels-buffer (copied from image-plus)
-