public class BufferedImageFromVoxels extends Object
Voxels
instance into an AWT BufferedImage
.Modifier and Type | Method and Description |
---|---|
static BufferedImage |
createGrayscaleByte(Voxels<UnsignedByteBuffer> voxels)
Creates a
BufferedImage from a Voxels<UnsignedByteBuffer> . |
static BufferedImage |
createGrayscaleShort(Voxels<UnsignedShortBuffer> voxels)
Creates a
BufferedImage from a Voxels<UnsignedShortBuffer> . |
public static BufferedImage createGrayscaleByte(Voxels<UnsignedByteBuffer> voxels) throws CreateException
BufferedImage
from a Voxels<UnsignedByteBuffer>
.voxels
- the voxels.BufferedImage
that reuses the underlying array in the
buffer of voxels
.CreateException
- if the stack does not conform to a supported data-type or number of
channels or if the stack is 3D which is unsupported.public static BufferedImage createGrayscaleShort(Voxels<UnsignedShortBuffer> voxels) throws CreateException
BufferedImage
from a Voxels<UnsignedShortBuffer>
.voxels
- the voxels.BufferedImage
that reuses the underlying array in the
buffer of voxels
.CreateException
- if the stack does not conform to a supported data-type or number of
channels or if the stack is 3D which is unsupported.Copyright © 2010–2023 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.