public class FloatByteMap
extends java.lang.Object
Constructor and Description |
---|
FloatByteMap(double percMin,
double percMax,
float[] f)
Constructs a map for the specified percentiles and array.
|
FloatByteMap(double percMin,
double percMax,
float[][] f)
Constructs a map for the specified percentiles and array.
|
FloatByteMap(double percMin,
double percMax,
float[][][] f)
Constructs clips for the specified percentiles and array.
|
FloatByteMap(double percMin,
double percMax,
Float3 f3)
Constructs clips for the specified percentiles and array.
|
FloatByteMap(float[] f)
Constructs a map for specified values.
|
FloatByteMap(float[][] f)
Constructs a map for specified values.
|
FloatByteMap(float[][][] f)
Constructs a map for specified values.
|
FloatByteMap(Float3 f3)
Constructs a map for specified values.
|
Modifier and Type | Method and Description |
---|---|
int |
getByte(float f)
Gets the byte value corresponding to the specified float value.
|
void |
getBytes(float[][][] f,
byte[] b)
Gets byte values corresponding to specified float values.
|
void |
getBytes(float[][][] f,
byte[][][] b)
Gets byte values corresponding to specified float values.
|
void |
getBytes(float[][] f,
byte[] b)
Gets byte values corresponding to specified float values.
|
void |
getBytes(float[][] f,
byte[][] b)
Gets byte values corresponding to specified float values.
|
void |
getBytes(float[] f,
byte[] b)
Gets byte values corresponding to specified float values.
|
void |
getBytes(Float3 f3,
byte[] b)
Gets byte values corresponding to specified float values.
|
void |
getBytes(Float3 f3,
byte[][][] b)
Gets byte values corresponding to specified float values.
|
float |
getClipMax()
Gets the maximum clip value for this mapping.
|
float |
getClipMin()
Gets the minimum clip value for this mapping.
|
float |
getPercentileMax()
Gets the maximum percentile.
|
float |
getPercentileMin()
Gets the minimum percentile.
|
void |
setClips(double clipMin,
double clipMax)
Sets the clips for this mapping.
|
void |
setPercentiles(double percMin,
double percMax)
Sets the percentiles used to compute clips for this mapping.
|
public FloatByteMap(float[] f)
f
- array of values; by reference, not by copy.public FloatByteMap(float[][] f)
f
- array of values; by reference, not by copy.public FloatByteMap(float[][][] f)
f
- array of values; by reference, not by copy.public FloatByteMap(Float3 f3)
f3
- abstract 3-D array of values; by reference, not by copy.public FloatByteMap(double percMin, double percMax, float[] f)
percMin
- the percentile corresponding to clipMin.percMax
- the percentile corresponding to clipMax.f
- array of values; by reference, not by copy.public FloatByteMap(double percMin, double percMax, float[][] f)
percMin
- the percentile corresponding to clipMin.percMax
- the percentile corresponding to clipMax.f
- array of values; by reference, not by copy.public FloatByteMap(double percMin, double percMax, float[][][] f)
percMin
- the percentile corresponding to clipMin.percMax
- the percentile corresponding to clipMax.f
- array of values; by reference, not by copy.public FloatByteMap(double percMin, double percMax, Float3 f3)
percMin
- the percentile corresponding to clipMin.percMax
- the percentile corresponding to clipMax.f3
- abstract 3-D array of values; by reference, not by copy.public int getByte(float f)
f
- the float value to be mapped.public void getBytes(float[] f, byte[] b)
f
- input array of float values to be mapped.b
- output array of unsigned byte values in the range [0,255].public void getBytes(float[][] f, byte[][] b)
f
- input array of float values to be mapped.b
- output array of unsigned byte values in the range [0,255].public void getBytes(float[][] f, byte[] b)
f
- input array of float values to be mapped.b
- output array of unsigned byte values in the range [0,255].public void getBytes(float[][][] f, byte[][][] b)
f
- input array of float values to be mapped.b
- output array of unsigned byte values in the range [0,255].public void getBytes(float[][][] f, byte[] b)
f
- input array of float values to be mapped.b
- output array of unsigned byte values in the range [0,255].public void getBytes(Float3 f3, byte[][][] b)
f3
- input array of float values to be mapped.b
- output array of unsigned byte values in the range [0,255].public void getBytes(Float3 f3, byte[] b)
f3
- input array of float values to be mapped.b
- output array of unsigned byte values in the range [0,255].public void setClips(double clipMin, double clipMax)
Calling this method disables the computation of clips from percentiles. Any clip values computed or specified previously will be forgotten.
clipMin
- the sample value corresponding to byte value 0.clipMax
- the sample value corresponding to color model index 255.public float getClipMin()
public float getClipMax()
public void setPercentiles(double percMin, double percMax)
Calling this method enables the computation of clips from percentiles. Any clip values specified or computed previously will be forgotten.
percMin
- the percentile corresponding to clipMin.percMax
- the percentile corresponding to clipMax.public float getPercentileMin()
public float getPercentileMax()