Centroids API

Python API

Initialization Functions

template<typename DT, typename OT>
void centroids_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, typename OT>
int centroids_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, typename OT>
size_t centroids_process(DT *image, uint16_t *out, uint16_t *filter, PhotonTable<OT> *photon_table, std::vector<DT> *photons, const centroid_params<DT, OT> &params)

Loop over CCD images to find photons.

Return

number of found photons

Template Parameters
  • DT:

Parameters
  • image: Pointer to image data

  • out: Pointer to store image

  • table:

  • X:

  • Y:

  • params: