12 #ifndef AIMS_REGISTRATION_TRANSFORMATION_D_H 13 #define AIMS_REGISTRATION_TRANSFORMATION_D_H 27 float angle_rad = p[2] /180.0 *
M_PI;
28 float c = cos( angle_rad );
29 float s = sin( angle_rad );
36 testtrans(x,y) = T( 195 );
38 if(((_cx+c*(x-_cx)+s*(y-_cy)-p[1])<test.
dimX())&&((_cx+c*(x-_cx)+s*(y-_cy)-p[1])>=0)&&((_cy-s*(x-_cx)+c*(y-_cy)-p[0])<test.
dimY())&&((_cy-s*(x-_cx)+c*(y-_cy)-p[0])>=0))
39 testtrans(x,y) = test(
unsigned(_cx+c*(x-_cx)+s*(y-_cy)-p[1]),
unsigned(_cy-s*(x-_cx)+c*(y-_cy)-p[0]) ) ;
#define ForEach2d(thing, x, y)