public class RectROIMaskGenerator extends ROIMaskGenerator
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.
|Constructor and Description|
The constructor of the mask generator.
|Modifier and Type||Method and Description|
This functions gets a DataBlk the size of the current code-block and fills this block with the ROI mask.
This function generates the ROI mask for the entire tile.
This function returns the relevant data of the mask generator
public RectROIMaskGenerator(ROI ROIs, int nrc)
ROIs- The ROI info.
maxShift- The flag indicating use of Maxshift method.
nrc- number of components.
public boolean getROIMask(DataBlkInt db, Subband sb, int magbits, int c)
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.
db- The data block that is to be filled with the mask
sb- The root of the subband tree to which db belongs
magbits- The max number of magnitude bits in any code-block
c- The component for which to get the mask
public String toString()
public void makeMask(Subband sb, int magbits, int n)
Copyright © 2015–2018 SCIFIO. All rights reserved.