@Name(value="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.
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Constructor and Description |
---|
JBCLASSER()
Default native constructor.
|
JBCLASSER(long size)
Native array allocator.
|
JBCLASSER(Pointer p)
Pointer cast constructor.
|
Modifier and Type | Method and Description |
---|---|
int |
baseindex()
on fully processed pages
|
JBCLASSER |
baseindex(int setter) |
int |
components()
JB_WORDS
|
JBCLASSER |
components(int setter) |
L_DNAHASH |
dahash()
Hash table to find templates by size
|
JBCLASSER |
dahash(L_DNAHASH setter) |
JBCLASSER |
getPointer(long i) |
int |
h()
max height of original src images
|
JBCLASSER |
h(int setter) |
int |
keep_pixaa()
If zero, pixaa isn't filled
|
JBCLASSER |
keep_pixaa(int setter) |
int |
maxheight()
max component height allowed
|
JBCLASSER |
maxheight(int setter) |
int |
maxwidth()
max component width allowed
|
JBCLASSER |
maxwidth(int setter) |
int |
method()
JB_RANKHAUS, JB_CORRELATION
|
JBCLASSER |
method(int setter) |
NUMA |
naarea()
extra border pixels
|
JBCLASSER |
naarea(NUMA setter) |
NUMA |
naclass()
array of class ids for each component
|
JBCLASSER |
naclass(NUMA setter) |
NUMA |
nacomps()
number of components on each page
|
JBCLASSER |
nacomps(NUMA setter) |
NUMA |
nafgt()
only used for rank < 1.0
|
JBCLASSER |
nafgt(NUMA setter) |
NUMA |
napage()
array of page nums for each component
|
JBCLASSER |
napage(NUMA setter) |
int |
nclass()
current number of classes
|
JBCLASSER |
nclass(int setter) |
int |
npages()
number of pages already processed
|
JBCLASSER |
npages(int setter) |
PIXAA |
pixaa()
instances for each class; unbordered
|
JBCLASSER |
pixaa(PIXAA setter) |
PIXA |
pixat()
and not dilated
|
JBCLASSER |
pixat(PIXA setter) |
PIXA |
pixatd()
and dilated
|
JBCLASSER |
pixatd(PIXA setter) |
JBCLASSER |
position(long position) |
PTA |
ptac()
centroids of all bordered cc
|
JBCLASSER |
ptac(PTA setter) |
PTA |
ptact()
centroids of all bordered template cc
|
JBCLASSER |
ptact(PTA setter) |
PTA |
ptall()
similar to ptaul, but for LL corners
|
JBCLASSER |
ptall(PTA setter) |
PTA |
ptaul()
component
|
JBCLASSER |
ptaul(PTA setter) |
float |
rankhaus()
rank val of haus match, each way
|
JBCLASSER |
rankhaus(float setter) |
SARRAY |
safiles()
input page image file names
|
JBCLASSER |
safiles(SARRAY setter) |
int |
sizehaus()
size of square struct elem for haus
|
JBCLASSER |
sizehaus(int setter) |
float |
thresh()
thresh value for correlation score
|
JBCLASSER |
thresh(float setter) |
int |
w()
max width of original src images
|
JBCLASSER |
w(int setter) |
float |
weightfactor()
components; use 0 for no correction
|
JBCLASSER |
weightfactor(float setter) |
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
public JBCLASSER()
public JBCLASSER(long size)
Pointer.position(long)
.public JBCLASSER(Pointer p)
Pointer(Pointer)
.public JBCLASSER getPointer(long i)
getPointer
in class Pointer
public SARRAY safiles()
public JBCLASSER method(int setter)
public JBCLASSER components(int setter)
public JBCLASSER maxwidth(int setter)
public JBCLASSER maxheight(int setter)
public JBCLASSER npages(int setter)
public JBCLASSER baseindex(int setter)
public NUMA nacomps()
public JBCLASSER sizehaus(int setter)
public JBCLASSER rankhaus(float setter)
public JBCLASSER thresh(float setter)
@Cast(value="l_float32") public float weightfactor()
public JBCLASSER weightfactor(float setter)
public NUMA naarea()
public JBCLASSER w(int setter)
public JBCLASSER h(int setter)
public JBCLASSER nclass(int setter)
public JBCLASSER keep_pixaa(int setter)
public PIXAA pixaa()
public PIXA pixat()
public PIXA pixatd()
public L_DNAHASH dahash()
public NUMA nafgt()
public PTA ptac()
public PTA ptact()
public NUMA naclass()
public NUMA napage()
public PTA ptaul()
public PTA ptall()
Copyright © 2024. All rights reserved.