Class PrecInfo


  • public class PrecInfo
    extends Object
    Class that holds precinct coordinates and references to contained code-blocks in each subband.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      CBlkCoordInfo[][][] cblk
      Code-blocks belonging to this precinct in each subbands of the resolution level
      int h
      Precinct height in the corresponding resolution level
      int[] nblk
      Number of code-blocks in each subband belonging to this precinct
      int r
      Resolution level index
      int rgh
      Precinct height reported in the reference grid
      int rgulx
      Precinct horizontal upper-left coordinate in the reference grid
      int rguly
      Precinct vertical upper-left coordinate in the reference grid
      int rgw
      Precinct width reported in the reference grid
      int ulx
      Precinct horizontal upper-left coordinate in the corresponding resolution level
      int uly
      Precinct vertical upper-left coordinate in the corresponding resolution level
      int w
      Precinct width in the corresponding resolution level
    • Constructor Summary

      Constructors 
      Constructor Description
      PrecInfo​(int r, int ulx, int uly, int w, int h, int rgulx, int rguly, int rgw, int rgh)
      Class constructor.
    • Field Detail

      • rgulx

        public int rgulx
        Precinct horizontal upper-left coordinate in the reference grid
      • rguly

        public int rguly
        Precinct vertical upper-left coordinate in the reference grid
      • rgw

        public int rgw
        Precinct width reported in the reference grid
      • rgh

        public int rgh
        Precinct height reported in the reference grid
      • ulx

        public int ulx
        Precinct horizontal upper-left coordinate in the corresponding resolution level
      • uly

        public int uly
        Precinct vertical upper-left coordinate in the corresponding resolution level
      • w

        public int w
        Precinct width in the corresponding resolution level
      • h

        public int h
        Precinct height in the corresponding resolution level
      • r

        public int r
        Resolution level index
      • cblk

        public CBlkCoordInfo[][][] cblk
        Code-blocks belonging to this precinct in each subbands of the resolution level
      • nblk

        public int[] nblk
        Number of code-blocks in each subband belonging to this precinct
    • Constructor Detail

      • PrecInfo

        public PrecInfo​(int r,
                        int ulx,
                        int uly,
                        int w,
                        int h,
                        int rgulx,
                        int rguly,
                        int rgw,
                        int rgh)
        Class constructor.
        Parameters:
        r - Resolution level index.
        ulx - Precinct horizontal offset.
        uly - Precinct vertical offset.
        w - Precinct width.
        h - Precinct height.
        rgulx - Precinct horizontal offset in the image reference grid.
        rguly - Precinct horizontal offset in the image reference grid.
        rgw - Precinct width in the reference grid.
        rgh - Precinct height in the reference grid.
    • Method Detail

      • toString

        public String toString()
        Returns PrecInfo object information in a String
        Overrides:
        toString in class Object
        Returns:
        PrecInfo information