Image Comparison 3.40
Brian Hume
A00201916
Comp 4932
Mar 21 2005

How to start:

Image Comparison 3.40 is a tool designed to help with the identification and classification of shapes from image sources

The first step in analyzing an image is to make a library of shapes.
This is accomplished by loading pictures into the "Library Addition Viewer" and clicking "Add to library"
Once the library is filled with all desired shapes you should give each shape a name by selecting its picture in the Shape Library Viewer and Typing in a name the Shape Name text box.

To compare shapes load each shape into the Shape Comparison Image and click "Compare Shape".
The results of the comparison will be displayed in the bottem box.

More complex features
The first check box labeled "Output all shape results" will make the result box display a successive list of shapes with their "best" fit, finishing with the shape that is the best fit.

Pixel Dist. is the distance each step is to calculate the origin of the shape, a PD smaller that the width of your shapes boards can cause problems it is also possible that a shapes with a length that is divisible by the PD can have weird issues.

The Margin of Error is the distance between where the pixel was expected and where it actually is for a successful "hit". By increasing this value you increase the number of shapes that will be recognized as similar.

The library can be cleared by clicking the clear button.

Important Information

For a shape to be loaded correctly it must be clearly outlined in White (color 255,255,255)

Small amounts of Noise are filtered out along with any shape smaller than 10 x 10 pixels

Other useful information

I have made several template shapes and stored them in the shapes directory they cover translation ("C 100 0 0.bmp" "C 100 90 0.bmp")  Scaling ("Circle 50 0.bmp" "Circle 100 0.bmp") Rotation ("Fish 100 0 0.bmp" "Fish 100 90 1.bmp") Shape damage ("Fish 100 90 1.bmp" "Circle 100 1.bmp" "Triangle 90 1.bmp") Random Noise Pixels ("Fish 100 0 1.bmp" "Fish 100 0 0.bmp") Complex Shapes ("C 100 0 0.bmp" "Fish 100 0 0.bmp" "Figure8.bmp" "Chamber shape.bmp") Combination shapes ("Chamber shape.bmp" "Chamber shape 90 50%.bmp")

The Figure8 and Chamber shape are not included in "All Shapes.bmp" I did not include them because it will allow you to test how well my program will compare shapes to nonexistent shapes.

If a shape is producing a weird result try fiddling with the PD and MOE values I found that PD:5 MOE:5 work well for most common shapes.

Changes since 3.30
Removed Unused classes
Removed Unused functions
Improved graphical results
Added New Icon
Added Credits Box

Changes since 3.14
Added graphical results
Improved speed slightly


Changes since 3.10
Fixed several spelling mistakes