LSSTApplications
18.0.0+106,18.0.0+50,19.0.0,19.0.0+1,19.0.0+10,19.0.0+11,19.0.0+13,19.0.0+17,19.0.0+2,19.0.0-1-g20d9b18+6,19.0.0-1-g425ff20,19.0.0-1-g5549ca4,19.0.0-1-g580fafe+6,19.0.0-1-g6fe20d0+1,19.0.0-1-g7011481+9,19.0.0-1-g8c57eb9+6,19.0.0-1-gb5175dc+11,19.0.0-1-gdc0e4a7+9,19.0.0-1-ge272bc4+6,19.0.0-1-ge3aa853,19.0.0-10-g448f008b,19.0.0-12-g6990b2c,19.0.0-2-g0d9f9cd+11,19.0.0-2-g3d9e4fb2+11,19.0.0-2-g5037de4,19.0.0-2-gb96a1c4+3,19.0.0-2-gd955cfd+15,19.0.0-3-g2d13df8,19.0.0-3-g6f3c7dc,19.0.0-4-g725f80e+11,19.0.0-4-ga671dab3b+1,19.0.0-4-gad373c5+3,19.0.0-5-ga2acb9c+2,19.0.0-5-gfe96e6c+2,w.2020.01
LSSTDataManagementBasePackage
|
rectangle with sides parallel to axes. More...
#include <Frame.h>
Public Member Functions | |
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 | dump (std::ostream &stream=std::cout) const |
Public Attributes | |
double | xMin |
coordinate of boundary. More... | |
double | xMax |
double | yMin |
double | yMax |
Friends | |
std::ostream & | operator<< (std::ostream &stream, const Frame &right) |
allows More... | |
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
lsst::jointcal::Frame::Frame | ( | double | xMin, |
double | yMin, | ||
double | xMax, | ||
double | yMax | ||
) |
void lsst::jointcal::Frame::cutMargin | ( | const double | marginSize | ) |
shrinks the frame (if marginSize>0), enlarges it (if marginSize<0).
Definition at line 108 of file Frame.cc.
void lsst::jointcal::Frame::cutMargin | ( | const double | marginX, |
const double | marginY | ||
) |
void lsst::jointcal::Frame::dump | ( | std::ostream & | stream = std::cout | ) | const |
double lsst::jointcal::Frame::getArea | ( | ) | const |
|
inline |
|
inline |
|
inline |
bool lsst::jointcal::Frame::inFrame | ( | double | x, |
double | y | ||
) | const |
|
inline |
same as above
Definition at line 96 of file Frame.h.
double lsst::jointcal::Frame::minDistToEdges | ( | const Point & | point | ) | const |
|
inline |
bool lsst::jointcal::Frame::operator== | ( | const Frame & | right | ) | const |
Frame lsst::jointcal::Frame::rescale | ( | const double | factor | ) | const |
|
friend |
allows
std::cout << frame;
.