|
| Frame () |
| Default constructor.
|
|
| Frame (double xMin, double yMin, double xMax, double yMax) |
| this one is dangerous: you may swap the 2 middle arguments.
|
|
| Frame (const Point &lowerLeft, const Point &upperRight) |
| typical use: Frame(Point(xmin,ymin),Point(xmax,ymax))
|
|
double | getWidth () const |
| size along x axis
|
|
double | getHeight () const |
| size along y axis
|
|
Point | getCenter () const |
| Center of the frame.
|
|
Frame | operator* (const Frame &right) const |
| intersection of Frame's.
|
|
Frame & | operator*= (const Frame &right) |
| intersection of Frame's
|
|
Frame | operator+ (const Frame &right) const |
| union of Frames
|
|
Frame & | operator+= (const Frame &right) |
| union of Frames
|
|
void | cutMargin (double marginSize) |
| shrinks the frame (if marginSize>0), enlarges it (if marginSize<0).
|
|
void | cutMargin (double marginX, double marginY) |
| shrinks the frame (if marginSize>0), enlarges it (if marginSize<0).
|
|
bool | operator== (const Frame &right) const |
| necessary for comparisons (!= is defined from this one implicitely)
|
|
bool | operator!= (const Frame &right) const |
| comparison
|
|
Frame | rescale (double factor) const |
| rescale it. The center does not move.
|
|
double | getArea () const |
|
bool | inFrame (double x, double y) const |
| inside?
|
|
bool | inFrame (const Point &point) const |
| same as above
|
|
double | minDistToEdges (const Point &point) const |
| distance to closest boundary.
|
|
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.