Package org.bytedeco.leptonica
Class JBDATA
java.lang.Object
org.bytedeco.javacpp.Pointer
org.bytedeco.leptonica.JBDATA
- All Implemented Interfaces:
AutoCloseable
The JbData struct holds all the data required for the compressed jbig-type representation of a set of images. The data can be written to file, read back, and used to regenerate an approximate version of the original, which differs in two ways from the original: (1) It uses a template image for each c.c. instead of the original instance, for each occurrence on each page. (2) It discards components with either a height or width larger than the maximuma, given here by the lattice dimensions used for storing the templates.
-
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
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetPointer
(long i) int
h()
max height of original page imagesh
(int setter) int
latticeh()
lattice height for template compositelatticeh
(int setter) int
latticew()
lattice width for template compositelatticew
(int setter) naclass()
array of class ids for each componentnapage()
array of page nums for each componentint
nclass()
number of classesnclass
(int setter) int
npages()
number of pagesnpages
(int setter) pix()
template composite for all classesposition
(long position) ptaul()
componentint
w()
max width of original page imagesw
(int 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
-
JBDATA
public JBDATA()Default native constructor. -
JBDATA
public JBDATA(long size) Native array allocator. Access withPointer.position(long)
. -
JBDATA
Pointer cast constructor. InvokesPointer(Pointer)
.
-
-
Method Details
-
position
-
getPointer
- Overrides:
getPointer
in classPointer
-
pix
template composite for all classes -
pix
-
npages
number of pages -
npages
-
w
max width of original page images -
w
-
h
max height of original page images -
h
-
nclass
number of classes -
nclass
-
latticew
lattice width for template composite -
latticew
-
latticeh
lattice height for template composite -
latticeh
-
naclass
array of class ids for each component -
naclass
-
napage
array of page nums for each component -
napage
-
ptaul
component -
ptaul
-