20#ifndef CR2RES_SLIT_CURV_H
21#define CR2RES_SLIT_CURV_H
29#include "cr2res_utils.h"
36 const hdrl_image * img,
37 const cpl_table * trace_wave,
42 const cpl_size degree,
43 const int fit_second_order,
44 cpl_polynomial ** slit_poly_a,
45 cpl_polynomial ** slit_poly_b,
46 cpl_polynomial ** slit_poly_c) ;
49 const cpl_table * trace_wave,
56 cpl_polynomial * slit_poly_a,
57 cpl_polynomial * slit_poly_b,
58 cpl_polynomial * slit_poly_c,
int cr2res_slit_curv_compute_order_trace(const hdrl_image *img, const cpl_table *trace_wave, const int order, const int trace, const int height, const int window, const cpl_size degree, const int fit_second_order, cpl_polynomial **slit_poly_a, cpl_polynomial **slit_poly_b, cpl_polynomial **slit_poly_c)
Get the slit curvature directly from the image.
hdrl_image * cr2res_slit_curv_gen_map(const cpl_table *trace_wave, int order, int trace_id, int spacing_pixels, int full_trace)
Compute the slit_curv map from the trace_wave table.
cpl_polynomial * cr2res_slit_curv_build_poly(cpl_polynomial *slit_poly_a, cpl_polynomial *slit_poly_b, cpl_polynomial *slit_poly_c, cpl_size x)
Create the slit curvature polynomial for x position.