Leptonica  1.83.1
Image processing and image analysis suite
ccbord_internal.h File Reference

Go to the source code of this file.

Data Structures

struct  CCBord
 
struct  CCBorda
 

Detailed Description


   This file is internal; it is not part of the public interface.
   It contains definitions of data structures that use border pixels
   of connected components to represent the foreground pixels
   in an image by the border

       CCBord:   represents a single connected component
       CCBorda:  an array of CCBord

   The 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 in file ccbord_internal.h.