public abstract class ROIMaskGenerator extends Object
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.
RectROIMaskGenerator, 
ArbROIMaskGenerator| Modifier and Type | Field and Description | 
|---|---|
protected int | 
nrc
Number of components 
 | 
protected boolean | 
roiInTile  | 
protected ROI[] | 
rois
Array containing the ROIs 
 | 
protected boolean[] | 
tileMaskMade
Flag indicating whether a mask has been made for the current tile 
 | 
| Constructor and Description | 
|---|
ROIMaskGenerator(ROI[] rois,
                int nrc)
The constructor of the mask generator 
 | 
| Modifier and Type | Method and Description | 
|---|---|
abstract 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. 
 | 
ROI[] | 
getROIs()
This function returns the ROIs in the image 
 | 
abstract void | 
makeMask(Subband sb,
        int magbits,
        int n)
This function generates the ROI mask for the entire tile. 
 | 
void | 
tileChanged()
This function is called every time the tile is changed to indicate
 that there is need to make a new mask 
 | 
protected ROI[] rois
protected int nrc
protected boolean[] tileMaskMade
protected boolean roiInTile
public ROIMaskGenerator(ROI[] rois, int nrc)
rois - The ROIs in the imagenrc - The number of componentspublic ROI[] getROIs()
public abstract boolean getROIMask(DataBlkInt db, Subband sb, int magbits, int c)
db - The data block that is to be filled with the masksb - The root of the current subband treemagbits - The number of magnitude bits in this code-blockc - Component numberpublic abstract void makeMask(Subband sb, int magbits, int n)
sb - The root of the subband tree used in the decompositionmagbits - The max number of magnitude bits in any code-blockn - component numberpublic void tileChanged()
Copyright © 2017 Open Microscopy Environment