regionMinMax

[ XITE Reference Manual | XITE home ]

Name

regionMinMax, regionXmin, regionYmin, regionXmax, regionYmax - calc xmin, ymin, xmax, ymax of a region(s)

Syntax

 #include <xite/region.h>

 int regionMinMax( region* reg, int loop,
    int* xmin, int* ymin, int* xmax, int* ymax );

 int regionXmin( region* reg, int loop,
    int* xmin );

 int regionYmin( region* reg, int loop,
    int* ymin );

 int regionXmax( region* reg, int loop,
    int* xmax );

 int regionYmax( region* reg, int loop,
    int* ymax );

Description

Calculates the leftmost (xmin), rightmost (xmax), uppermost (ymin) and downmost (ymax) position of one or more regions. If "loop" is false, the region "reg" only is examined. If true, the next pointer in reg is followed until nil, and the extremum of the whole region set is found.

Return value

0 => ok 1 => reg points to nil, output position is set to 0.

See also

regionAnalyse(1), regionArea(3), regionConvexHull(3), regionCreate(3), regionDraw(3), regionFree(3), regionHisto(3), regionHistoUpdate(3), regionImoment(3), regionInsertYline(3), regionDeleteYline(3) regionEndInsert(3), regionXmean(3), regionYmean(3), regionMean(3), regionCMoment(3), regionPMoment(3), regionMoment(3), regionPerform(3), regionPerimeter(3), regionIsPoint(3), regionPoint(3), regionSearch(3), regionSort(3), regionCopy(3), regionUnion(3), regionOverlap(3), regionNeighbor(3), regionVolume(3), regionYline(3)

Author

Tor Lønnestad, BLAB, Ifi, UiO

Id

$Id: regionMinMax.c,v 1.21 1997/01/29 10:45:12 svein Exp $