Package gov.nih.mipav.model.file
Class jxlatte.ImageBuffer
java.lang.Object
gov.nih.mipav.model.file.jxlatte.ImageBuffer
- Enclosing class:
jxlatte
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionImageBuffer(float[][] buffer) ImageBuffer(int[][] buffer) ImageBuffer(int type, int height, int width) ImageBuffer(jxlatte.ImageBuffer buffer) ImageBuffer(jxlatte.ImageBuffer buffer, boolean copyData) -
Method Summary
Modifier and TypeMethodDescriptionvoidcastToFloat(int depth) private voidcastToFloat0(int maxValue) voidcastToFloatWithMax(int maxValue) voidcastToInt(int depth) private voidcastToInt0(int maxValue) voidcastToIntWithMax(int maxValue) voidclamp()Clamp a float buffervoidclamp(int maxValue) Clamp an int bufferbooleanObject[]float[][]int[][]intgetType()inthashCode()booleanisFloat()booleanisInt()toString()
-
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
-
-
Constructor Details
-
ImageBuffer
-
ImageBuffer
-
ImageBuffer
public ImageBuffer(float[][] buffer) -
ImageBuffer
public ImageBuffer(int[][] buffer) -
ImageBuffer
public ImageBuffer(int type, int height, int width)
-
-
Method Details
-
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
-
hashCode
public int hashCode() -
equals
-