jj2000.j2k.roi.encoder
Class SubbandRectROIMask

java.lang.Object
  |
  +--jj2000.j2k.roi.encoder.SubbandROIMask
        |
        +--jj2000.j2k.roi.encoder.SubbandRectROIMask

public class SubbandRectROIMask
extends SubbandROIMask

This class describes the ROI mask for a single subband. Each object of the class contains the mask for a particular subband and also has references to the masks of the children subbands of the subband corresponding to this mask. This class describes subband masks for images containing only rectangular ROIS


Field Summary
 int[] lrxs
          The lower right x coordinates of the applicable ROIs
 int[] lrys
          The lower right y coordinates of the applicable ROIs
 int[] ulxs
          The upper left x coordinates of the applicable ROIs
 int[] ulys
          The upper left y coordinates of the applicable ROIs
 
Fields inherited from class jj2000.j2k.roi.encoder.SubbandROIMask
h, hh, hl, isNode, lh, ll, ulx, uly, w
 
Constructor Summary
SubbandRectROIMask(Subband sb, int[] ulxs, int[] ulys, int[] lrxs, int[] lrys, int nr)
          The constructor of the SubbandROIMask takes the dimensions of the subband as parameters.
 
Methods inherited from class jj2000.j2k.roi.encoder.SubbandROIMask
getSubbandRectROIMask
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ulxs

public int[] ulxs
The upper left x coordinates of the applicable ROIs


ulys

public int[] ulys
The upper left y coordinates of the applicable ROIs


lrxs

public int[] lrxs
The lower right x coordinates of the applicable ROIs


lrys

public int[] lrys
The lower right y coordinates of the applicable ROIs

Constructor Detail

SubbandRectROIMask

public SubbandRectROIMask(Subband sb,
                          int[] ulxs,
                          int[] ulys,
                          int[] lrxs,
                          int[] lrys,
                          int nr)
The constructor of the SubbandROIMask takes the dimensions of the subband as parameters. A tree of masks is generated from the subband sb. Each Subband contains the boundaries of each ROI.

Parameters:
sb - The subband corresponding to this Subband Mask
ulxs - The upper left x coordinates of the ROIs
ulys - The upper left y coordinates of the ROIs
lrxs - The lower right x coordinates of the ROIs
lrys - The lower right y coordinates of the ROIs
nr - Number of ROIs that affect this tile