Class Region3


  • public class Region3
    extends Object
    Represents a 3D origin or 3D region.
    Author:
    royer
    • Constructor Summary

      Constructors 
      Constructor Description
      Region3()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static long[] origin​(long... pArray)
      Given a vararg of longs it produces a correct 3D origin array for OpenCL - non specified entries are filled with zeros.
      static long[] originZero()
      Returns a zero-origin: (0,0,0)
      static long[] region​(long... pArray)
      Given a vararg of longs it produces a correct 3D region array for OpenCL - non specified entries are filled with ones.
      static long volume​(long[] pRegion)
      Returns the volume of a given region (total number of voxels)
    • Constructor Detail

      • Region3

        public Region3()
    • Method Detail

      • originZero

        public static long[] originZero()
        Returns a zero-origin: (0,0,0)
        Returns:
        zero origin
      • origin

        public static long[] origin​(long... pArray)
        Given a vararg of longs it produces a correct 3D origin array for OpenCL - non specified entries are filled with zeros.
        Parameters:
        pArray - varrag of longs
        Returns:
        array
      • region

        public static long[] region​(long... pArray)
        Given a vararg of longs it produces a correct 3D region array for OpenCL - non specified entries are filled with ones.
        Parameters:
        pArray - varrag of longs
        Returns:
        array
      • volume

        public static long volume​(long[] pRegion)
        Returns the volume of a given region (total number of voxels)
        Parameters:
        pRegion - 3D region
        Returns:
        volume