Wednesday, July 30, 2008

Is there a bug in Invariant Moments?

Today I was inspecting the accuracy of the invariant moments generated by my code and Dr. Tolga's code. I did two different inspections
  1. The moment values from specific points in sample images
  2. Histograms of the moments calculated for sample images
The sample images selected are:


These sample images are 100x100 images.
The moment were calculated values at (50,50) in all the 3 images using my code and Dr. Tolga's code. The results where the following.

For the dots.png image the attributes where compared. The disk sizes taken where 5, 9, 15, 19, 25. The histogram values matched perfectly for both algorithms. Which means they were working on the same circular regions. On comparing the moment values the following where the differences. First row is Dr. Tolga's output and second was mine (For Disk Size 5). The Gram Schmidt operation was also removed from the templates.

1.0e+06 *
0.0066 0.0199 0.0689 0.0689 3.9246 0.2424 -0.0001

0.0000 0.0000 0.0000 0.0000 -0.0000 -0.0000 -0.0000

Updates to this blog can be found in the following blog http://synapseslayer.blogspot.com/2008/07/changing-feature-vector.html

No comments: