Skip to content
Browse files

Added macro for checking type of ANNcoord.

  • Loading branch information...
1 parent 6f49d5f commit 7beb6e4f5dec719a3a59fefd8e92e90475392d48 @jwf committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 Utils.h
View
2 Utils.h
@@ -44,7 +44,7 @@ void get_embedding(Settings* settings, ANNcoord*& data, unsigned long &length);
void get_ann_points(ANNpointArray &dataPts, ANNcoord* series, unsigned long rows, uint cols);
void print_matrix(CvMat* matrix);
-#define MAT_TYPE CV_64FC1
+#define MAT_TYPE (sizeof(ANNcoord)==sizeof(float)) ? CV_32FC1 : CV_64FC1
#define FLOAT_SCAN "%G"
#define FLOAT_OUT "%.8G"

0 comments on commit 7beb6e4

Please sign in to comment.
Something went wrong with that request. Please try again.