Defines | |
| #define | cleanup |
| #define | cleanup |
| #define | cleanup |
| #define | cleanup |
Functions | |
| static void | remove_large_scale (fors_image *master_screen_flat, const cpl_parameterlist *parameters, const char *context, const fors_setting *setting) |
| Fit and divide out large scale structure. | |
| static void | remove_large_scale_fit (fors_image *master_screen_flat, const cpl_parameterlist *parameters, const char *context, const fors_setting *setting) |
| Fit and divide out large scale structure. | |
| static void | write_qc (cpl_propertylist *qc, const cpl_frame *first_raw_frame, const fors_image_list *sflats, const fors_image *master_sflat, const fors_setting *setting, double saturation) |
| Compute QC. | |
| void | fors_img_screen_flat_define_parameters (cpl_parameterlist *parameters) |
| Define recipe parameters. | |
| void | fors_img_screen_flat (cpl_frameset *frames, const cpl_parameterlist *parameters) |
| Do the processing. | |
| int | cpl_plugin_get_info (cpl_pluginlist *list) |
| Build the list of available plugins, for this module. | |
| static int | fors_img_screen_flat_create (cpl_plugin *plugin) |
| Setup the recipe options. | |
| static int | fors_img_screen_flat_exec (cpl_plugin *plugin) |
| Execute the plugin instance given by the interface. | |
| static int | fors_img_screen_flat_destroy (cpl_plugin *plugin) |
| Destroy what has been created by the 'create' function. | |
Variables | |
| const char *const | fors_img_screen_flat_name = "fors_img_screen_flat" |
| const char *const | fors_img_screen_flat_description_short |
| const char *const | fors_img_screen_flat_author = "Jonas M. Larsen" |
| const char *const | fors_img_screen_flat_email = PACKAGE_BUGREPORT |
| const char *const | fors_img_screen_flat_description |
|
|
Value: do { \ cpl_frameset_delete(sflat_frames); \ fors_setting_delete(&setting); \ cpl_frameset_delete(master_bias_frame); \ fors_image_delete_const(&master_bias); \ fors_stack_method_delete(&sm); \ cpl_free((void *)context); \ fors_image_delete(&master_screen_flat); \ fors_image_delete(&master_norm_flat); \ fors_image_list_delete_const(&sflats, fors_image_delete); \ cpl_propertylist_delete(qc); \ } while (0) Definition at line 472 of file fors_img_screen_flat_impl.c. |
|
|
Value: do { \ cpl_image_delete(smoothed); \ } while (0) Definition at line 472 of file fors_img_screen_flat_impl.c. |
|
|
Value: do { \ cpl_image_delete(smoothed); \ } while (0) Definition at line 472 of file fors_img_screen_flat_impl.c. |
|
|
Value: do { \ fors_image_delete(&image); \ } while (0) Definition at line 472 of file fors_img_screen_flat_impl.c. |
|
||||||||||||||||||||
|
Fit and divide out large scale structure.
To avoid dealing with correlated noise, the obtained smoothed image is assumed to be effectively noiseless. For a median filter window size of only 11x11, this assumption introduces a relative error in the error bars of only ~ 1/sqrt(11x11) = 10 %. Definition at line 299 of file fors_img_screen_flat_impl.c. References assure, _fors_setting::binx, _fors_setting::biny, cleanup, dfs_get_parameter_int_const(), fors_image_divide_noerr(), fors_image_filter_median_create(), fors_image_get_size_x(), fors_image_get_size_y(), and remove_large_scale_fit(). Referenced by fors_img_screen_flat(). |
|
||||||||||||||||||||
|
Fit and divide out large scale structure.
To avoid dealing with correlated noise, the obtained smoothed image is assumed to be effectively noiseless. Definition at line 407 of file fors_img_screen_flat_impl.c. References assure, cleanup, dfs_get_parameter_int_const(), fors_image_divide_noerr(), fors_image_flat_fit_create(), and fors_image_get_median(). Referenced by remove_large_scale(). |
|
||||||||||||||||||||||||||||
|
Compute QC.
Definition at line 485 of file fors_img_screen_flat_impl.c. References assure, conad, _fors_setting::exposure_time, fors_fixed_pattern_noise(), fors_image_crop(), fors_image_delete(), fors_image_divide(), fors_image_divide_scalar(), fors_image_duplicate(), fors_image_get_data_const(), fors_image_get_mean(), fors_image_get_median(), fors_image_get_size_x(), fors_image_get_size_y(), fors_image_get_stdev(), fors_image_multiply_scalar(), fors_image_square(), fors_image_subtract(), fors_image_subtract_scalar(), fors_qc_dic_version, fors_qc_start_group(), fors_qc_write_group_heading(), fors_qc_write_qc_double(), and _fors_setting::instrument. |
|
|
Define recipe parameters.
Definition at line 96 of file fors_img_screen_flat_impl.c. References fors_img_screen_flat_name, and fors_stack_define_parameters(). Referenced by fors_img_screen_flat_create(). |
|
||||||||||||
|
Do the processing.
Definition at line 186 of file fors_img_screen_flat_impl.c. References assure, cleanup, fors_dfs_save_image(), fors_frameset_extract(), fors_image_duplicate(), fors_image_load(), fors_image_load_list_const(), fors_img_screen_flat_name, fors_setting_new(), fors_stack_const(), fors_stack_method_new(), remove_large_scale(), and write_qc(). Referenced by fors_img_screen_flat_exec(). |
|
|
Build the list of available plugins, for this module.
Definition at line 62 of file fors_img_screen_flat.c. References fors_get_version_binary(), fors_img_screen_flat_author, fors_img_screen_flat_create(), fors_img_screen_flat_description, fors_img_screen_flat_description_short, fors_img_screen_flat_destroy(), fors_img_screen_flat_email, fors_img_screen_flat_exec(), fors_img_screen_flat_name, and fors_license. |
|
|
Setup the recipe options.
Definition at line 109 of file fors_img_screen_flat.c. References fors_img_screen_flat_define_parameters(). Referenced by cpl_plugin_get_info(). |
|
|
Execute the plugin instance given by the interface.
Definition at line 158 of file fors_img_screen_flat.c. References fors_begin(), fors_end(), fors_img_screen_flat(), and fors_img_screen_flat_description_short. Referenced by cpl_plugin_get_info(). |
|
|
Destroy what has been created by the 'create' function.
Definition at line 207 of file fors_img_screen_flat.c. Referenced by cpl_plugin_get_info(). |
|
|
Initial value:
"Compute master screen flat frame"
Definition at line 50 of file fors_img_screen_flat_impl.c. Referenced by cpl_plugin_get_info(), and fors_img_screen_flat_exec(). |
|
|
Initial value: "After bias subtraction, the input flat field frames are combined using\n" "the given stack method. The combined frame is finally normalised dividing\n" "it by its large scale illumination trend. The large scale trend is obtained\n" "by applying a median filter with a large kernel. To avoid boundary effects, \n" "the median filter is applied only to the specified region.\n" "The overscan regions, if present, are removed from the result.\n\n" "Input files:\n" "\n" " DO category: Type: Explanation: Required:\n" " SCREEN_FLAT_IMG Raw Screen flat field Y\n" " MASTER_BIAS Raw Master bias Y\n" "\n" "Output files:\n\n" " DO category: Data type: Explanation:\n" " MASTER_SCREEN_FLAT_IMG FITS image Master screen flat field\n" Definition at line 54 of file fors_img_screen_flat_impl.c. Referenced by cpl_plugin_get_info(). |
1.4.6