Centroids API¶
Python API¶
Initialization Functions¶
-
template<typename
DT
, typenameOT
>
voidcentroids_initialize_params
(centroid_params<DT, OT> *params)¶ Initialize the paramaters structure.
- Template Parameters
DT
: Type for input data to centroids param params Parameter structre
-
template<typename
DT
, typenameOT
>
intcentroids_calculate_params
(centroid_params<DT, OT> *params)¶ Calculate values from initial input to parameters structure.
Returns 0 if compute was correct, non-zero if an error occured
- Template Parameters
DT
: Type for input data to centroids param params Parameters structure
Data Processing Functions¶
-
template<typename
DT
, typenameOT
>
size_tcentroids_process
(DT *image, uint16_t *out, uint16_t *filter, PhotonTable<OT> *photon_table, std::vector<DT> *photons, const centroid_params<DT, OT> ¶ms)¶ Loop over CCD images to find photons.
- Return
number of found photons
- Template Parameters
DT
:
- Parameters
image
: Pointer to image dataout
: Pointer to store imagetable
:X
:Y
:params
: