[]
        
(Showing Draft Content)

CSJ2K.j2k.wavelet.analysis.CBlkWTData

CBlkWTData Class

This is a generic abstract class to store a code-block of wavelet data, quantized or not. This class does not have the notion of components. Therefore, it should be used for data from a single component. Subclasses should implement the different types of storage (int, float, etc.).

       <p>The data is always stored in one array, of the type matching the data
       type (i.e. for 'int' it's an 'int[]'). The data should be stored in the
       array in standard scan-line order. That is the samples go from the top-left
       corner of the code-block to the lower-right corner by line and then
       column.</p><p>The member variable 'offset' gives the index in the array of the first
       data element (i.e. the top-left coefficient). The member variable 'scanw'
       gives the width of the scan that is used to store the data, that can be
       different from the width of the block. Element '(x,y)' of the code-block
       (i.e. '(0,0)' is the top-left coefficient), will appear at position
       'offset+y*scanw+x' in the array of data.</p><p>The classes <tt>CBlkWTDataInt</tt> and <tt>CBlkWTDataFloat</tt> provide
       implementations for <tt>int</tt> and <tt>float</tt> types respectively.</p><p>The types of data are the same as those defined by the 'DataBlk'
       class.</p>
Inheritance
CBlkWTData
Namespace: CSJ2K.j2k.wavelet.analysis
Assembly: C1.WPF.PdfViewer.4.6.2.dll
Syntax
public abstract class CBlkWTData

Constructors

Name Description
CBlkWTData()

Fields

Name Description
convertFactor

The value by which the absolute value of the data has to be divided in order to get the real absolute value. This value is useful to obtain the complement of 2 representation of a coefficient that is currently using the sign-magnitude representation.

h

The height of the code-block

m

The vertical index of the code-block, within the subband

magbits

The number of magnitude bits in the integer representation. This is only used for quantized wavelet data.

n

The horizontal index of the code-block, within the subband

nROIbp

Number of ROI magnitude bit-planes

nROIcoeff

Number of ROI coefficients in the code-block

offset

The offset in the array of the top-left coefficient

sb

The subband in which this code-block is found

scanw

The width of the scanlines used to store the data in the array

stepSize

The quantization step size of the code-block. The value is updated by the quantizer module

ulx

The horizontal coordinate of the upper-left corner of the code-block

uly

The vertical coordinate of the upper left corner of the code-block

w

The width of the code-block

wmseScaling

The WMSE scaling factor (multiplicative) to apply to the distortion measures of the data of this code-block. By default it is 1.

Properties

Name Description
Data

Returns the array containing the data, or null if there is no data. The returned array is of the type returned by getDataType() (e.g., for TYPE_INT, it is a int[]).

       <p>Each implementing class should provide a type specific equivalent
       method (e.g., <tt>getDataInt()</tt> in <tt>DataBlkInt</tt>) which
       returns an array of the correct type explicitely and not through an
       <tt>Object</tt>.</p>
DataType

Returns the data type of the CBlkWTData object, as defined in the DataBlk class.

Methods

Name Description
ToString()

Returns a string of informations about the DataBlk

See Also