| java.lang.Object jj2000.j2k.roi.encoder.ROIMaskGenerator jj2000.j2k.roi.encoder.RectROIMaskGenerator
RectROIMaskGenerator | public class RectROIMaskGenerator extends ROIMaskGenerator (Code) | | This class generates the ROI masks when there are only rectangular ROIs in
the image. The ROI mask generation can then be simplified by only
calculating the boundaries of the ROI mask in the particular subbands
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.
To generate and to store the boundaries of the ROIs, the class
SubbandRectROIMask is used. There is one tree of SubbandMasks for each
component.
See Also: SubbandRectROIMask 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 and
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. | public void | makeMask(Subband sb, int magbits, int n) This function generates the ROI mask for the entire tile. | public String | toString() |
RectROIMaskGenerator | public RectROIMaskGenerator(ROI[] ROIs, int nrc)(Code) | | The constructor of the mask generator. The constructor is called with
the ROI data. This data is stored in arrays that are used to generate
the SubbandRectROIMask trees for each component.
Parameters: ROIs - The ROI info. Parameters: maxShift - The flag indicating use of Maxshift method. Parameters: nrc - number of components. |
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 and
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
roi bondaries for each subband are stored in the SubbandRectROIMask
tree.
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 component for which to get the mask Whether or not a mask was needed for this tile |
makeMask | public void makeMask(Subband sb, int magbits, int n)(Code) | | This function generates the ROI mask for the entire tile. The mask is
generated for one component. This method is called once for each tile
and component.
Parameters: sb - The root of the subband tree used in the decomposition Parameters: n - component number |
toString | public String toString()(Code) | | This function returns the relevant data of the mask generator
|
|
|