Hi!
I'm using an IplImage library from camellia.sourceforge.net, and the
testbench calls a file only containing code like the one below. In
cam_morphomaths_code.c the real computation is made, but I don't
understand where cam_morphomaths_code.c is included and how to set
what parameters to use in the testbench.
How does this code execure? I don't understand a bit...
#undef CAM_MM_NEIGHB
#define CAM_MM_NEIGHB 5
#include "cam_morphomaths_code.c"
#define CAM_MM_ONE_OP
#undef CAM_MM_NEIGHB
#define CAM_MM_NEIGHB 3
#define CAM_MM_DO_EROSION
#define CamMorphoMathsKernel CamErode3x3
#define CamMorphoMathsKernel1U CamErode3x31U
#include "cam_morphomaths_code.c"
#undef CamMorphoMathsKernel
#undef CamMorphoMathsKernel1U
#undef CAM_MM_DO_EROSION
#define CAM_MM_DO_DILATION
#define CamMorphoMathsKernel CamDilate3x3
#define CamMorphoMathsKernel1U CamDilate3x31U
#include "cam_morphomaths_code.c"
#undef CAM_MM_DO_DILATION
#undef CamMorphoMathsKernel
#undef CamMorphoMathsKernel1U
#undef CAM_MM_NEIGHB
#define CAM_MM_NEIGHB 5
#define CAM_MM_DO_EROSION
#define CamMorphoMathsKernel CamErode5x5
#define CamMorphoMathsKernel1U CamErode5x51U
#include "cam_morphomaths_code.c"
#undef CamMorphoMathsKernel
#undef CamMorphoMathsKernel1U
#undef CAM_MM_DO_EROSION
#define CAM_MM_DO_DILATION
#define CamMorphoMathsKernel CamDilate5x5
#define CamMorphoMathsKernel1U CamDilate5x51U
#include "cam_morphomaths_code.c"
#undef CAM_MM_DO_DILATION
#undef CamMorphoMathsKernel
#undef CamMorphoMathsKernel1U
/Andreas