public class ConvertToImagePlus extends Object
ImagePlus
.Modifier and Type | Method and Description |
---|---|
static ij.ImagePlus |
from(Channel channel)
Creates an
ImagePlus from a Channel . |
static ij.ImagePlus |
from(Stack stack,
boolean makeRGB)
Creates an
ImagePlus from a Stack . |
static ij.ImagePlus |
from(VoxelsUntyped voxels)
Creates an
ImagePlus from a VoxelsUntyped . |
static ij.ImagePlus |
fromSlice(Voxels<UnsignedByteBuffer> voxels,
int sliceIndex,
String name)
Creates an
ImagePlus from one slice of a Voxels<UnsignedByteBuffer>
voxels . |
public static ij.ImagePlus from(VoxelsUntyped voxels) throws ImageJConversionException
ImagePlus
from a VoxelsUntyped
.
The default image-resolution (see Resolution()
is employed.
voxels
- the voxels to be convertedImageJConversionException
- if the voxels are neither unsigned byte nor unsigned short
(the only two supported types)public static ij.ImagePlus from(Channel channel) throws ImageJConversionException
ImagePlus
from a Channel
.channel
- the channel to be convertedImageJConversionException
- if the voxels are neither unsigned byte nor unsigned short
(the only two supported types)public static ij.ImagePlus from(Stack stack, boolean makeRGB) throws ImageJConversionException
ImagePlus
from a Stack
.stack
- the stack of channels to be convertedmakeRGB
- if true, the stack is assumed to have respectively red, green, blue channels
exactly. and outputted as a RGB-type image, otherwise an interleaved image-stack is
created.ImageJConversionException
- if any RGB channel is not unsigned 8-bitpublic static ij.ImagePlus fromSlice(Voxels<UnsignedByteBuffer> voxels, int sliceIndex, String name)
ImagePlus
from one slice of a Voxels<UnsignedByteBuffer>
voxels
.voxels
- the voxels from which a slice will be extracted to be convertedsliceIndex
- slice-index (z coordinate) to extractname
- the name to use in the image-plusCopyright © 2010–2023 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.