Functions for slit position


Functions

cpl_table * irplib_slitpos_analysis (const cpl_image *imslit, int slit_max_width, double *slit_flux)
 Detect the slit position, detect its ends, extract a thin image containing only the slit and find its edges.

Function Documentation

cpl_table* irplib_slitpos_analysis ( const cpl_image *  imslit,
int  slit_max_width,
double *  slit_flux 
)

Detect the slit position, detect its ends, extract a thin image containing only the slit and find its edges.

Parameters:
imslit Input image with a vertical slit
slit_max_width Maximum slit width
slit_flux Some of the pixels values of the slit
Returns:
the table with the slit position or NULL on error
On success the created table contains rows of four columns labeled: "SLIT_Y" (int) "SLIT_LEFT" (double) "SLIT_CENTER" (double) "SLIT_RIGHT" (double)

This function returns a table with 3 columns:

  • Left or Lower edge of the slit
  • Center of the slit
  • Right or Upper edge of the slit

Additionally, the slit flux is computed. The passed slit_flux pointer parameter can be NULL. In error case, its value is undefined.

NB: Coordinates use FITS convention.

Definition at line 119 of file irplib_slitpos.c.

References irplib_flat_fit_slope_robust().


Generated on Mon Feb 6 15:23:50 2012 for VISIR Pipeline Reference Manual by  doxygen 1.5.8