Leptonica  1.82.0
Image processing and image analysis suite
CCBord Struct Reference

#include <ccbord.h>

Data Fields

struct Pixpix
 
struct Boxaboxa
 
struct Ptastart
 
l_int32 refcount
 
struct Ptaalocal
 
struct Ptaaglobal
 
struct Numaastep
 
struct Ptasplocal
 
struct Ptaspglobal
 

Detailed Description

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.

Definition at line 93 of file ccbord.h.

Field Documentation

◆ boxa

struct Boxa* CCBord::boxa

◆ global

struct Ptaa* CCBord::global

ptaa of chain pixels (global)

Definition at line 100 of file ccbord.h.

Referenced by ccbaDisplayBorder(), ccbaGenerateGlobalLocs(), and ccbDestroy().

◆ local

struct Ptaa* CCBord::local

◆ pix

struct Pix* CCBord::pix

component bitmap (min size)

Definition at line 95 of file ccbord.h.

Referenced by ccbDestroy().

◆ refcount

l_int32 CCBord::refcount

number of handles; start at 1

Definition at line 98 of file ccbord.h.

Referenced by ccbaGetCcb(), and ccbDestroy().

◆ spglobal

struct Pta* CCBord::spglobal

pta of single chain (global)

Definition at line 103 of file ccbord.h.

Referenced by ccbaDisplaySPBorder(), ccbaGenerateSPGlobalLocs(), ccbaWriteSVGString(), and ccbDestroy().

◆ splocal

struct Pta* CCBord::splocal

pta of single chain (local)

Definition at line 102 of file ccbord.h.

Referenced by ccbaGenerateSinglePath(), ccbaGenerateSPGlobalLocs(), and ccbDestroy().

◆ start

struct Pta* CCBord::start

initial border pixel locations

Definition at line 97 of file ccbord.h.

Referenced by ccbaReadStream(), ccbDestroy(), pixGetHoleBorder(), and pixGetOuterBorder().

◆ step

struct Numaa* CCBord::step

numaa of chain code (step dir)

Definition at line 101 of file ccbord.h.

Referenced by ccbaGenerateStepChains(), ccbaReadStream(), and ccbDestroy().


The documentation for this struct was generated from the following file: