31 #include <fors_setting.h> 32 #include <fors_star.h> 42 #define assure(condition, action, ...) \ 43 do if (!(condition)) { \ 44 cpl_error_set_message(cpl_func, \ 45 cpl_error_get_code() ? \ 46 cpl_error_get_code() : \ 47 CPL_ERROR_UNSPECIFIED, \ 67 #define cassure(condition, errc, action, ...) \ 68 do if (!(condition)) { \ 69 cpl_error_set_message( cpl_func, \ 89 #define cassure_automsg(condition, errc, action) \ 90 do if (!(condition)) { \ 91 cpl_error_set_message( cpl_func, \ 108 #define passure(condition, action) \ 109 assure(condition, action, \ 110 "Internal error. Please report to %s", PACKAGE_BUGREPORT) 121 #define ppassure(condition, errc, action) \ 122 cassure(condition, errc, action, \ 123 "Internal error (!(%s)). Please report to %s", \ 127 #define fors_msg(level, ...) fors_msg_macro(level, cpl_func, __VA_ARGS__) 130 #define M_PI 3.1415926535897932384626433832795 134 #define M_E 2.7182818284590452354 137 #define TWOSQRT2LN2 2.35482004503095 141 extern const double STDEV_PR_MAD;
164 #ifdef CPL_IS_NOT_CRAP 172 void fors_msg_macro(cpl_msg_severity level,
const char *fct,
const char *format, ...)
174 __attribute__((format (printf, 3, 4)))
double fors_rand_gauss(void)
Pseudo-random gaussian distributed number.
void fors_print_banner(void)
Issue a banner with the pipeline version.
float fors_tools_get_median_fast_float(float *a, int n)
Biased median.
void fors_frameset_print(const cpl_frameset *frames)
Print a frame set.
const char * fors_type_get_string(cpl_type type)
Textual representation of CPL type.
void fors_msg_macro(cpl_msg_severity level, const char *fct, const char *format,...)
Print message.
double fors_angle_diff(const double *a1, const double *a2)
Difference between angles.
const char * fors_frame_get_type_string(const cpl_frame *f)
Get frame type as a string.
double fors_tools_get_kth_double(double *a, int n, int k)
Same as cpl_tools_get_kth_double.
cpl_image * fors_imagelist_collapse_create(const cpl_imagelist *ilist)
Workaround for cpl_imagelist_collapse_create.
cpl_frameset * fors_frameset_extract(const cpl_frameset *frames, const char *tag)
Extract frames with given tag from frameset.
float fors_tools_get_kth_float(float *a, int n, int k)
Same as cpl_tools_get_kth_float.
const char * fors_frame_get_group_string(const cpl_frame *f)
Get frame group as a string.
int fors_get_version_binary(void)
Get FORS library binary version number.
double fors_utils_median_corr(int n)
median stacking correction factor
float fors_tools_get_median_float(float *a, int n)
Unbiased median.
const char * fors_frame_get_level_string(const cpl_frame *f)
Get frame level as a string.
void fors_frame_print(const cpl_frame *f)
Print a frame.
void fors_parameterlist_set_defaults(cpl_parameterlist *parlist)
Set unset parameters to default value.
const char * fors_get_license(void)
Get the pipeline copyright and license.
cpl_image * fors_imagelist_collapse_median_create(const cpl_imagelist *ilist)
Workaround for cpl_imagelist_collapse_median_create.