Leptonica  1.82.0
Image processing and image analysis suite
JbClasser Struct Reference

#include <jbclass.h>

Data Fields

struct Sarraysafiles
 
l_int32 method
 
l_int32 components
 
l_int32 maxwidth
 
l_int32 maxheight
 
l_int32 npages
 
l_int32 baseindex
 
struct Numanacomps
 
l_int32 sizehaus
 
l_float32 rankhaus
 
l_float32 thresh
 
l_float32 weightfactor
 
struct Numanaarea
 
l_int32 w
 
l_int32 h
 
l_int32 nclass
 
l_int32 keep_pixaa
 
struct Pixaapixaa
 
struct Pixapixat
 
struct Pixapixatd
 
struct L_DnaHashdahash
 
struct Numanafgt
 
struct Ptaptac
 
struct Ptaptact
 
struct Numanaclass
 
struct Numanapage
 
struct Ptaptaul
 
struct Ptaptall
 

Detailed Description

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.

Definition at line 47 of file jbclass.h.

Field Documentation

◆ baseindex

l_int32 JbClasser::baseindex

number components already processed
on fully processed pages

Definition at line 56 of file jbclass.h.

◆ components

l_int32 JbClasser::components

JB_CONN_COMPS, JB_CHARACTERS or
JB_WORDS

Definition at line 51 of file jbclass.h.

◆ dahash

struct L_DnaHash* JbClasser::dahash

Hash table to find templates by size

Definition at line 75 of file jbclass.h.

◆ h

l_int32 JbClasser::h

max height of original src images

Definition at line 67 of file jbclass.h.

◆ keep_pixaa

l_int32 JbClasser::keep_pixaa

If zero, pixaa isn't filled

Definition at line 69 of file jbclass.h.

◆ maxheight

l_int32 JbClasser::maxheight

max component height allowed

Definition at line 54 of file jbclass.h.

◆ maxwidth

l_int32 JbClasser::maxwidth

max component width allowed

Definition at line 53 of file jbclass.h.

◆ method

l_int32 JbClasser::method

JB_RANKHAUS, JB_CORRELATION

Definition at line 50 of file jbclass.h.

◆ naarea

struct Numa* JbClasser::naarea

w * h of each template, without
extra border pixels

Definition at line 64 of file jbclass.h.

◆ naclass

struct Numa* JbClasser::naclass

array of class ids for each component

Definition at line 80 of file jbclass.h.

◆ nacomps

struct Numa* JbClasser::nacomps

number of components on each page

Definition at line 58 of file jbclass.h.

◆ nafgt

struct Numa* JbClasser::nafgt

fg areas of undilated templates;
only used for rank < 1.0

Definition at line 76 of file jbclass.h.

◆ napage

struct Numa* JbClasser::napage

array of page nums for each component

Definition at line 81 of file jbclass.h.

◆ nclass

l_int32 JbClasser::nclass

current number of classes

Definition at line 68 of file jbclass.h.

◆ npages

l_int32 JbClasser::npages

number of pages already processed

Definition at line 55 of file jbclass.h.

◆ pixaa

struct Pixaa* JbClasser::pixaa

instances for each class; unbordered

Definition at line 70 of file jbclass.h.

◆ pixat

struct Pixa* JbClasser::pixat

templates for each class; bordered
and not dilated

Definition at line 71 of file jbclass.h.

◆ pixatd

struct Pixa* JbClasser::pixatd

templates for each class; bordered
and dilated

Definition at line 73 of file jbclass.h.

◆ ptac

struct Pta* JbClasser::ptac

centroids of all bordered cc

Definition at line 78 of file jbclass.h.

◆ ptact

struct Pta* JbClasser::ptact

centroids of all bordered template cc

Definition at line 79 of file jbclass.h.

◆ ptall

struct Pta* JbClasser::ptall

similar to ptaul, but for LL corners

Definition at line 85 of file jbclass.h.

◆ ptaul

struct Pta* JbClasser::ptaul

array of UL corners at which the
template is to be placed for each
component

Definition at line 82 of file jbclass.h.

◆ rankhaus

l_float32 JbClasser::rankhaus

rank val of haus match, each way

Definition at line 60 of file jbclass.h.

◆ safiles

struct Sarray* JbClasser::safiles

input page image file names

Definition at line 49 of file jbclass.h.

◆ sizehaus

l_int32 JbClasser::sizehaus

size of square struct elem for haus

Definition at line 59 of file jbclass.h.

◆ thresh

l_float32 JbClasser::thresh

thresh value for correlation score

Definition at line 61 of file jbclass.h.

◆ w

l_int32 JbClasser::w

max width of original src images

Definition at line 66 of file jbclass.h.

◆ weightfactor

l_float32 JbClasser::weightfactor

corrects thresh value for heaver
components; use 0 for no correction

Definition at line 62 of file jbclass.h.


The documentation for this struct was generated from the following file: