ifw-ccf 5.0.2
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
15
17
20 public:
21
22 const std::string SETUP_KEY_MAX_CENTRE_ERROR = "max_centre_error";
23 const std::string SETUP_KEY_MAX_SIGMA_ERROR = "max_sigma_error";
24 const std::string SETUP_KEY_ROBUSTNESS = "robustness";
25
26
27 RecipeCentroid(const std::string& proc_thread_name,
28 const std::string& recipe_name);
30 virtual ~RecipeCentroid();
31
32 virtual void InitialiseUser();
33
34 virtual void EnableUser();
35
36 virtual void DisableUser();
37
38 virtual void ProcessUser(ifw::ccf::common::DataFrame& frame);
39
40 virtual void CreateObjectUser(const std::string& proc_thread_name,
41 const std::string& recipe_name,
42 std::shared_ptr<RecipeBase>& new_object);
43
44 protected:
47 cpl_size m_window[4];
48 double m_centre[2];
49 double m_sigma[2];
50 double m_centre_error[2];
51 double m_sigma_error[2];
52 cpl_error_code m_cpl_error;
53
54 private:
55 double m_max_centre_error;
56 double m_max_sigma_error;
57 int m_robustness;
58 };
59
60}
61
62#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:18
Processing Recipe base class. All recipes shall be derived from this class.
Definition recipeBase.hpp:47
Standard Centroiding Processing Recipe.
Definition recipeCentroid.hpp:19
virtual void CreateObjectUser(const std::string &proc_thread_name, const std::string &recipe_name, std::shared_ptr< RecipeBase > &new_object)
Definition recipeCentroid.cpp:132
cpl_error_code m_cpl_error
Definition recipeCentroid.hpp:52
bool m_centroid_error
Definition recipeCentroid.hpp:45
virtual ~RecipeCentroid()
Definition recipeCentroid.cpp:31
cpl_size m_window[4]
Definition recipeCentroid.hpp:47
double m_sigma[2]
Definition recipeCentroid.hpp:49
double m_centre_error[2]
Definition recipeCentroid.hpp:50
double m_centre_intensity
Definition recipeCentroid.hpp:46
double m_sigma_error[2]
Definition recipeCentroid.hpp:51
virtual void DisableUser()
Definition recipeCentroid.cpp:55
virtual void InitialiseUser()
Initialise the recipe object. See "Initialise()".
Definition recipeCentroid.cpp:35
const std::string SETUP_KEY_MAX_CENTRE_ERROR
Definition recipeCentroid.hpp:22
const std::string SETUP_KEY_MAX_SIGMA_ERROR
Definition recipeCentroid.hpp:23
virtual void ProcessUser(ifw::ccf::common::DataFrame &frame)
User specific processing.
Definition recipeCentroid.cpp:59
virtual void EnableUser()
Definition recipeCentroid.cpp:51
RecipeCentroid()
Definition recipeCentroid.cpp:26
const std::string SETUP_KEY_ROBUSTNESS
Definition recipeCentroid.hpp:24
double m_centre[2]
Definition recipeCentroid.hpp:48
Definition recipeCentroid.hpp:16