|
CR2RE Pipeline Reference Manual 1.6.7
|
Functions | |
| cpl_mask * | cr2res_bpm_compute (cpl_image *in, cr2res_bpm_method method, double kappa, double lines_ratio, int clean_flag) |
| The BPM computation with min/max threshold. | |
| int | cr2res_bpm_count (cpl_image *bpm, cr2res_bpm_type type) |
| Count BPM of a given type. | |
| cpl_image * | cr2res_bpm_from_mask (cpl_mask *mask, cr2res_bpm_type type) |
| Create a BPM from a mask. | |
| int | cr2res_bpm_set_and_correct_image (cpl_image *in, const char *bpm, int chip, int correct) |
| Set the BPM and optionally apply the correction to an image. | |
| cpl_mask * | cr2res_bpm_extract_mask (const cpl_image *bpm_ima, cr2res_bpm_type bpm_type) |
| Extract a mask from a BPM image. | |
| int | cr2res_bpm_add_mask (cpl_image *bpm_ima, cpl_mask *bpm, int bpm_code) |
| Add a mask to a BPM image with a dedicated code | |
| int cr2res_bpm_add_mask | ( | cpl_image * | bpm_ima, |
| cpl_mask * | bpm, | ||
| int | bpm_code | ||
| ) |
Add a mask to a BPM image with a dedicated code
| bpm_ima | The input BPM image |
| bpm | The mask to add |
| bpm_code | CR2RES_BPM_DARK, CR2RES_BPM_FLAT,... |
Definition at line 287 of file cr2res_bpm.c.
| cpl_mask * cr2res_bpm_compute | ( | cpl_image * | in, |
| cr2res_bpm_method | method, | ||
| double | kappa, | ||
| double | lines_ratio, | ||
| int | clean_flag | ||
| ) |
The BPM computation with min/max threshold.
| in | The input image |
| method | CR2RES_BPM_GLOBAL_STATS CR2RES_BPM_LOCAL_STATS CR2RES_BPM_RUNNING_FILTER |
| kappa | The kappa value |
| clean_flag | Clean the image using the computed BPM |
| lines_ratio | The maximum ratio of bad pixels per line |
Definition at line 78 of file cr2res_bpm.c.
| int cr2res_bpm_count | ( | cpl_image * | bpm, |
| cr2res_bpm_type | type | ||
| ) |
Count BPM of a given type.
| bpm | the BPM |
| type | the bad pixel type |
Definition at line 148 of file cr2res_bpm.c.
| cpl_mask * cr2res_bpm_extract_mask | ( | const cpl_image * | bpm_ima, |
| cr2res_bpm_type | bpm_type | ||
| ) |
Extract a mask from a BPM image.
| bpm_ima | BPM image to extract from |
| bpm_type | Can use a bitwise combination |
Definition at line 247 of file cr2res_bpm.c.
| cpl_image * cr2res_bpm_from_mask | ( | cpl_mask * | mask, |
| cr2res_bpm_type | type | ||
| ) |
Create a BPM from a mask.
| mask | the input mask |
| type | the bad pixel type |
Definition at line 175 of file cr2res_bpm.c.
| int cr2res_bpm_set_and_correct_image | ( | cpl_image * | in, |
| const char * | bpm, | ||
| int | chip, | ||
| int | correct | ||
| ) |
Set the BPM and optionally apply the correction to an image.
| in | the input image |
| bpm | the BPM |
| chip | the chip number (1 to CR2RES_NB_DETECTORS) |
| correction | flag to apply the correction |
Definition at line 199 of file cr2res_bpm.c.
References cr2res_io_load_BPM().
Referenced by cr2res_calib_image().