39#define TESTIMG_STD_DYN_RANGE_EV 15
42#define TESTIMG_STD_WIDTH (TESTIMG_STD_DYN_RANGE_EV + 1)
43#define TESTIMG_STD_HEIGHT (TESTIMG_STD_DYN_RANGE_EV + 1)
64#define for_testimg_pixels_p_xy(ti) \
65 for (int x=0, y=0; x<ti->width; x+=1, y=0)\
66 for (float *p=get_pixel(ti, x, y); y<ti->height; y+=1, p=get_pixel(ti, x, y))
69#define for_testimg_pixels_p_yx(ti) \
70 for (int y=0, x=0; y<ti->height; y+=1, x=0)\
71 for (float *p=get_pixel(ti, x, y); x<ti->width; x+=1, p=get_pixel(ti, x, y))
88#define testimg_print testimg_print_by_pixel
int width
Definition bilateral.h:1
int height
Definition bilateral.h:1
int width
Definition testimg.h:27
const char * name
Definition testimg.h:30
float * pixels
Definition testimg.h:29
int height
Definition testimg.h:28
Testimg * testimg_gen_all_black(const int width, const int height)
Definition testimg.c:140
void testimg_print_chan(const Testimg *const ti, const int chan_idx)
Definition testimg.c:47
void testimg_free(Testimg *const ti)
Definition testimg.c:41
Testimg * testimg_gen_grey_max_dr_neg()
Definition testimg.c:245
float testimg_val_to_log(const float val)
Definition testimg.c:105
Testimg * testimg_to_log(Testimg *ti)
Definition testimg.c:93
Testimg * testimg_gen_all_white(const int width, const int height)
Definition testimg.c:147
Testimg * testimg_gen_three_color_space(const int width)
Definition testimg.c:182
Testimg * testimg_gen_grey_space(const int width)
Definition testimg.c:154
void testimg_print_by_chan(const Testimg *const ti)
Definition testimg.c:63
Testimg * testimg_gen_grey_with_rgb_clipping(const int width)
Definition testimg.c:266
float * get_pixel(const Testimg *const ti, const int x, const int y)
Definition testimg.h:57
Testimg * testimg_alloc(const int width, const int height)
Definition testimg.c:31
void testimg_print_by_pixel(const Testimg *const ti)
Definition testimg.c:73
Testimg * testimg_gen_grey_max_dr()
Definition testimg.c:219
Testimg * testimg_gen_rgb_space(const int width)
Definition testimg.c:196
Testimg * testimg_to_exp(Testimg *ti)
Definition testimg.c:110
float testimg_val_to_exp(const float val)
Definition testimg.c:122
Testimg * testimg_gen_single_color_space(const int width, const int color_index)
Definition testimg.c:168
Testimg * testimg_gen_all_grey(const int width, const int height, const float value)
Definition testimg.c:127