comparison tests/pointset_test/genpoints2.c @ 290:40dca0cbbffd

slight modification of LSH point_set testing
author mas01mc
date Tue, 22 Jul 2008 18:04:04 +0000
parents fb8bec5c604e
children 9f9b8b5f35f2
comparison
equal deleted inserted replaced
289:9127c33326f8 290:40dca0cbbffd
64 64
65 65
66 // Save single feature vector 66 // Save single feature vector
67 char name[40]; 67 char name[40];
68 if(i < count) 68 if(i < count)
69 snprintf(name, 39, "testfeature%d", i); 69 snprintf(name, 39, i<10?"testfeature0%d":"testfeature%d", i);
70 else 70 else
71 snprintf(name, 39, "queryfeature"); 71 snprintf(name, 39, "queryfeature");
72 /* assumes $PWD is right */ 72 /* assumes $PWD is right */
73 int fd = open(name, O_CREAT|O_TRUNC|O_WRONLY, S_IWUSR|S_IRUSR|S_IRGRP|S_IROTH); 73 int fd = open(name, O_CREAT|O_TRUNC|O_WRONLY, S_IWUSR|S_IRUSR|S_IRGRP|S_IROTH);
74 74