| java.lang.Object jj2000.j2k.roi.encoder.ROIMaskGenerator
All known Subclasses: jj2000.j2k.roi.encoder.RectROIMaskGenerator, jj2000.j2k.roi.encoder.ArbROIMaskGenerator,
ROIMaskGenerator | abstract public class ROIMaskGenerator (Code) | | This class generates the ROI masks for the ROIScaler.It gives the scaler
the ROI mask for the current code-block.
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: RectROIMaskGenerator See Also: ArbROIMaskGenerator |
Method Summary | |
abstract public boolean | getROIMask(DataBlkInt db, Subband sb, int magbits, int c) This functions gets a DataBlk with the size of the current code-block
and fills it with the ROI mask. | public ROI[] | getROIs() | abstract public void | makeMask(Subband sb, int magbits, int n) This function generates the ROI mask for the entire tile. | public void | tileChanged() |
nrc | protected int nrc(Code) | | Number of components
|
roiInTile | protected boolean roiInTile(Code) | | |
rois | protected ROI[] rois(Code) | | Array containing the ROIs
|
tileMaskMade | protected boolean tileMaskMade(Code) | | Flag indicating whether a mask has been made for the current tile
|
ROIMaskGenerator | public ROIMaskGenerator(ROI[] rois, int nrc)(Code) | | The constructor of the mask generator
Parameters: rois - The ROIs in the image Parameters: nrc - The number of components |
getROIMask | abstract public boolean getROIMask(DataBlkInt db, Subband sb, int magbits, int c)(Code) | | This functions gets a DataBlk with the size of the current code-block
and fills it with the ROI mask. The lowest scaling value in the mask
for this code-block is returned by the function to be used for
modifying the rate distortion estimations.
Parameters: db - The data block that is to be filled with the mask Parameters: sb - The root of the current subband tree Parameters: magbits - The number of magnitude bits in this code-block Parameters: c - Component number Whether or not a mask was needed for this tile |
getROIs | public ROI[] getROIs()(Code) | | This function returns the ROIs in the image
The ROIs in the image |
makeMask | abstract 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: magbits - The max number of magnitude bits in any code-block Parameters: n - component number |
tileChanged | public void tileChanged()(Code) | | This function is called every time the tile is changed to indicate
that there is need to make a new mask
|
|
|