#include <cpl.h>
#include <xsh_drl.h>
#include <stdbool.h>
#include <xsh_data_order.h>
#include <config.h>
Go to the source code of this file.
Defines | |
#define | TESTS_INIT(DRL_ID) |
#define | TEST_END() |
#define | TESTS_XSH_INSTRUMENT_CREATE(instr, mode, arm, lamp, recipe) |
#define | TESTS_XSH_FRAME_CREATE(frame, tag, name) |
#define | TESTS_DATA(file) XSH_TEST_DATA_PATH "/" file |
#define | XSH_DRL_FUNC_RMS 0.01 |
#define | XSH_FLOAT_PRECISION 0.000001 |
Functions | |
void | tests_set_defaults (cpl_parameterlist *parlist) |
Set unset parameters to default value. | |
cpl_image * | xsh_test_create_bias_image (const char *name, int nx, int ny, xsh_instrument *instrument) |
cpl_propertylist * | mkHeader (XSH_INSTRCONFIG *iconfig, int nx, int ny, double exptime) |
void | setHeader (cpl_propertylist *header, XSH_INSTRCONFIG *iconfig, int nx, int ny, double exptime) |
cpl_frame * | xsh_test_create_frame (const char *name, int nx, int ny, const char *tag, cpl_frame_group group, xsh_instrument *instrument) |
void | add_to_order_list (xsh_order_list *list, int order, int absorder, cpl_polynomial *poly, int xdelta, int starty, int endy) |
xsh_order_list * | create_order_list (int norder, xsh_instrument *instrument) |
cpl_image * | create_order_image (xsh_order_list *list, int nx, int ny) |
cpl_frame * | create_rectify_nod_list (int dual, const char *fname, xsh_instrument *instr) |
cpl_frameset * | sof_to_frameset (const char *sof_name) |
#define TEST_END | ( | ) |
xsh_free_temporary_files(); \ cpl_end()
Definition at line 106 of file tests.h.
Referenced by HandleOptions(), Help(), and main().
#define TESTS_INIT | ( | DRL_ID | ) |
#define TESTS_XSH_FRAME_CREATE | ( | frame, | |||
tag, | |||||
name | ) |
#define TESTS_XSH_INSTRUMENT_CREATE | ( | instr, | |||
mode, | |||||
arm, | |||||
lamp, | |||||
recipe | ) |
instr = xsh_instrument_new() ;\ xsh_instrument_set_mode( instr, mode) ;\ xsh_instrument_set_arm( instr, arm) ;\ xsh_instrument_set_lamp( instr, lamp) ;\ xsh_instrument_set_recipe_id( instr, recipe) ;\ xsh_msg( " recipe_id: %s", instr->recipe_id )
Definition at line 110 of file tests.h.
Referenced by main().