Package org.bytedeco.leptonica
Class JBCLASSER
java.lang.Object
org.bytedeco.javacpp.Pointer
org.bytedeco.leptonica.JBCLASSER
- All Implemented Interfaces:
AutoCloseable
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.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bytedeco.javacpp.Pointer
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
on fully processed pagesbaseindex
(int setter) int
JB_WORDScomponents
(int setter) dahash()
Hash table to find templates by sizegetPointer
(long i) int
h()
max height of original src imagesh
(int setter) int
If zero, pixaa isn't filledkeep_pixaa
(int setter) int
max component height allowedmaxheight
(int setter) int
maxwidth()
max component width allowedmaxwidth
(int setter) int
method()
JB_RANKHAUS, JB_CORRELATIONmethod
(int setter) naarea()
extra border pixelsnaclass()
array of class ids for each componentnacomps()
number of components on each pagenafgt()
only used for rank < 1.0napage()
array of page nums for each componentint
nclass()
current number of classesnclass
(int setter) int
npages()
number of pages already processednpages
(int setter) pixaa()
instances for each class; unborderedpixat()
and not dilatedpixatd()
and dilatedposition
(long position) ptac()
centroids of all bordered ccptact()
centroids of all bordered template ccptall()
similar to ptaul, but for LL cornersptaul()
componentfloat
rankhaus()
rank val of haus match, each wayrankhaus
(float setter) safiles()
input page image file namesint
sizehaus()
size of square struct elem for haussizehaus
(int setter) float
thresh()
thresh value for correlation scorethresh
(float setter) int
w()
max width of original src imagesw
(int setter) float
components; use 0 for no correctionweightfactor
(float setter) Methods inherited from class org.bytedeco.javacpp.Pointer
address, asBuffer, asByteBuffer, availablePhysicalBytes, calloc, capacity, capacity, close, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, formatBytes, free, getDirectBufferAddress, getPointer, getPointer, getPointer, hashCode, interruptDeallocatorThread, isNull, isNull, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetAddress, offsetof, offsetof, parseBytes, physicalBytes, physicalBytesInaccurate, position, put, realloc, referenceCount, releaseReference, retainReference, setNull, sizeof, sizeof, toString, totalBytes, totalCount, totalPhysicalBytes, withDeallocator, zero
-
Constructor Details
-
JBCLASSER
public JBCLASSER()Default native constructor. -
JBCLASSER
public JBCLASSER(long size) Native array allocator. Access withPointer.position(long)
. -
JBCLASSER
Pointer cast constructor. InvokesPointer(Pointer)
.
-
-
Method Details
-
position
-
getPointer
- Overrides:
getPointer
in classPointer
-
safiles
input page image file names -
safiles
-
method
JB_RANKHAUS, JB_CORRELATION -
method
-
components
JB_WORDS -
components
-
maxwidth
max component width allowed -
maxwidth
-
maxheight
max component height allowed -
maxheight
-
npages
number of pages already processed -
npages
-
baseindex
on fully processed pages -
baseindex
-
nacomps
number of components on each page -
nacomps
-
sizehaus
size of square struct elem for haus -
sizehaus
-
rankhaus
rank val of haus match, each way -
rankhaus
-
thresh
thresh value for correlation score -
thresh
-
weightfactor
components; use 0 for no correction -
weightfactor
-
naarea
extra border pixels -
naarea
-
w
max width of original src images -
w
-
h
max height of original src images -
h
-
nclass
current number of classes -
nclass
-
keep_pixaa
If zero, pixaa isn't filled -
keep_pixaa
-
pixaa
instances for each class; unbordered -
pixaa
-
pixat
and not dilated -
pixat
-
pixatd
and dilated -
pixatd
-
dahash
Hash table to find templates by size -
dahash
-
nafgt
only used for rank < 1.0 -
nafgt
-
ptac
centroids of all bordered cc -
ptac
-
ptact
centroids of all bordered template cc -
ptact
-
naclass
array of class ids for each component -
naclass
-
napage
array of page nums for each component -
napage
-
ptaul
component -
ptaul
-
ptall
similar to ptaul, but for LL corners -
ptall
-