Class VoxelBufferFromMat
Object
VoxelBufferFromMat
Converts a
Mat to a VoxelBuffer.- Author:
- Owen Feehan
-
Method Summary
Modifier and TypeMethodDescriptionstatic VoxelBuffer<FloatBuffer> floatFromMat(org.opencv.core.Mat mat, Extent extent) static VoxelBuffer<?> toVoxelBuffer(org.opencv.core.Mat mat, Extent extent) Converts aMatto aVoxelBuffer.static VoxelBuffer<UnsignedByteBuffer> unsignedByteFromMat(org.opencv.core.Mat mat, Extent extent) static VoxelBuffer<UnsignedShortBuffer> unsignedShortFromMat(org.opencv.core.Mat mat, Extent extent)
-
Method Details
-
toVoxelBuffer
public static VoxelBuffer<?> toVoxelBuffer(org.opencv.core.Mat mat, Extent extent) throws OperationFailedException Converts aMatto aVoxelBuffer.- Parameters:
mat- theMatto convert.extent- the size of the image in theMat.- Returns:
- a newly created
VoxelBuffer, converted frommat. - Throws:
OperationFailedException- if it has an supported voxel data-type.
-
unsignedByteFromMat
public static VoxelBuffer<UnsignedByteBuffer> unsignedByteFromMat(org.opencv.core.Mat mat, Extent extent) - Parameters:
mat- theMatto convert.extent- the size of the image in theMat.- Returns:
- a newly created
VoxelBuffer, converted frommat.
-
unsignedShortFromMat
public static VoxelBuffer<UnsignedShortBuffer> unsignedShortFromMat(org.opencv.core.Mat mat, Extent extent) - Parameters:
mat- theMatto convert.extent- the size of the image in theMat.- Returns:
- a newly created
VoxelBuffer, converted frommat.
-
floatFromMat
- Parameters:
mat- theMatto convert.extent- the size of the image in theMat.- Returns:
- a newly created
VoxelBuffer, converted frommat.
-