![]() |
Leptonica
1.82.0
Image processing and image analysis suite
|
#include <ccbord.h>
Data Fields | |
struct Pix * | pix |
struct Boxa * | boxa |
struct Pta * | start |
l_int32 | refcount |
struct Ptaa * | local |
struct Ptaa * | global |
struct Numaa * | step |
struct Pta * | splocal |
struct Pta * | spglobal |
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.
struct Boxa* CCBord::boxa |
regions of each closed curve
Definition at line 96 of file ccbord.h.
Referenced by ccbaDisplayImage1(), ccbaDisplayImage2(), ccbaGenerateGlobalLocs(), ccbaGenerateSPGlobalLocs(), ccbaReadStream(), ccbDestroy(), pixGetHoleBorder(), and pixGetOuterBorder().
struct Ptaa* CCBord::global |
ptaa of chain pixels (global)
Definition at line 100 of file ccbord.h.
Referenced by ccbaDisplayBorder(), ccbaGenerateGlobalLocs(), and ccbDestroy().
struct Ptaa* CCBord::local |
ptaa of chain pixels (local)
Definition at line 99 of file ccbord.h.
Referenced by ccbaDisplayImage1(), ccbaDisplayImage2(), ccbaGenerateGlobalLocs(), ccbaGenerateSinglePath(), ccbaGenerateStepChains(), ccbDestroy(), pixGetHoleBorder(), and pixGetOuterBorder().
struct Pix* CCBord::pix |
l_int32 CCBord::refcount |
number of handles; start at 1
Definition at line 98 of file ccbord.h.
Referenced by ccbaGetCcb(), and ccbDestroy().
struct Pta* CCBord::spglobal |
pta of single chain (global)
Definition at line 103 of file ccbord.h.
Referenced by ccbaDisplaySPBorder(), ccbaGenerateSPGlobalLocs(), ccbaWriteSVGString(), and ccbDestroy().
struct Pta* CCBord::splocal |
pta of single chain (local)
Definition at line 102 of file ccbord.h.
Referenced by ccbaGenerateSinglePath(), ccbaGenerateSPGlobalLocs(), and ccbDestroy().
struct Pta* CCBord::start |
initial border pixel locations
Definition at line 97 of file ccbord.h.
Referenced by ccbaReadStream(), ccbDestroy(), pixGetHoleBorder(), and pixGetOuterBorder().
struct Numaa* CCBord::step |
numaa of chain code (step dir)
Definition at line 101 of file ccbord.h.
Referenced by ccbaGenerateStepChains(), ccbaReadStream(), and ccbDestroy().