Browse files

try to compare with siftDemoV4

  • Loading branch information...
1 parent 28197f6 commit d2161d5358c3171602385cd6cc980bcd179851bf @liuliu committed Sep 25, 2010
Showing with 19 additions and 0 deletions.
  1. +19 −0 test/sift_test.c
View
19 test/sift_test.c
@@ -54,6 +54,25 @@ int main(int argc, char** argv)
FILE* frame = fopen("box.frame", "r");
float x, y, s0, s1;
ccv_array_t* gtkp = ccv_array_new(10, sizeof(ccv_keypoint_t));
+ /*
+ int gt, dl;
+ fscanf(frame, "%d %d", &gt, &dl);
+ for (i = 0; i < gt; i++)
+ {
+ fscanf(frame, "%f %f %f %f", &y, &x, &s0, &s1);
+ int j;
+ float dummy;
+ for (j = 0; j < dl; j++)
+ fscanf(frame, "%f", &dummy);
+ ccv_keypoint_t nkp;
+ nkp.x = x;
+ nkp.y = y;
+ nkp.regular.scale = s0;
+ nkp.regular.angle = s1;
+ image->data.ptr[(int)(y + 0.5) * image->step + (int)(x + 0.5)] = 255;
+ ccv_array_push(gtkp, &nkp);
+ }
+ */
while (fscanf(frame, "%f %f %f %f", &x, &y, &s0, &s1) != EOF)
{
image->data.ptr[(int)(y + 0.5) * image->step + (int)(x + 0.5)] = 255;

0 comments on commit d2161d5

Please sign in to comment.