@Name(value="CCBord") @Properties(inherit=leptonica.class) public class CCBORD extends Pointer
CCBord contains: (1) a minimally-clipped bitmap of the component (pix), (2) a boxa consisting of: for the primary component: (xul, yul) pixel location in global coords (w, h) of the bitmap for the hole components: (x, y) in relative coordinates in primary component (w, h) of the hole border (which is 2 pixels larger in each direction than the hole itself) (3) a pta ('start') of the initial border pixel location for each closed curve, all in relative coordinates of the primary component. This is given for the primary component, followed by the hole components, if any. (4) a refcount of the ccbord; used internally when a ccbord is accessed from a ccborda (array of ccbord) (5) a ptaa for the chain code for the border in relative coordinates, where the first pta is the exterior border and all other pta are for interior borders (holes) (6) a ptaa for the global pixel loc rendition of the border, where the first pta is the exterior border and all other pta are for interior borders (holes). This is derived from the local or step chain code. (7) a numaa for the chain code for the border as orientation directions between successive border pixels, where the first numa is the exterior border and all other numa are for interior borders (holes). This is derived from the local chain code. The 8 directions are 0 - 7. (8) a pta for a single chain for each c.c., comprised of outer and hole borders, plus cut paths between them, all in local coords. (9) a pta for a single chain for each c.c., comprised of outer and hole borders, plus cut paths between them, all in global coords.
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Constructor and Description |
---|
CCBORD()
Default native constructor.
|
CCBORD(long size)
Native array allocator.
|
CCBORD(Pointer p)
Pointer cast constructor.
|
Modifier and Type | Method and Description |
---|---|
BOXA |
boxa()
regions of each closed curve
|
CCBORD |
boxa(BOXA setter) |
CCBORD |
getPointer(long i) |
PTAA |
global()
ptaa of chain pixels (global)
|
CCBORD |
global(PTAA setter) |
PTAA |
local()
ptaa of chain pixels (local)
|
CCBORD |
local(PTAA setter) |
PIX |
pix()
component bitmap (min size)
|
CCBORD |
pix(PIX setter) |
CCBORD |
position(long position) |
int |
refcount()
number of handles; start at 1
|
CCBORD |
refcount(int setter) |
PTA |
spglobal()
pta of single chain (global)
|
CCBORD |
spglobal(PTA setter) |
PTA |
splocal()
pta of single chain (local)
|
CCBORD |
splocal(PTA setter) |
PTA |
start()
initial border pixel locations
|
CCBORD |
start(PTA setter) |
NUMAA |
step()
numaa of chain code (step dir)
|
CCBORD |
step(NUMAA 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 CCBORD()
public CCBORD(long size)
Pointer.position(long)
.public CCBORD(Pointer p)
Pointer(Pointer)
.public CCBORD getPointer(long i)
getPointer
in class Pointer
public PIX pix()
public BOXA boxa()
public PTA start()
public CCBORD refcount(int setter)
public PTAA local()
public PTAA global()
public NUMAA step()
public PTA splocal()
public PTA spglobal()
Copyright © 2022. All rights reserved.