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 Details

    • 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 Details

    • 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