Class JBCLASSER

java.lang.Object
org.bytedeco.javacpp.Pointer
org.bytedeco.leptonica.JBCLASSER
All Implemented Interfaces:
AutoCloseable

@Name("JbClasser") @Properties(inherit=leptonica.class) public class JBCLASSER extends Pointer
 The JbClasser struct holds all the data accumulated during the
 classification process that can be used for a compressed
 jbig2-type representation of a set of images.  This is created
 in an initialization process and added to as the selected components
 on each successive page are analyzed.
 
  • Constructor Details

    • JBCLASSER

      public JBCLASSER()
      Default native constructor.
    • JBCLASSER

      public JBCLASSER(long size)
      Native array allocator. Access with Pointer.position(long).
    • JBCLASSER

      public JBCLASSER(Pointer p)
      Pointer cast constructor. Invokes Pointer(Pointer).
  • Method Details

    • position

      public JBCLASSER position(long position)
      Overrides:
      position in class Pointer
    • getPointer

      public JBCLASSER getPointer(long i)
      Overrides:
      getPointer in class Pointer
    • safiles

      public SARRAY safiles()
      input page image file names
    • safiles

      public JBCLASSER safiles(SARRAY setter)
    • method

      @Cast("l_int32") public int method()
      JB_RANKHAUS, JB_CORRELATION
    • method

      public JBCLASSER method(int setter)
    • components

      @Cast("l_int32") public int components()
      JB_WORDS
    • components

      public JBCLASSER components(int setter)
    • maxwidth

      @Cast("l_int32") public int maxwidth()
      max component width allowed
    • maxwidth

      public JBCLASSER maxwidth(int setter)
    • maxheight

      @Cast("l_int32") public int maxheight()
      max component height allowed
    • maxheight

      public JBCLASSER maxheight(int setter)
    • npages

      @Cast("l_int32") public int npages()
      number of pages already processed
    • npages

      public JBCLASSER npages(int setter)
    • baseindex

      @Cast("l_int32") public int baseindex()
      on fully processed pages
    • baseindex

      public JBCLASSER baseindex(int setter)
    • nacomps

      public NUMA nacomps()
      number of components on each page
    • nacomps

      public JBCLASSER nacomps(NUMA setter)
    • sizehaus

      @Cast("l_int32") public int sizehaus()
      size of square struct elem for haus
    • sizehaus

      public JBCLASSER sizehaus(int setter)
    • rankhaus

      @Cast("l_float32") public float rankhaus()
      rank val of haus match, each way
    • rankhaus

      public JBCLASSER rankhaus(float setter)
    • thresh

      @Cast("l_float32") public float thresh()
      thresh value for correlation score
    • thresh

      public JBCLASSER thresh(float setter)
    • weightfactor

      @Cast("l_float32") public float weightfactor()
      components; use 0 for no correction
    • weightfactor

      public JBCLASSER weightfactor(float setter)
    • naarea

      public NUMA naarea()
      extra border pixels
    • naarea

      public JBCLASSER naarea(NUMA setter)
    • w

      @Cast("l_int32") public int w()
      max width of original src images
    • w

      public JBCLASSER w(int setter)
    • h

      @Cast("l_int32") public int h()
      max height of original src images
    • h

      public JBCLASSER h(int setter)
    • nclass

      @Cast("l_int32") public int nclass()
      current number of classes
    • nclass

      public JBCLASSER nclass(int setter)
    • keep_pixaa

      @Cast("l_int32") public int keep_pixaa()
      If zero, pixaa isn't filled
    • keep_pixaa

      public JBCLASSER keep_pixaa(int setter)
    • pixaa

      public PIXAA pixaa()
      instances for each class; unbordered
    • pixaa

      public JBCLASSER pixaa(PIXAA setter)
    • pixat

      public PIXA pixat()
      and not dilated
    • pixat

      public JBCLASSER pixat(PIXA setter)
    • pixatd

      public PIXA pixatd()
      and dilated
    • pixatd

      public JBCLASSER pixatd(PIXA setter)
    • dahash

      public L_DNAHASH dahash()
      Hash table to find templates by size
    • dahash

      public JBCLASSER dahash(L_DNAHASH setter)
    • nafgt

      public NUMA nafgt()
      only used for rank < 1.0
    • nafgt

      public JBCLASSER nafgt(NUMA setter)
    • ptac

      public PTA ptac()
      centroids of all bordered cc
    • ptac

      public JBCLASSER ptac(PTA setter)
    • ptact

      public PTA ptact()
      centroids of all bordered template cc
    • ptact

      public JBCLASSER ptact(PTA setter)
    • naclass

      public NUMA naclass()
      array of class ids for each component
    • naclass

      public JBCLASSER naclass(NUMA setter)
    • napage

      public NUMA napage()
      array of page nums for each component
    • napage

      public JBCLASSER napage(NUMA setter)
    • ptaul

      public PTA ptaul()
      component
    • ptaul

      public JBCLASSER ptaul(PTA setter)
    • ptall

      public PTA ptall()
      similar to ptaul, but for LL corners
    • ptall

      public JBCLASSER ptall(PTA setter)