ifw-odp  2.0.0-alpha
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Macros | Functions
clipm_test_priv_matrix.c File Reference
#include <cpl.h>
#include <clipm.h>
#include <clipm_priv_matrix.h>
#include <clipm_priv_error.h>
#include "clipm_testlib.h"

Macros

#define IMSIZE   10
 
#define CHECKIT(TYPE, WINDOW, FLIP)
 
#define CHECKIT_FLIPS(TYPE, WINDOW)
 
#define CHECKIT_FLIPS_WINDOWS(TYPE, WINDOW)
 
#define CHECK_TRANSFORM(TRANS, SHIFT)
 

Functions

void clipm_test_priv_matrix_new_from_image_window (void)
 
void clipm_test_priv_matrix_sqrt (void)
 
void clipm_test_priv_matrix_round (void)
 
void clipm_test_priv_matrix_get_median_rows (void)
 
void clipm_test_priv_matrix_get_mean_rows (void)
 
int main (int argc, char **argv)
 
void clipm_test_priv_matrix_select_cols (void)
 
void clipm_test_priv_matrix_copy_col_vector (void)
 
void clipm_test_priv_matrix_copy_vector_col (void)
 
void clipm_test_priv_matrix_transform_create_rot2d (void)
 
void clipm_test_priv_matrix_transform_invert (void)
 
void clipm_test_priv_matrix_transform_points (void)
 

Macro Definition Documentation

#define CHECK_TRANSFORM (   TRANS,
  SHIFT 
)
Value:
do { \
points, \
TRANS, \
SHIFT); \
if (TRANS != NULL) \
cpl_matrix_subtract(output, refout); \
else \
cpl_matrix_subtract(output, points); \
if (SHIFT != NULL) \
for (n = 0; n < 3; n++) \
{ \
cpl_matrix_set(output, 0, n,cpl_matrix_get(output, 0, n) - \
cpl_matrix_get(shift, 0, 0)); \
cpl_matrix_set(output, 1, n,cpl_matrix_get(output, 1, n) - \
cpl_matrix_get(shift, 1, 0)); \
} \
CLIPM_TRY_TESTLIB_ASSERT(cpl_matrix_is_zero(output, 1e-6)); \
\
cpl_matrix_delete(output); \
output = NULL; \
} while (0)
#define CLIPM_TRY_TESTLIB_ASSERT(CONDITION)
Definition: clipm_testlib_defines.h:66
cpl_matrix * clipm_priv_matrix_transform_points(const cpl_matrix *points, const cpl_matrix *transformation, const cpl_matrix *shift)
Transform a pointlist.
Definition: clipm_priv_matrix.c:765
#define CLIPM_TRY_CHECK_ERROR_STATE(void)
Check the CPL error state, and exit the try-block if not CPL_ERROR_NONE.
Definition: clipm_priv_error.h:362
#define CHECKIT (   TYPE,
  WINDOW,
  FLIP 
)
#define CHECKIT_FLIPS (   TYPE,
  WINDOW 
)
Value:
do { \
CHECKIT( TYPE, \
WINDOW, \
0); \
CHECKIT( TYPE, \
WINDOW, \
1); \
} while (0)
#define CHECKIT(TYPE, WINDOW, FLIP)
#define CHECKIT_FLIPS_WINDOWS (   TYPE,
  WINDOW 
)
Value:
do { \
NULL); \
WINDOW); \
} while (0)
#define CHECKIT_FLIPS(TYPE, WINDOW)
#define IMSIZE   10

Function Documentation

void clipm_test_priv_matrix_copy_col_vector ( void  )
void clipm_test_priv_matrix_copy_vector_col ( void  )
void clipm_test_priv_matrix_get_mean_rows ( void  )
void clipm_test_priv_matrix_get_median_rows ( void  )
void clipm_test_priv_matrix_new_from_image_window ( void  )
void clipm_test_priv_matrix_round ( void  )
void clipm_test_priv_matrix_select_cols ( void  )
void clipm_test_priv_matrix_sqrt ( void  )
void clipm_test_priv_matrix_transform_create_rot2d ( void  )
void clipm_test_priv_matrix_transform_invert ( void  )
Todo:
  • complete test by clean failure testing
void clipm_test_priv_matrix_transform_points ( void  )
int main ( int  argc,
char **  argv 
)