CR2RE Pipeline Reference Manual 1.6.7
hdrl_test.h
1/* $Id: hdrl_test.h,v 1.1 2013-10-22 08:26:11 jtaylor Exp $
2 *
3 * This file is part of the HDRL
4 * Copyright (C) 2013 European Southern Observatory
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
10 *
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
19 */
20
21/*
22 * $Author: jtaylor $
23 * $Date: 2013-10-22 08:26:11 $
24 * $Revision: 1.1 $
25 * $Name: not supported by cvs2svn $
26 */
27
28#ifndef HDRL_TEST_H
29#define HDRL_TEST_H
30
31#include "hdrl_image.h"
32#include "hdrl_types.h"
33
34#include <cpl.h>
35
36CPL_BEGIN_DECLS
37
38/*-----------------------------------------------------------------------------
39 Macros
40 -----------------------------------------------------------------------------*/
41
42#define hdrl_test_image_abs(himg1, himg2, tol) \
43{ \
44 cpl_test_image_abs(hdrl_image_get_image_const(himg1), \
45 hdrl_image_get_image_const(himg2), tol * \
46 HDRL_EPS_ERROR / HDRL_EPS_DATA); \
47 cpl_test_image_abs(hdrl_image_get_error_const(himg1), \
48 hdrl_image_get_error_const(himg2), tol * \
49 HDRL_EPS_ERROR / HDRL_EPS_DATA); \
50}
51
52CPL_END_DECLS
53
54#endif