37 RegionBox(
const QList<int> &pixel_x,
const QList<int> &pixel_y);
41 void update(
const QList<int> & pixelX,
const QList<int> & pixelY );
42 bool isInBox(
double valueX,
double valueY )
const;
53 void initBox(
const QList<int> & pixelX,
const QList<int>& pixelY );
QString toString(const casacore::Vector< int > &imageBLC, const casacore::Vector< int > &imageTRC) const
QVector< int > getActualTRC(const casacore::Vector< int > &imageBLC, const casacore::Vector< int > &imageTRC, bool *valid) const
QList< int > regionBoxTRC
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.
void initBox(const QList< int > &pixelX, const QList< int > &pixelY)
void update(const QList< int > &pixelX, const QList< int > &pixelY)
QString toStringLabelled(const casacore::Vector< int > &imageBLC, const casacore::Vector< int > &imageTRC) const
QList< int > regionBoxBLC
bool isInBox(double valueX, double valueY) const
RegionBox(const QList< int > &pixel_x, const QList< int > &pixel_y)
bool isInImage(const QVector< int > &coords, const casacore::Vector< int > &imageBLC, const casacore::Vector< int > &imageTRC) const