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