casa
5.7.0-16
|
#include <RegionBox.h>
Public Member Functions | |
RegionBox (const QList< int > &pixel_x, const QList< int > &pixel_y) | |
QString | toString (const casacore::Vector< int > &imageBLC, const casacore::Vector< int > &imageTRC) const |
QString | toStringLabelled (const casacore::Vector< int > &imageBLC, const casacore::Vector< int > &imageTRC) const |
void | update (const QList< int > &pixelX, const QList< int > &pixelY) |
bool | isInBox (double valueX, double valueY) const |
virtual | ~RegionBox () |
Private Member Functions | |
void | clear () |
QVector< int > | getActualBLC (const casacore::Vector< int > &imageBLC, const casacore::Vector< int > &imageTRC, bool *valid) const |
Code was crashing when the region box bounds were bigger than the image bounds. More... | |
QVector< int > | getActualTRC (const casacore::Vector< int > &imageBLC, const casacore::Vector< int > &imageTRC, bool *valid) const |
bool | isInImage (const QVector< int > &coords, const casacore::Vector< int > &imageBLC, const casacore::Vector< int > &imageTRC) const |
void | initBox (const QList< int > &pixelX, const QList< int > &pixelY) |
Private Attributes | |
QList< int > | regionBoxBLC |
QList< int > | regionBoxTRC |
Definition at line 35 of file RegionBox.h.
casa::RegionBox::RegionBox | ( | const QList< int > & | pixel_x, |
const QList< int > & | pixel_y | ||
) |
|
virtual |
|
private |
|
private |
Code was crashing when the region box bounds were bigger than the image bounds.
The actualBLC/TRC methods choose smaller region boxes in such cases.
|
private |
|
private |
bool casa::RegionBox::isInBox | ( | double | valueX, |
double | valueY | ||
) | const |
|
private |
QString casa::RegionBox::toString | ( | const casacore::Vector< int > & | imageBLC, |
const casacore::Vector< int > & | imageTRC | ||
) | const |
QString casa::RegionBox::toStringLabelled | ( | const casacore::Vector< int > & | imageBLC, |
const casacore::Vector< int > & | imageTRC | ||
) | const |
void casa::RegionBox::update | ( | const QList< int > & | pixelX, |
const QList< int > & | pixelY | ||
) |
|
private |
Definition at line 54 of file RegionBox.h.
|
private |
Definition at line 55 of file RegionBox.h.