ifw-ccf 4.0.0
Loading...
Searching...
No Matches
recipeCentroid.hpp
Go to the documentation of this file.
1
5#ifndef CCF_STDRECIPE_RECIPE_CENTROID_HPP_H_
6#define CCF_STDRECIPE_RECIPE_CENTROID_HPP_H_
7
8#include <fitsio.h>
9#include <CCfits/CCfits.h>
10#include <CCfits/FITS.h>
11#include <CCfits/PHDU.h>
12
14
15namespace ccf::stdrecipe {
16
19 public:
20
21 const std::string SETUP_KEY_MAX_CENTRE_ERROR = "max_centre_error";
22 const std::string SETUP_KEY_MAX_SIGMA_ERROR = "max_sigma_error";
23 const std::string SETUP_KEY_ROBUSTNESS = "robustness";
24
25
26 RecipeCentroid(const std::string& proc_thread_name,
27 const std::string& recipe_name);
29 virtual ~RecipeCentroid();
30
31 virtual void InitialiseUser();
32
33 virtual void EnableUser();
34
35 virtual void DisableUser();
36
37 virtual void ProcessUser(ccf::common::DataFrame& frame);
38
39 virtual void CreateObjectUser(const std::string& proc_thread_name,
40 const std::string& recipe_name,
41 std::shared_ptr<RecipeBase>& new_object);
42
43 protected:
46 cpl_size m_window[4];
47 double m_centre[2];
48 double m_sigma[2];
49 double m_centre_error[2];
50 double m_sigma_error[2];
51 cpl_error_code m_cpl_error;
52
53 private:
54 double m_max_centre_error;
55 double m_max_sigma_error;
56 int m_robustness;
57 };
58
59}
60
61#endif // CCF_STDRECIPE_RECIPE_CENTROID_HPP_H_
Frame class used to store the data and metadata for one frames received from the camera.
Definition: dataFrame.hpp:17
Processing Recipe base class. All recipes shall be derived from this class.
Definition: recipeBase.hpp:47
Standard Centroiding Processing Recipe.
Definition: recipeCentroid.hpp:18
RecipeCentroid()
Definition: recipeCentroid.cpp:26
double m_centre_intensity
Definition: recipeCentroid.hpp:45
double m_sigma_error[2]
Definition: recipeCentroid.hpp:50
const std::string SETUP_KEY_MAX_SIGMA_ERROR
Definition: recipeCentroid.hpp:22
virtual void ProcessUser(ccf::common::DataFrame &frame)
User specific processing.
Definition: recipeCentroid.cpp:59
bool m_centroid_error
Definition: recipeCentroid.hpp:44
const std::string SETUP_KEY_MAX_CENTRE_ERROR
Definition: recipeCentroid.hpp:21
double m_sigma[2]
Definition: recipeCentroid.hpp:48
virtual ~RecipeCentroid()
Definition: recipeCentroid.cpp:31
virtual void InitialiseUser()
Initialise the recipe object. See "Initialise()".
Definition: recipeCentroid.cpp:35
virtual void DisableUser()
Definition: recipeCentroid.cpp:55
double m_centre_error[2]
Definition: recipeCentroid.hpp:49
virtual void EnableUser()
Definition: recipeCentroid.cpp:51
const std::string SETUP_KEY_ROBUSTNESS
Definition: recipeCentroid.hpp:23
cpl_size m_window[4]
Definition: recipeCentroid.hpp:46
virtual void CreateObjectUser(const std::string &proc_thread_name, const std::string &recipe_name, std::shared_ptr< RecipeBase > &new_object)
Definition: recipeCentroid.cpp:125
cpl_error_code m_cpl_error
Definition: recipeCentroid.hpp:51
double m_centre[2]
Definition: recipeCentroid.hpp:47
Definition: recipeCentroid.hpp:15