Class Math#

Class Documentation#

class Math#

Static math utilities for slicecam fine acquisition.

Public Static Functions

static long calculate_centroid(const std::vector<float> &image, long cols, long rows, Rect background, Point aimpoint, Point &centroid, double &peak_raw, double &top10_mean, double &peak_snr)#

compute the centroid of the brightest source near an aim point

static void pix2world(const Common::FitsKeys &keys, Point pix, World &world)#

convert pixel coordinates to sky coordinates using WCS keys

static void calculate_acquisition_offsets(World star, World goal, std::pair<double, double> &offsets)#

compute the (dRA, dDEC) offset from a goal position to a star