27#ifndef ERIS_NIX_WAVECAL_UTILS_H
28#define ERIS_NIX_WAVECAL_UTILS_H
38#include "eris_nix_defs.h"
49 cpl_image * response_1d);
52 const double guess_pos,
53 const cpl_size half_width);
56 const cpl_size slice_index,
57 const cpl_vector * guess_pos);
60 const hdrl_image * image,
61 const cpl_image * confidence,
62 const cpl_size ntraces,
63 const cpl_polynomial * traces[ntraces],
64 const cpl_size nspectra,
65 const cpl_vector * spectra[nspectra],
66 const cpl_size nlines,
67 const cpl_polynomial * lines[nlines],
68 cpl_frameset * frameset,
69 const cpl_parameterlist * parlist,
70 const char * filename,
71 const char * recipe_name);
cpl_error_code enlu_divide_slit_response_worker(hdrl_image *himage_2d, cpl_image *response_1d)
Worker function to divide a 2d image by a 1d response.
cpl_error_code enlu_divide_slit_response(located_imagelist *jitters)
Divide LSS 2d-spectra by the slit response.
double enlu_linepos_1d(const cpl_vector *spectrum1d, const double guess_pos, const cpl_size half_width)
Fit line peak.
cpl_table * enlu_warp_poly_save_to_table(const cpl_polynomial *polynomial)
Save an LSS polynomial to a cpl_table.
cpl_matrix * enlu_linepos_2d(const hdrl_image *spectrum2d, const cpl_size slice_index, const cpl_vector *guess_pos)
Fit the line peaks of a wave calibration spectrum.
cpl_polynomial * enlu_warp_poly_load_from_table(const cpl_table *poly_table)
Load a LSS warp polynomial from a cpl_table.
cpl_error_code enlu_trace_save(const char *pro_catg, const hdrl_image *image, const cpl_image *confidence, const cpl_size ntraces, const cpl_polynomial *traces[ntraces], const cpl_size nspectra, const cpl_vector *spectra[nspectra], const cpl_size nlines, const cpl_polynomial *lines[nlines], cpl_frameset *frameset, const cpl_parameterlist *parlist, const char *filename, const char *recipe_name)
Save a trace result.