mxlib
c++ tools for analyzing astronomical data and other tasks by Jared R. Males. [git repo]
HCIobservation.cpp
Go to the documentation of this file.
1 /** \file HCIobservation.cpp
2  * \author Jared R. Males
3  * \brief Instantiation of the basic high contrast imaging data type.
4  * \ingroup hc_imaging_files
5  * \ingroup image_processing_files
6  *
7  */
8 
10 
11 namespace mx
12 {
13 
14 namespace improc
15 {
16 
17 namespace HCI
18 {
19  std::string combineMethodStr( int method )
20  {
21  if(method == noCombine) return "noCombine";
22  else if (method == medianCombine) return "medianCombine";
23  else if (method == meanCombine) return "meanCombine";
24  else if (method == sigmaMeanCombine) return "sigmaMeanCombine";
25  else return "UNKNOWN";
26  }
27 
28  int combineMethodFmStr( const std::string & method )
29  {
30  if(method == "noCombine") return noCombine;
31  else if (method == "medianCombine") return medianCombine;
32  else if (method == "meanCombine") return meanCombine;
33  else if (method == "sigmaMeanCombine") return sigmaMeanCombine;
34  else return -1;
35  }
36 }
37 
38 template class HCIobservation<float>;
39 template class HCIobservation<double>;
40 
41 } //namespace improc
42 } //namespace mx
43 
Defines the basic high contrast imaging data type.
@ sigmaMeanCombine
Combine with the sigma clipped mean.
@ noCombine
Do not combine the images.
@ meanCombine
Combine with the mean.
@ medianCombine
Combine with the median.
int combineMethodFmStr(const std::string &method)
Get the combineMethod from the corresponding string name.
std::string combineMethodStr(int method)
Get the string name of the combineMethod integer.
The mxlib c++ namespace.
Definition: mxError.hpp:107