ifw-odp
2.0.0-alpha
|
#include <cpl.h>
Go to the source code of this file.
Functions | |
cpl_table * | clipm_priv_irplib_slitpos_analysis (cpl_image *, cpl_size) |
Detect the slit position, detect its ends, extract a thin image containing only the slit and find its edges. More... | |
cpl_table* clipm_priv_irplib_slitpos_analysis | ( | cpl_image * | inimage, |
cpl_size | slit_max_width | ||
) |
Detect the slit position, detect its ends, extract a thin image containing only the slit and find its edges.
inimage | input image |
slit_max_width | maximum slit width |
This function detects the borders of a vertical slit.
This function is temporarily copied from IRPLIB into CLIPM. It will be removed as soon as it is accepted to be in CPL. Use it at your own risk!
A table is returned which contains 4 columns, indicating the image row indices and the corresponding horizontal edge positions, as following:
SLIT_Y | SLIT_LEFT | SLIT_CENTER | SLIT_RIGHT |
---|---|---|---|
int | double | double | double |
The number of table rows equals the number of pixels that the slit spans vertically.
This function can be used for vertical slits.
This function returns 3 double3 objects:
NB: Coordinates use FITS convention.