Class VoxelBufferFromMat

Object
VoxelBufferFromMat

public class VoxelBufferFromMat extends Object
Converts a Mat to a VoxelBuffer.
Author:
Owen Feehan
  • Method Summary

    Modifier and Type
    Method
    Description
    static VoxelBuffer<FloatBuffer>
    floatFromMat(org.opencv.core.Mat mat, Extent extent)
    Converts a Mat to a VoxelBuffer with voxel data-type FloatBuffer.
    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)
    Converts a Mat to a VoxelBuffer with voxel data-type UnsignedByteBuffer.
    static VoxelBuffer<UnsignedShortBuffer>
    unsignedShortFromMat(org.opencv.core.Mat mat, Extent extent)
    Converts a Mat to a VoxelBuffer with voxel data-type UnsignedShortBuffer.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • toVoxelBuffer

      public static VoxelBuffer<?> toVoxelBuffer(org.opencv.core.Mat mat, Extent extent) throws OperationFailedException
      Converts a Mat to a VoxelBuffer.
      Parameters:
      mat - the Mat to convert.
      extent - the size of the image in the Mat.
      Returns:
      a newly created VoxelBuffer, converted from mat.
      Throws:
      OperationFailedException - if it has an supported voxel data-type.
    • unsignedByteFromMat

      public static VoxelBuffer<UnsignedByteBuffer> unsignedByteFromMat(org.opencv.core.Mat mat, Extent extent)
      Converts a Mat to a VoxelBuffer with voxel data-type UnsignedByteBuffer.
      Parameters:
      mat - the Mat to convert.
      extent - the size of the image in the Mat.
      Returns:
      a newly created VoxelBuffer, converted from mat.
    • unsignedShortFromMat

      public static VoxelBuffer<UnsignedShortBuffer> unsignedShortFromMat(org.opencv.core.Mat mat, Extent extent)
      Converts a Mat to a VoxelBuffer with voxel data-type UnsignedShortBuffer.
      Parameters:
      mat - the Mat to convert.
      extent - the size of the image in the Mat.
      Returns:
      a newly created VoxelBuffer, converted from mat.
    • floatFromMat

      public static VoxelBuffer<FloatBuffer> floatFromMat(org.opencv.core.Mat mat, Extent extent)
      Converts a Mat to a VoxelBuffer with voxel data-type FloatBuffer.
      Parameters:
      mat - the Mat to convert.
      extent - the size of the image in the Mat.
      Returns:
      a newly created VoxelBuffer, converted from mat.