Package jj2000.j2k.wavelet.analysis
Class CBlkWTDataFloat
- java.lang.Object
-
- jj2000.j2k.wavelet.analysis.CBlkWTData
-
- jj2000.j2k.wavelet.analysis.CBlkWTDataFloat
-
public class CBlkWTDataFloat extends CBlkWTData
This is an implementation of the 'CBlkWTData' abstract class for 32 bit floating point data (float).The methods in this class are declared final, so that they can be inlined by inlining compilers.
- See Also:
CBlkWTData
-
-
Constructor Summary
Constructors Constructor Description CBlkWTDataFloat()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ObjectgetData()Returns the array containing the data, or null if there is no data array.float[]getDataFloat()Returns the array containing the data, or null if there is no data array.intgetDataType()Returns the identifier of this data type, TYPE_FLOAT, as defined in DataBlk.voidsetData(Object arr)Sets the data array to the specified one.voidsetDataFloat(float[] arr)Sets the data array to the specified one.-
Methods inherited from class jj2000.j2k.wavelet.analysis.CBlkWTData
toString
-
-
-
-
Field Detail
-
data
public float[] data
The array where the data is stored
-
-
Constructor Detail
-
CBlkWTDataFloat
public CBlkWTDataFloat()
-
-
Method Detail
-
getDataType
public final int getDataType()
Returns the identifier of this data type, TYPE_FLOAT, as defined in DataBlk.- Specified by:
getDataTypein classCBlkWTData- Returns:
- The type of data stored. Always DataBlk.TYPE_FLOAT
- See Also:
DataBlk.TYPE_FLOAT
-
getData
public final Object getData()
Returns the array containing the data, or null if there is no data array. The returned array is a float array.- Specified by:
getDatain classCBlkWTData- Returns:
- The array of data (a float[]) or null if there is no data.
- See Also:
CBlkWTData.getDataType()
-
getDataFloat
public final float[] getDataFloat()
Returns the array containing the data, or null if there is no data array.- Returns:
- The array of data or null if there is no data.
-
setData
public final void setData(Object arr)
Sets the data array to the specified one. The provided array must be a float array, otherwise a ClassCastException is thrown. The size of the array is not checked for consistency with the code-block dimensions.- Specified by:
setDatain classCBlkWTData- Parameters:
arr- The data array to use. Must be a float array.- See Also:
CBlkWTData.getDataType()
-
setDataFloat
public final void setDataFloat(float[] arr)
Sets the data array to the specified one. The size of the array is not checked for consistency with the code-block dimensions. This method is more efficient than 'setData()'.- Parameters:
arr- The data array to use.
-
-