@Name(value="JbData")
public static class lept.JBDATA
extends org.bytedeco.javacpp.Pointer
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.
| Constructor and Description |
|---|
JBDATA()
Default native constructor.
|
JBDATA(long size)
Native array allocator.
|
JBDATA(org.bytedeco.javacpp.Pointer p)
Pointer cast constructor.
|
| Modifier and Type | Method and Description |
|---|---|
int |
h()
max height of original page images
|
lept.JBDATA |
h(int h) |
int |
latticeh()
lattice height for template composite
|
lept.JBDATA |
latticeh(int latticeh) |
int |
latticew()
lattice width for template composite
|
lept.JBDATA |
latticew(int latticew) |
lept.NUMA |
naclass()
array of class ids for each component
|
lept.JBDATA |
naclass(lept.NUMA naclass) |
lept.NUMA |
napage()
array of page nums for each component
|
lept.JBDATA |
napage(lept.NUMA napage) |
int |
nclass()
number of classes
|
lept.JBDATA |
nclass(int nclass) |
int |
npages()
number of pages
|
lept.JBDATA |
npages(int npages) |
lept.PIX |
pix()
template composite for all classes
|
lept.JBDATA |
pix(lept.PIX pix) |
lept.JBDATA |
position(long position) |
lept.PTA |
ptaul()
component
|
lept.JBDATA |
ptaul(lept.PTA ptaul) |
int |
w()
max width of original page images
|
lept.JBDATA |
w(int w) |
address, asBuffer, asByteBuffer, availablePhysicalBytes, calloc, capacity, capacity, close, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, formatBytes, free, hashCode, isNull, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetof, parseBytes, physicalBytes, position, put, realloc, setNull, sizeof, toString, totalBytes, totalPhysicalBytes, withDeallocator, zeropublic JBDATA()
public JBDATA(long size)
Pointer.position(long).public JBDATA(org.bytedeco.javacpp.Pointer p)
Pointer.Pointer(Pointer).public lept.JBDATA position(long position)
position in class org.bytedeco.javacpp.Pointerpublic lept.PIX pix()
public lept.JBDATA pix(lept.PIX pix)
@Cast(value="l_int32") public int npages()
public lept.JBDATA npages(int npages)
@Cast(value="l_int32") public int w()
public lept.JBDATA w(int w)
@Cast(value="l_int32") public int h()
public lept.JBDATA h(int h)
@Cast(value="l_int32") public int nclass()
public lept.JBDATA nclass(int nclass)
@Cast(value="l_int32") public int latticew()
public lept.JBDATA latticew(int latticew)
@Cast(value="l_int32") public int latticeh()
public lept.JBDATA latticeh(int latticeh)
public lept.NUMA naclass()
public lept.JBDATA naclass(lept.NUMA naclass)
public lept.NUMA napage()
public lept.JBDATA napage(lept.NUMA napage)
public lept.PTA ptaul()
public lept.JBDATA ptaul(lept.PTA ptaul)
Copyright © 2018. All rights reserved.