[ VIGRA Homepage |
Class Index |
Function Index |
File Index |
Main Page ]
|
FindBoundingRectangle Class Reference
|
 |
Calculate the bounding rectangle of an ROI in an image.
More...
#include "vigra/inspectimage.hxx"
Calculate the bounding rectangle of an ROI in an image.
As always in VIGRA, roiRect.lowerRight
is just outside the rectangle. That is, the last pixel actually in the rectangle is roiRect.lowerRight - Diff2D(1,1)
. This Functor is often used in conjunction with ArrayOfRegionStatistics to find the bounding rectangles of all regions in a labeled image.
Usage:
#include "vigra/inspectimage.hxx"
Namespace: vigra
Member Typedef Documentation
|
the functor's argument type |
Constructor & Destructor Documentation
FindBoundingRectangle |
( |
|
) |
[inline] |
|
|
init rectangle to invalid values |
Member Function Documentation
|
Get current rectangle. result_type::first is the upper left corner of the rectangle, result_type::second the lower right. |
void operator() |
( |
FindBoundingRectangle const & |
otherRegion |
) |
[inline] |
|
|
update rectangle by merging it with another rectangle |
|
update rectangle by including the coordinate coord |
|
(re-)init functor to find other bounds |
Member Data Documentation
|
Lower right of the region as seen so far |
|
Upper left of the region as seen so far |
|
are the functors contents valid ? |
The documentation for this class was generated from the following file: