casa
$Rev:20696$
|
This class provides a priori image information derived from the image itself. More...
#include <ImageProperties.h>
Public Member Functions | |
ImageProperties () | |
ImageProperties (const std::string &) | |
ImageProperties (ImageInterface< Float > *) | |
ImageProperties (ImageInterface< std::complex< float > > *) | |
const ImageProperties & | operator= (const std::string &) |
bool | hasDirectionAxis () const |
const std::string & | directionType () const |
bool | hasSpectralAxis () const |
const Vector< Int > & | shape () const |
Vector< double > | raRange () const |
std::vector< std::string > | raRangeAsStr () const |
Vector< double > | decRange () const |
std::vector< std::string > | decRangeAsStr () const |
size_t | nBeams () const |
std::vector< std::vector < double > > | restoringBeams () const |
std::vector< double > | restoringBeam (size_t channel) const |
std::vector< std::string > | restoringBeamAsStr (size_t channel) const |
std::vector< double > | medianRestoringBeam () const |
std::vector< std::string > | medianRestoringBeamAsStr () const |
Vector< double > | freqRange (const std::string &units="") const |
const std::string & | freqUnits () const |
Vector< double > | veloRange (const std::string &units="") const |
const std::string & | veloUnits () const |
const std::string & | path () const |
bool | ok () const |
int | spectralAxisNumber () const |
export required CoordinateSystem functions instead of returning a CoordinateSystem reference... | |
Private Member Functions | |
std::vector< double > | beam_as_vector (const GaussianBeam &beam) const |
std::vector< std::string > | beam_as_string_vector (const GaussianBeam &beam) const |
void | clear_state () |
void | initialize_state (ImageInterface< Float > *image) |
void | reset (ImageInterface< Float > *image) |
void | reset (const std::string &path="") |
Private Attributes | |
bool | status_ok |
std::string | path_ |
Vector< Int > | shape_ |
bool | has_direction_axis |
std::string | direction_type |
bool | has_spectral_axis |
Vector< double > | freq_range |
std::string | freq_units |
Vector< double > | velo_range |
std::string | velo_units |
Vector< double > | ra_range |
std::vector< std::string > | ra_range_str |
Vector< double > | dec_range |
std::vector< std::string > | dec_range_str |
std::vector< GaussianBeam > | restoring_beams |
CoordinateSystem | cs_ |
This class provides a priori image information derived from the image itself.
It was created to standardize the access to image properties, since this information is needed in a variety of places and is currently found in a variety of manners. The idea was that it would provide easy, standardized (e.g. velocity provided in km/s) access. There are still likely issues to iron out with expericence from new images.
It may be desirable to have 2nd order image information, e.g. which axes map to the x, y and z viewer display axes (or perhaps not), but if so, this information should be provided by a derived class.
Definition at line 49 of file ImageProperties.h.
casa::viewer::ImageProperties::ImageProperties | ( | const std::string & | ) |
casa::viewer::ImageProperties::ImageProperties | ( | ImageInterface< std::complex< float > > * | ) |
std::vector<std::string> casa::viewer::ImageProperties::beam_as_string_vector | ( | const GaussianBeam & | beam | ) | const [private] |
Referenced by restoringBeamAsStr().
std::vector<double> casa::viewer::ImageProperties::beam_as_vector | ( | const GaussianBeam & | beam | ) | const [private] |
Referenced by restoringBeam().
void casa::viewer::ImageProperties::clear_state | ( | ) | [private] |
Vector<double> casa::viewer::ImageProperties::decRange | ( | ) | const [inline] |
Definition at line 64 of file ImageProperties.h.
References dec_range.
std::vector<std::string> casa::viewer::ImageProperties::decRangeAsStr | ( | ) | const [inline] |
Definition at line 65 of file ImageProperties.h.
References dec_range_str.
const std::string& casa::viewer::ImageProperties::directionType | ( | ) | const [inline] |
Definition at line 59 of file ImageProperties.h.
References direction_type.
Vector<double> casa::viewer::ImageProperties::freqRange | ( | const std::string & | units = "" | ) | const |
const std::string& casa::viewer::ImageProperties::freqUnits | ( | ) | const [inline] |
Definition at line 75 of file ImageProperties.h.
References freq_units.
bool casa::viewer::ImageProperties::hasDirectionAxis | ( | ) | const [inline] |
Definition at line 58 of file ImageProperties.h.
References has_direction_axis.
bool casa::viewer::ImageProperties::hasSpectralAxis | ( | ) | const [inline] |
Definition at line 60 of file ImageProperties.h.
References has_spectral_axis.
void casa::viewer::ImageProperties::initialize_state | ( | ImageInterface< Float > * | image | ) | [private] |
std::vector<double> casa::viewer::ImageProperties::medianRestoringBeam | ( | ) | const |
std::vector<std::string> casa::viewer::ImageProperties::medianRestoringBeamAsStr | ( | ) | const |
size_t casa::viewer::ImageProperties::nBeams | ( | ) | const [inline] |
Definition at line 66 of file ImageProperties.h.
References restoring_beams.
bool casa::viewer::ImageProperties::ok | ( | ) | const [inline] |
Definition at line 79 of file ImageProperties.h.
References status_ok.
const ImageProperties& casa::viewer::ImageProperties::operator= | ( | const std::string & | ) |
const std::string& casa::viewer::ImageProperties::path | ( | ) | const [inline] |
Definition at line 78 of file ImageProperties.h.
References path_.
Vector<double> casa::viewer::ImageProperties::raRange | ( | ) | const [inline] |
Definition at line 62 of file ImageProperties.h.
References ra_range.
std::vector<std::string> casa::viewer::ImageProperties::raRangeAsStr | ( | ) | const [inline] |
Definition at line 63 of file ImageProperties.h.
References ra_range_str.
void casa::viewer::ImageProperties::reset | ( | ImageInterface< Float > * | image | ) | [private] |
void casa::viewer::ImageProperties::reset | ( | const std::string & | path = "" | ) | [private] |
std::vector<double> casa::viewer::ImageProperties::restoringBeam | ( | size_t | channel | ) | const [inline] |
Definition at line 68 of file ImageProperties.h.
References beam_as_vector(), and restoring_beams.
std::vector<std::string> casa::viewer::ImageProperties::restoringBeamAsStr | ( | size_t | channel | ) | const [inline] |
Definition at line 70 of file ImageProperties.h.
References beam_as_string_vector(), and restoring_beams.
std::vector<std::vector<double> > casa::viewer::ImageProperties::restoringBeams | ( | ) | const |
const Vector<Int>& casa::viewer::ImageProperties::shape | ( | ) | const [inline] |
Definition at line 61 of file ImageProperties.h.
References shape_.
int casa::viewer::ImageProperties::spectralAxisNumber | ( | ) | const [inline] |
export required CoordinateSystem functions instead of returning a CoordinateSystem reference...
Definition at line 82 of file ImageProperties.h.
References cs_, and casa::CoordinateSystem::spectralAxisNumber().
Vector<double> casa::viewer::ImageProperties::veloRange | ( | const std::string & | units = "" | ) | const |
const std::string& casa::viewer::ImageProperties::veloUnits | ( | ) | const [inline] |
Definition at line 77 of file ImageProperties.h.
References velo_units.
Definition at line 106 of file ImageProperties.h.
Referenced by spectralAxisNumber().
Vector<double> casa::viewer::ImageProperties::dec_range [private] |
Definition at line 103 of file ImageProperties.h.
Referenced by decRange().
std::vector<std::string> casa::viewer::ImageProperties::dec_range_str [private] |
Definition at line 104 of file ImageProperties.h.
Referenced by decRangeAsStr().
std::string casa::viewer::ImageProperties::direction_type [private] |
Definition at line 95 of file ImageProperties.h.
Referenced by directionType().
Vector<double> casa::viewer::ImageProperties::freq_range [private] |
Definition at line 97 of file ImageProperties.h.
std::string casa::viewer::ImageProperties::freq_units [private] |
Definition at line 98 of file ImageProperties.h.
Referenced by freqUnits().
bool casa::viewer::ImageProperties::has_direction_axis [private] |
Definition at line 94 of file ImageProperties.h.
Referenced by hasDirectionAxis().
bool casa::viewer::ImageProperties::has_spectral_axis [private] |
Definition at line 96 of file ImageProperties.h.
Referenced by hasSpectralAxis().
std::string casa::viewer::ImageProperties::path_ [private] |
Definition at line 92 of file ImageProperties.h.
Referenced by path().
Vector<double> casa::viewer::ImageProperties::ra_range [private] |
Definition at line 101 of file ImageProperties.h.
Referenced by raRange().
std::vector<std::string> casa::viewer::ImageProperties::ra_range_str [private] |
Definition at line 102 of file ImageProperties.h.
Referenced by raRangeAsStr().
std::vector<GaussianBeam> casa::viewer::ImageProperties::restoring_beams [private] |
Definition at line 105 of file ImageProperties.h.
Referenced by nBeams(), restoringBeam(), and restoringBeamAsStr().
Vector<Int> casa::viewer::ImageProperties::shape_ [private] |
Definition at line 93 of file ImageProperties.h.
Referenced by shape().
bool casa::viewer::ImageProperties::status_ok [private] |
Definition at line 91 of file ImageProperties.h.
Referenced by ok().
Vector<double> casa::viewer::ImageProperties::velo_range [private] |
Definition at line 99 of file ImageProperties.h.
std::string casa::viewer::ImageProperties::velo_units [private] |
Definition at line 100 of file ImageProperties.h.
Referenced by veloUnits().