public class VoxelBufferFromMat extends Object
Mat
to a VoxelBuffer
.Modifier and Type | Method and Description |
---|---|
static VoxelBuffer<FloatBuffer> |
floatFromMat(org.opencv.core.Mat mat,
Extent extent)
|
static VoxelBuffer<?> |
toVoxelBuffer(org.opencv.core.Mat mat,
Extent extent)
Converts a
Mat to a VoxelBuffer . |
static VoxelBuffer<UnsignedByteBuffer> |
unsignedByteFromMat(org.opencv.core.Mat mat,
Extent extent)
|
static VoxelBuffer<UnsignedShortBuffer> |
unsignedShortFromMat(org.opencv.core.Mat mat,
Extent extent)
|
public static VoxelBuffer<?> toVoxelBuffer(org.opencv.core.Mat mat, Extent extent) throws OperationFailedException
Mat
to a VoxelBuffer
.mat
- the Mat
to convert.extent
- the size of the image in the Mat
.VoxelBuffer
, converted from mat
.OperationFailedException
- if it has an supported voxel data-type.public static VoxelBuffer<UnsignedByteBuffer> unsignedByteFromMat(org.opencv.core.Mat mat, Extent extent)
mat
- the Mat
to convert.extent
- the size of the image in the Mat
.VoxelBuffer
, converted from mat
.public static VoxelBuffer<UnsignedShortBuffer> unsignedShortFromMat(org.opencv.core.Mat mat, Extent extent)
mat
- the Mat
to convert.extent
- the size of the image in the Mat
.VoxelBuffer
, converted from mat
.public static VoxelBuffer<FloatBuffer> floatFromMat(org.opencv.core.Mat mat, Extent extent)
mat
- the Mat
to convert.extent
- the size of the image in the Mat
.VoxelBuffer
, converted from mat
.Copyright © 2010–2023 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.