find_ellipse.h 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. #ifndef FIND_ELLIPSE_H
  2. #define FIND_ELLIPSE_H
  3. #include <CL/cl.h>
  4. #include "avilib.h"
  5. #include "matrix.h"
  6. #include "misc_math.h"
  7. #include <math.h>
  8. #include <stdlib.h>
  9. // Defines the region in the video frame containing the blood vessel
  10. #define TOP 110
  11. #define BOTTOM 328
  12. extern long long get_time();
  13. // Global variables used by OpenCL functions
  14. extern cl_context context;
  15. extern cl_command_queue command_queue;
  16. extern cl_device_id device;
  17. extern MAT * get_frame(avi_t *cell_file, int frame_num, int cropped, int scaled);
  18. extern MAT * chop_flip_image(unsigned char *image, int height, int width, int top, int bottom, int left, int right, int scaled);
  19. extern MAT * GICOV(MAT * grad_x, MAT * grad_y);
  20. extern MAT * dilate(MAT * img_in);
  21. extern MAT * linear_interp2(MAT * m, VEC * X, VEC * Y);
  22. extern MAT * TMatrix(unsigned int N, unsigned int M);
  23. extern VEC * getsampling(MAT * m, int ns);
  24. extern VEC * getfdriv(MAT * m, int ns);
  25. extern void choose_GPU();
  26. extern void compute_constants();
  27. extern void uniformseg(VEC * cellx_row, VEC * celly_row, MAT * x, MAT * y);
  28. extern void splineenergyform01(MAT * Cx, MAT * Cy, MAT * Ix, MAT * Iy, int ns, double delta, double dt, int typeofcell);
  29. extern float * structuring_element(int radius);
  30. extern double m_min(MAT * m);
  31. extern double m_max(MAT * m);
  32. #endif