From 746fdfc554b5584476df93b6c8717d04814cc2d4 Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Tue, 11 Mar 2014 19:51:47 -0400 Subject: Allow different color spaces to be used for similarity measurement. --- kd-forest.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'kd-forest.h') diff --git a/kd-forest.h b/kd-forest.h index f10f982..75d8666 100644 --- a/kd-forest.h +++ b/kd-forest.h @@ -21,7 +21,7 @@ // Single node in a k-d tree typedef struct kd_node_t { // Node coordinates - int coords[KD_DIMEN]; + double coords[KD_DIMEN]; // Sub-trees struct kd_node_t *left, *right; // Used to keep track of which sub-tree a node is in during construction @@ -34,7 +34,6 @@ typedef struct kd_node_t { } kd_node_t; void kd_node_init(kd_node_t *node, unsigned int x, unsigned int y); -void kd_node_set_color(kd_node_t *node, uint32_t color); // A forest of k-d trees typedef struct { -- cgit v1.2.3