Class jxlatte.ImageBuffer

java.lang.Object
gov.nih.mipav.model.file.jxlatte.ImageBuffer
Enclosing class:
jxlatte

public class jxlatte.ImageBuffer extends Object
  • Field Details

    • TYPE_INT

      public static final int TYPE_INT
      See Also:
    • TYPE_FLOAT

      public static final int TYPE_FLOAT
      See Also:
    • type

      private int type
    • height

      public final int height
    • width

      public final int width
    • buffer

      private Object[] buffer
  • Constructor Details

    • ImageBuffer

      public ImageBuffer(jxlatte.ImageBuffer buffer)
    • ImageBuffer

      public ImageBuffer(jxlatte.ImageBuffer buffer, boolean copyData)
    • ImageBuffer

      public ImageBuffer(float[][] buffer)
    • ImageBuffer

      public ImageBuffer(int[][] buffer)
    • ImageBuffer

      public ImageBuffer(int type, int height, int width)
  • Method Details

    • getBackingBuffer

      public Object[] getBackingBuffer()
    • getFloatBuffer

      public float[][] getFloatBuffer()
    • getIntBuffer

      public int[][] getIntBuffer()
    • isInt

      public boolean isInt()
    • isFloat

      public boolean isFloat()
    • getType

      public int getType()
    • castToFloatWithMax

      public void castToFloatWithMax(int maxValue)
    • castToFloat

      public void castToFloat(int depth)
    • castToIntWithMax

      public void castToIntWithMax(int maxValue)
    • castToInt

      public void castToInt(int depth)
    • castToFloat0

      private void castToFloat0(int maxValue)
    • castToInt0

      private void castToInt0(int maxValue)
    • clamp

      public void clamp(int maxValue)
      Clamp an int buffer
    • clamp

      public void clamp()
      Clamp a float buffer
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object another)
      Overrides:
      equals in class Object