|
| Frame () |
| Default constructor. More...
|
|
| Frame (double xMin, double yMin, double xMax, double yMax) |
| this one is dangerous: you may swap the 2 middle arguments. More...
|
|
| Frame (const Point &lowerLeft, const Point &upperRight) |
| typical use: Frame(Point(xmin,ymin),Point(xmax,ymax)) More...
|
|
double | getWidth () const |
| size along x axis More...
|
|
double | getHeight () const |
| size along y axis More...
|
|
Point | getCenter () const |
| Center of the frame. More...
|
|
Frame | operator* (const Frame &right) const |
| intersection of Frame's. More...
|
|
Frame & | operator*= (const Frame &right) |
| intersection of Frame's More...
|
|
Frame | operator+ (const Frame &right) const |
| union of Frames More...
|
|
Frame & | operator+= (const Frame &right) |
| union of Frames More...
|
|
void | cutMargin (const double marginSize) |
| shrinks the frame (if marginSize>0), enlarges it (if marginSize<0). More...
|
|
void | cutMargin (const double marginX, const double marginY) |
| shrinks the frame (if marginSize>0), enlarges it (if marginSize<0). More...
|
|
bool | operator== (const Frame &right) const |
| necessary for comparisons (!= is defined from this one implicitely) More...
|
|
bool | operator!= (const Frame &right) const |
| comparison More...
|
|
Frame | rescale (const double factor) const |
| rescale it. The center does not move. More...
|
|
double | getArea () const |
|
bool | inFrame (double x, double y) const |
| inside? More...
|
|
bool | inFrame (const Point &point) const |
| same as above More...
|
|
double | minDistToEdges (const Point &point) const |
| distance to closest boundary. More...
|
|
void | print (std::ostream &out) const |
|
rectangle with sides parallel to axes.
when Frame's are used to define subparts of images, xMin and xMax refer to the first and last pixels in the subimage
Definition at line 38 of file Frame.h.