| java.lang.Object jj2000.j2k.roi.encoder.ROIMaskGenerator jj2000.j2k.roi.encoder.ArbROIMaskGenerator
ArbROIMaskGenerator | public class ArbROIMaskGenerator extends ROIMaskGenerator (Code) | | This class generates the ROI bit-mask when, at least, one ROI is not
rectangular. In this case, the fast ROI bit-mask algorithm generation can
not be used.
The values are calculated from the scaling factors of the ROIs. The
values with which to scale are equal to u-umin where umin is the lowest
scaling factor within the block. The umin value is sent to the entropy
coder to be used for scaling the distortion values.
See Also: ROIMaskGenerator See Also: ArbROIMaskGenerator |
Method Summary | |
public boolean | getROIMask(DataBlkInt db, Subband sb, int magbits, int c) This functions gets a DataBlk the size of the current code-block an
fills this block with the ROI mask. | public void | makeMask(Subband sb, int magbits, int c) This function generates the ROI mask for one tile-component.
Once the mask is generated in the pixel domain. | public String | toString() |
ArbROIMaskGenerator | public ArbROIMaskGenerator(ROI[] rois, int nrc, Quantizer src)(Code) | | The constructor of the arbitrary mask generator
Parameters: rois - The ROI info. Parameters: nrc - The number of components Parameters: src - The quantizer module |
getROIMask | public boolean getROIMask(DataBlkInt db, Subband sb, int magbits, int c)(Code) | | This functions gets a DataBlk the size of the current code-block an
fills this block with the ROI mask.
In order to get the mask for a particular Subband, the subband tree
is traversed and at each decomposition, the ROI masks are computed.
The widths of the synthesis filters corresponding to the wavelet
filters used in the wavelet transform are used to expand the ROI masks
in the decompositions.
Parameters: db - The data block that is to be filled with the mask Parameters: sb - The root of the subband tree to which db belongs Parameters: magbits - The max number of magnitude bits in any code-block Parameters: c - The number of the component Whether or not a mask was needed for this tile |
makeMask | public void makeMask(Subband sb, int magbits, int c)(Code) | | This function generates the ROI mask for one tile-component.
Once the mask is generated in the pixel domain. it is decomposed
following the same decomposition scheme as the wavelet transform.
Parameters: sb - The root of the subband tree used in the decomposition Parameters: magbits - The max number of magnitude bits in any code-block Parameters: c - component number |
toString | public String toString()(Code) | | This function returns the relevant data of the mask generator
|
|
|