Changeset 20743 in project


Ignore:
Timestamp:
10/09/10 10:38:01 (11 years ago)
Author:
petercrlane
Message:

Documentation for finding components

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wiki/eggref/4/leptonica

    r20742 r20743  
    160160Returns a pointer to a new {{pix}} created by rescaling given {{pix}} along x and y dimensions.
    161161
     162==== Finding Components in Images
     163
     164In each of the following, the {{connectivity} must be 4 or 8 depending on whether pixels are connected to their 4 neighbours in the up/down/left/right directions or with all 8 of their neighbours.
     165
     166<procedure>(pix-conn-comp-bb pix connectivity)</procedure>
     167Returns an array of bounding boxes corresponding to the components within {{pix}}.  {{pix}} must be a 1 bpp image.
     168
     169<procedure>(pix-count-conn-comp pix connectivity)</procedure>
     170Returns the number of connected components, or {{#f}} if there was an error.  {{pix}} must be a 1 bpp image.
     171
    162172==== Constants
    163173
Note: See TracChangeset for help on using the changeset viewer.