public class ArbROIMaskGenerator 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.
ROIMaskGenerator
,
ArbROIMaskGenerator
Modifier and Type | Field and Description |
---|---|
private int[] |
maskLineHigh
The High frequency part of a mask line
|
private int[] |
maskLineLow
The low frequency part of a mask line
|
private int[] |
paddedMaskLine
A line or column of the mask with padding
|
private boolean |
roiInTile
Flag indicating if any ROI was found to be in this tile
|
private int[][] |
roiMask
The ROI mask for the current tile for all components
|
private Quantizer |
src
The source of quantized wavelet transform coefficients
|
nrc, rois, tileMaskMade
Constructor and Description |
---|
ArbROIMaskGenerator(ROI[] rois,
int nrc,
Quantizer src)
The constructor of the arbitrary mask generator
|
Modifier and Type | Method and Description |
---|---|
private void |
decomp(Subband sb,
int tilew,
int tileh,
int c)
This function decomposes the mask for a node in the subband tree.
|
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.
|
void |
makeMask(Subband sb,
int magbits,
int c)
This function generates the ROI mask for one tile-component.
|
String |
toString()
This function returns the relevant data of the mask generator
|
getROIs, tileChanged
private Quantizer src
private int[][] roiMask
private int[] maskLineLow
private int[] maskLineHigh
private int[] paddedMaskLine
private boolean roiInTile
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 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.
getROIMask
in class ROIMaskGenerator
db
- The data block that is to be filled with the masksb
- The root of the subband tree to which db belongsmagbits
- The max number of magnitude bits in any code-blockc
- The number of the componentpublic String toString()
public void makeMask(Subband sb, int magbits, int c)
Once the mask is generated in the pixel domain. it is decomposed following the same decomposition scheme as the wavelet transform.
makeMask
in class ROIMaskGenerator
sb
- The root of the subband tree used in the decompositionmagbits
- The max number of magnitude bits in any code-blockc
- component numberprivate void decomp(Subband sb, int tilew, int tileh, int c)
sb
- The subband that is to be used for the decompositiontilew
- The width of the current tiletileh
- The height of the current tilec
- component numberCopyright © 2016 Open Microscopy Environment