33 #include <pds/pdsra.h> 34 #include <pds/pdsdic.h> 37 int main(
int argc,
char** argv)
42 PdsMatrix *M0=pds_matrix_new_rand(600,800);
43 PdsMatrix *M1=pds_matrix_new_rand(600,800);
45 PdsRegionRect R0=pds_region_rect(50,250,48,64);
46 PdsRegionRect R1=pds_region_rect_transfer(R0,64,64);
48 pds_matrix_init_region(M0,R0,0.0);
49 pds_matrix_init_region(M1,R1,0.0);
51 pds_region_rect_stylized_printf(R0);
52 pds_region_rect_stylized_printf(R1);
57 if(DIC==NULL)
return EXIT_FAILURE;
62 clock_t time_init = clock ();
64 clock_t time_end = clock ();
65 printf(
"Calculating using %f seconds by point\n",(time_end-time_init)/(N*CLOCKS_PER_SEC*1.0));
73 pds_matrix_mul_value(DIC->
M0,255.0);
74 pds_matrix_mul_value(DIC->
M1,255.0);
75 pds_matrix_save_bmp_with_grayscale(DIC->
M0,
"imagedicm0.bmp");
76 pds_matrix_save_bmp_with_grayscale(DIC->
M1,
"imagedicm1.bmp");
La estructura tipo PdsDic2D . Esta estructura contiene dos matrices de Nlin lineas y Ncol columnas...
int pds_dic2d_tracking_region(PdsDic2D *DIC, PdsRegionRect Rin, PdsRegionRect *Rout)
Devuelve la región coincidente en la segunda matriz.
PdsRaReal last_match_corr
void pds_dic2d_free(PdsDic2D *DIC)
Libera la estructura de tipo puntero PdsDic2D.
PdsDic2D * pds_dic2d_new_from_matrices(const PdsMatrix *Mat0, const PdsMatrix *Mat1)
Crea una estructura de tipo PdsDic2D, internamente la estructura contiene una copia de las dos matric...