#include #include #include #include "serial_declarations.h" int DEVIATION = 20; int NUMBER_OF_POINTS = 1024; int DIMENSIONS = 32; const char* POINTS_FILENAME = "../data/32"; struct timeval startwtime, endwtime; double seq_time; int main(int argc, char **argv){ double **vectors, **shifted_points; parameters params; get_args(argc, argv); init(&vectors, ¶ms); //save_matrix(vectors, 0); // tic gettimeofday (&startwtime, NULL); int iterations = meanshift(vectors, &shifted_points, DEVIATION, ¶ms); printf("Total iterations = %d\n", iterations); // toc gettimeofday (&endwtime, NULL); seq_time = (double)((endwtime.tv_usec - startwtime.tv_usec)/1.0e6 + endwtime.tv_sec - startwtime.tv_sec); printf("%s wall clock time = %f\n","Mean Shift", seq_time); //TODO write output points to file -> plot later //save_matrix(shifted_points, iterations); }