LSST Applications g0b6bd0c080+a72a5dd7e6,g1182afd7b4+2a019aa3bb,g17e5ecfddb+2b8207f7de,g1d67935e3f+06cf436103,g38293774b4+ac198e9f13,g396055baef+6a2097e274,g3b44f30a73+6611e0205b,g480783c3b1+98f8679e14,g48ccf36440+89c08d0516,g4b93dc025c+98f8679e14,g5c4744a4d9+a302e8c7f0,g613e996a0d+e1c447f2e0,g6c8d09e9e7+25247a063c,g7271f0639c+98f8679e14,g7a9cd813b8+124095ede6,g9d27549199+a302e8c7f0,ga1cf026fa3+ac198e9f13,ga32aa97882+7403ac30ac,ga786bb30fb+7a139211af,gaa63f70f4e+9994eb9896,gabf319e997+ade567573c,gba47b54d5d+94dc90c3ea,gbec6a3398f+06cf436103,gc6308e37c7+07dd123edb,gc655b1545f+ade567573c,gcc9029db3c+ab229f5caf,gd01420fc67+06cf436103,gd877ba84e5+06cf436103,gdb4cecd868+6f279b5b48,ge2d134c3d5+cc4dbb2e3f,ge448b5faa6+86d1ceac1d,gecc7e12556+98f8679e14,gf3ee170dca+25247a063c,gf4ac96e456+ade567573c,gf9f5ea5b4d+ac198e9f13,gff490e6085+8c2580be5c,w.2022.27
LSST Data Management Base Package
|
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 (double marginSize) |
shrinks the frame (if marginSize>0), enlarges it (if marginSize<0). More... | |
void | cutMargin (double marginX, 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 (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 |
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 | ( | 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 | ( | double | marginX, |
double | marginY | ||
) |
double lsst::jointcal::Frame::getArea | ( | ) | const |
|
inline |
|
inline |
|
inline |
|
inline |
bool lsst::jointcal::Frame::inFrame | ( | double | x, |
double | y | ||
) | const |
double lsst::jointcal::Frame::minDistToEdges | ( | const Point & | point | ) | const |
|
inline |
union of Frames
bool lsst::jointcal::Frame::operator== | ( | const Frame & | right | ) | const |
void lsst::jointcal::Frame::print | ( | std::ostream & | out | ) | const |
Frame lsst::jointcal::Frame::rescale | ( | double | factor | ) | const |
rescale it. The center does not move.
|
friend |
double lsst::jointcal::Frame::xMin {} |