Browse files

Added macro for checking type of ANNcoord.

  • Loading branch information...
jwf committed Aug 29, 2011
1 parent 6f49d5f commit 7beb6e4f5dec719a3a59fefd8e92e90475392d48
Showing with 1 addition and 1 deletion.
  1. +1 −1 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.