public class ConvertToImageProcessor extends Object
ImageProcessor
.Modifier and Type | Method and Description |
---|---|
static ij.process.ImageProcessor |
from(VoxelsUntyped voxels,
int z)
Creates a
ImageProcessor by extracting a slice from a VoxelsUntyped . |
static ij.process.ImageProcessor |
fromByte(SliceBufferIndex<UnsignedByteBuffer> pixelsForSlice,
int z)
|
static ij.process.ImageProcessor |
fromByte(VoxelBuffer<UnsignedByteBuffer> slice,
Extent extent)
Creates a
ImageProcessor from voxel-buffer (of type ByteBuffer ) that is
already a slice. |
static ij.process.ImageProcessor |
fromFloat(VoxelBuffer<FloatBuffer> slice,
Extent extent)
Creates a
ImageProcessor from voxel-buffer (of type FloatBuffer ) that is
already a slice. |
static ij.process.ImageProcessor |
fromShort(SliceBufferIndex<UnsignedShortBuffer> pixelsForSlice,
int z)
|
static ij.process.ImageProcessor |
fromShort(VoxelBuffer<UnsignedShortBuffer> slice,
Extent extent)
Creates a
ImageProcessor from voxel-buffer (of type ShortBuffer ) that is
already a slice. |
public static ij.process.ImageProcessor from(VoxelsUntyped voxels, int z) throws ImageJConversionException
ImageProcessor
by extracting a slice from a VoxelsUntyped
.voxels
- the voxels to extract a slice from.z
- slice-index.ImageJConversionException
- if the voxels are neither unsigned byte nor unsigned short
(the only two supported types).public static ij.process.ImageProcessor fromByte(SliceBufferIndex<UnsignedByteBuffer> pixelsForSlice, int z)
pixelsForSlice
- the pixels to extract a slice from.z
- slice-index.public static ij.process.ImageProcessor fromShort(SliceBufferIndex<UnsignedShortBuffer> pixelsForSlice, int z)
pixelsForSlice
- the pixels to extract a slice from.z
- slice-index.public static ij.process.ImageProcessor fromByte(VoxelBuffer<UnsignedByteBuffer> slice, Extent extent)
ImageProcessor
from voxel-buffer (of type ByteBuffer
) that is
already a slice.slice
- the voxels representing a sliceextent
- the size of image to createpublic static ij.process.ImageProcessor fromShort(VoxelBuffer<UnsignedShortBuffer> slice, Extent extent)
ImageProcessor
from voxel-buffer (of type ShortBuffer
) that is
already a slice.slice
- the voxels representing a slice.extent
- the size of image to create.public static ij.process.ImageProcessor fromFloat(VoxelBuffer<FloatBuffer> slice, Extent extent)
ImageProcessor
from voxel-buffer (of type FloatBuffer
) that is
already a slice.slice
- the voxels representing a slice.extent
- the size of image to create.Copyright © 2010–2023 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.