Image source extraction


Data Structures

struct  _extract_method

Defines

#define cleanup
#define cleanup
#define cleanup
#define cleanup

Functions

static fors_star_list * extract_sex (const fors_image *image, const fors_setting *setting, const char *sex_exe, const char *sex_config, const char *sex_mag, const char *sex_magerr, int radius, fors_extract_sky_stats *sky_stats, cpl_image **background, cpl_table **extracted_sources)
 Extract sources using SExtractor.
static fors_star_list * extract_test (fors_extract_sky_stats *sky_stats, cpl_image **background, cpl_table **extracted_sources)
 Extract sources.
void fors_extract_define_parameters (cpl_parameterlist *parameters, const char *context)
 Define recipe parameters.
extract_method * fors_extract_method_new (const cpl_parameterlist *parameters, const char *context)
 Get extraction method from parameter list.
void fors_extract_method_delete (extract_method **em)
 Deallocate extraction method and set the pointer to NULL.
fors_star_list * fors_extract (const fors_image *image, const fors_setting *setting, const extract_method *em, fors_extract_sky_stats *sky_stats, cpl_image **background, cpl_table **extracted_sources)
 Extract sources.

Define Documentation

#define cleanup
 

Value:

do { \
    cpl_free((void *)name); \
} while (0)

Definition at line 667 of file fors/fors_extract.c.

#define cleanup
 

Value:

do { \
    cpl_table_delete(out); \
    cpl_free((void *)command); \
} while (0)

Definition at line 667 of file fors/fors_extract.c.


Function Documentation

static fors_star_list * extract_sex const fors_image image,
const fors_setting setting,
const char *  sex_exe,
const char *  sex_config,
const char *  sex_mag,
const char *  sex_magerr,
int  radius,
fors_extract_sky_stats sky_stats,
cpl_image **  background,
cpl_table **  extracted_sources
[static]
 

Extract sources using SExtractor.

Parameters:
image source image
setting instrument setting (gain)
sex_exe SExtractor executable
sex_config SExtractor configuration file
sex_mag SExtractor catalog magnitude
sex_magerr SExtractor catalog magnitude error
radius background error map median filter radius
sky_stats (output) statistics on determined sky
background (output) background image
extracted_sources (output) if non-NULL, SExtractor output table
Returns:
newly allocated list of stars
Note: The gain given in the setting must describe the image. Therefore, if the provided value of the gain is just the detector gain, the input image must not be stacked or normalized to e.g. 1s exposure time.

A background error map is given to SExtractor. This error map is obtained by applying a median filter to the input image error map (in order to remove sources).

Definition at line 338 of file fors/fors_extract.c.

References assure, _fors_setting::average_gain, fors_image_delete(), fors_image_filter_max_create(), fors_image_new(), fors_image_save_sex(), fors_star_new(), fors_extract_sky_stats::mean, fors_extract_sky_stats::median, fors_extract_sky_stats::rms, and STDEV_PR_MAD.

Referenced by fors_extract().

static fors_star_list * extract_test fors_extract_sky_stats sky_stats,
cpl_image **  background,
cpl_table **  extracted_sources
[static]
 

Extract sources.

Parameters:
sky_stats (output) sky statistics
background (output) background
extracted_sources (output) if non-NULL, table of sources
Returns:
newly allocated list of extracted stars
The star positions are hardcoded!

This method is used only for testing without relying on external packages

Definition at line 682 of file fors/fors_extract.c.

References assure, fors_star_new(), fors_extract_sky_stats::mean, fors_extract_sky_stats::median, and fors_extract_sky_stats::rms.

Referenced by fors_extract().

void fors_extract_define_parameters cpl_parameterlist *  parameters,
const char *  context
 

Define recipe parameters.

Parameters:
parameters parameter list to fill
context parameters context

Definition at line 83 of file fors/fors_extract.c.

Referenced by fors_img_science_define_parameters(), and fors_zeropoint_define_parameters().

extract_method* fors_extract_method_new const cpl_parameterlist *  parameters,
const char *  context
 

Get extraction method from parameter list.

Parameters:
parameters recipe parameter list
context read extraction method from this context
Returns:
newly allocated extraction method
The parameter list should have been previously created using fors_extract_define_parameters()

Definition at line 183 of file fors/fors_extract.c.

References assure, cleanup, dfs_get_parameter_int_const(), and dfs_get_parameter_string_const().

Referenced by fors_img_science(), and fors_zeropoint().

fors_star_list* fors_extract const fors_image image,
const fors_setting setting,
const extract_method *  em,
fors_extract_sky_stats sky_stats,
cpl_image **  background,
cpl_table **  extracted_sources
 

Extract sources.

Parameters:
image source image
setting instrument setting (gain)
em extraction method to use
sky_stats (output) statistics on determined sky
background (output) inferred background image
extracted_sources (output) if non-NULL, table of extracted sources
Returns:
newly allocated list of extracted stars

Definition at line 279 of file fors/fors_extract.c.

Referenced by fors_img_science(), and fors_zeropoint().


Generated on Wed Sep 10 07:31:54 2008 for FORS Pipeline Reference Manual by  doxygen 1.4.6