#include <xsh_data_instrument.h>
#include <xsh_data_pre.h>
#include <string.h>
#include <cpl.h>
Go to the source code of this file.
Defines | |
#define | QFLAG_GOOD_PIXEL 0 |
#define | QFLAG_TELLURIC_CORRECTED 1 |
#define | QFLAG_TELLURIC_UNCORRECTED 0x2 |
#define | QFLAG_GHOST_STRAY_LIGHT 0x4 |
#define | QFLAG_ELECTRONIC_PICKUP 0x8 |
#define | QFLAG_COSMIC_RAY_REMOVED 0x10 |
#define | XSH_GOOD_PIXEL_LEVEL QFLAG_COSMIC_RAY_REMOVED |
#define | XSH_BAD_PIXEL XSH_GOOD_PIXEL_LEVEL+1 |
#define | QFLAG_COSMIC_RAY_UNREMOVED 0x20 |
#define | QFLAG_LOW_QE_PIXEL 0x40 |
#define | QFLAG_CALIB_FILE_DEFECT 0x80 |
#define | QFLAG_HOT_PIXEL 0x100 |
#define | QFLAG_DARK_PIXEL 0x200 |
#define | QFLAG_QUESTIONABLE_PIXEL 0x400 |
#define | QFLAG_WELL_SATURATION 0x800 |
#define | QFLAG_ADC_SATURATION 0x1000 |
#define | QFLAG_CAMERA_DEFECT 0x2000 |
#define | QFLAG_OTHER_BAD_PIXEL 0x4000 |
#define | QFLAG_NON_LINEAR_PIXEL 0x8000 |
#define | QFLAG_NON_SPATIAL_UNIFORMITY 0x10000 |
#define | QFLAG_DIVISOR_ZERO 0x20000 |
#define | QFLAG_OUT_OF_NOD 0x40000 |
#define | QFLAG_MISSING_DATA 0x20000000 |
#define | QFLAG_OUTSIDE_DATA_RANGE 0x40000000 |
Functions | |
double | cpl_tools_get_median_double (double *, int) |
void | xsh_bpmap_set_bad_pixel (cpl_image *bpmap, int ix, int iy, int flag) |
void | xsh_bpmap_mask_bad_pixel (cpl_image *bpmap, cpl_mask *mask, int flag) |
cpl_image * | xsh_bpmap_collapse_bpmap_create (cpl_imagelist *list) |
int | xsh_bpmap_count (cpl_image *bpmap, int nx, int ny) |
void | xsh_bpmap_collapse_median (cpl_image *median, cpl_imagelist *list, cpl_mask *mask) |
void | xsh_bpmap_collapse_mean (cpl_image *mean, cpl_imagelist *list, cpl_mask *mask) |
void | xsh_set_image_cpl_bpmap (cpl_image *image, cpl_image *bpmap, int nx, int ny) |
void | xsh_badpixelmap_or (xsh_pre *self, const xsh_pre *right) |
void | xsh_bpmap_bitwise_to_flag (cpl_image *bpmap, int flag) |
cpl_error_code | xsh_badpixelmap_coadd (cpl_frame *self, const cpl_frame *right) |
cpl_error_code | xsh_image_clean_badpixel (cpl_frame *in) |
cpl_error_code | xsh_image_get_hot_cold_pixs (cpl_frame *frame_image, xsh_instrument *instrument, const double ks_low, const int cold_niter, const double ks_high, const int hot_niter, cpl_frame **cpix_frm, cpl_frame **hpix_frm) |
cpl_frame * | xsh_image_local_cold_pixs (cpl_image *ima, const double kappa, const int r, xsh_instrument *instr) |
cpl_frame * | xsh_image_local_hot_pixs (cpl_image *ima, const double kappa, const int r, xsh_instrument *instr) |
cpl_error_code | xsh_image_clean_mask_pixs (cpl_image **ima, cpl_image *msk, const int r) |
cpl_image * | xsh_image_flag_bptype_with_crox (cpl_image *ima) |
#define QFLAG_ADC_SATURATION 0x1000 |
Definition at line 70 of file xsh_badpixelmap.h.
#define QFLAG_CALIB_FILE_DEFECT 0x80 |
Definition at line 65 of file xsh_badpixelmap.h.
Referenced by xsh_pre_add(), xsh_pre_divide(), xsh_pre_multiply(), and xsh_pre_subtract().
#define QFLAG_CAMERA_DEFECT 0x2000 |
Definition at line 71 of file xsh_badpixelmap.h.
Referenced by xsh_image_get_hot_cold_pixs().
#define QFLAG_COSMIC_RAY_REMOVED 0x10 |
Definition at line 55 of file xsh_badpixelmap.h.
Referenced by xsh_remove_cosmics(), and xsh_remove_crh_single().
#define QFLAG_COSMIC_RAY_UNREMOVED 0x20 |
Definition at line 63 of file xsh_badpixelmap.h.
#define QFLAG_DARK_PIXEL 0x200 |
Definition at line 67 of file xsh_badpixelmap.h.
#define QFLAG_DIVISOR_ZERO 0x20000 |
Definition at line 76 of file xsh_badpixelmap.h.
Referenced by xsh_pre_divide().
#define QFLAG_ELECTRONIC_PICKUP 0x8 |
Definition at line 54 of file xsh_badpixelmap.h.
Referenced by flag_noisy_pixels().
#define QFLAG_GHOST_STRAY_LIGHT 0x4 |
Definition at line 53 of file xsh_badpixelmap.h.
#define QFLAG_GOOD_PIXEL 0 |
Definition at line 50 of file xsh_badpixelmap.h.
Referenced by do_calib_spectrum(), xsh_correct_flux_for_badpix(), xsh_extract_with_tag(), xsh_frameset_add(), xsh_rec_list_add(), and xsh_rec_list_rectify().
#define QFLAG_HOT_PIXEL 0x100 |
Definition at line 66 of file xsh_badpixelmap.h.
Referenced by xsh_image_search_bad_pixels_via_noise(), and xsh_mdark().
#define QFLAG_LOW_QE_PIXEL 0x40 |
Definition at line 64 of file xsh_badpixelmap.h.
Referenced by xsh_image_local_cold_pixs(), and xsh_image_mflat_detect_hotcold().
#define QFLAG_MISSING_DATA 0x20000000 |
Definition at line 79 of file xsh_badpixelmap.h.
Referenced by xsh_rec_list_rectify().
#define QFLAG_NON_LINEAR_PIXEL 0x8000 |
Definition at line 74 of file xsh_badpixelmap.h.
Referenced by xsh_bpmap_2pre(), xsh_compute_linearity(), and xsh_lingain().
#define QFLAG_NON_SPATIAL_UNIFORMITY 0x10000 |
Definition at line 75 of file xsh_badpixelmap.h.
#define QFLAG_OTHER_BAD_PIXEL 0x4000 |
Definition at line 72 of file xsh_badpixelmap.h.
#define QFLAG_OUT_OF_NOD 0x40000 |
Definition at line 77 of file xsh_badpixelmap.h.
Referenced by shift_with_localization().
#define QFLAG_OUTSIDE_DATA_RANGE 0x40000000 |
Definition at line 80 of file xsh_badpixelmap.h.
Referenced by get_errors(), xsh_pre_multiply(), and xsh_rec_list_rectify().
#define QFLAG_QUESTIONABLE_PIXEL 0x400 |
Definition at line 68 of file xsh_badpixelmap.h.
Referenced by xsh_image_get_hot_cold_pixs().
#define QFLAG_TELLURIC_CORRECTED 1 |
Definition at line 51 of file xsh_badpixelmap.h.
#define QFLAG_TELLURIC_UNCORRECTED 0x2 |
Definition at line 52 of file xsh_badpixelmap.h.
#define QFLAG_WELL_SATURATION 0x800 |
Definition at line 69 of file xsh_badpixelmap.h.
Referenced by xsh_image_local_hot_pixs(), and xsh_image_mflat_detect_hotcold().
#define XSH_BAD_PIXEL XSH_GOOD_PIXEL_LEVEL+1 |
Definition at line 59 of file xsh_badpixelmap.h.
#define XSH_GOOD_PIXEL_LEVEL QFLAG_COSMIC_RAY_REMOVED |
Definition at line 58 of file xsh_badpixelmap.h.
Referenced by chunk_coadd(), set_masterdark_qc(), xsh_bpmap_collapse_bpmap_create(), xsh_detect_max_y(), xsh_eval_y_avg_chunk(), xsh_frameset_add(), xsh_image_extract_optimal(), xsh_merge_ord_with_tag(), xsh_pre_data_window_median_flux_pa(), xsh_pre_data_window_sample_flux_pa(), xsh_pre_divide(), xsh_pre_get_bpmap(), xsh_pre_median_mean_stdev(), xsh_pre_median_mean_stdev_window(), xsh_pre_multiply(), xsh_pre_window_best_median_flux_pos(), xsh_rec_list_add(), xsh_set_image_cpl_bpmap(), and xsh_wavemap_list_new().
double cpl_tools_get_median_double | ( | double * | , | |
int | ||||
) |
cpl_error_code xsh_image_clean_badpixel | ( | cpl_frame * | in | ) |
Definition at line 2346 of file xsh_utils_image.c.
References check, nx, ny, xsh_free_image(), xsh_free_propertylist(), XSH_PRE_DATA_BPP, XSH_PRE_ERRS_BPP, and XSH_PRE_QUAL_BPP.