12.6 Implementation
About1 Introduction2 Image Recognition3 TransApplet4 API5 Interface6 Input7 Image Display8 Preprocessing9 Processing10 Normalization11 Parameter Class12 Image Signatures13 Unsupervised Filters14 BioFilters15 NeuralFilters16 Dynamic Library17 NeuralNet Filter18 Parameters19 Input Options20 Database Input21 Video Input22  Live Video Input23  Counting & Tracking24  Counting 25  Batch Job26 ImageFinder for DOS27 ImageHunt 28 Support Packages

12.1 Signature Menu 
12.2 API 
12.3 Objects 
12.4 Key Signature 
12.5 Signature File 
12.6 Implementation 
12.7 Examples 
[Home][12 Image Signatures][12.6 Implementation]

 

12.6   Signature File Implementation

Now we implement menu item, Signature/N Signature (a1.txt). Double click this menu item and enter:

      private void menuItem6_Click(object sender, System.EventArgs e)

          {

          this.mainMenuToAPI.signature_Training_Segment_Signature

              (dataDir + "a1.txt");

      }

Again, mainMenuToAPI is an object, which will implement all functions. As we discussed in the last chapter, the main form simply links menu items to functions in the mainMenuToAPI object. The implementation is:

      public void signature_Training_Segment_Signature   (string outputFile)

              {

               f.mainMenuToAPI.script.signatureFilter.getSegmentLibrary  ( f.gui.imageAbsoultePath,

               f.gui.imageID ,

              f.gui.imageX,

              f.gui.imageY,

              f.gui.imageW,

              f.gui.imageH ,

               outputFile );

              }

In this statement, the script object contains all of the objects required for the ImageFinder project. In particular, �script.signatureFilter� is the image signature filter object. The parameters, �f.gui.imageAbsoultePath�, is a string list that has the absolute paths of all source images to be matched. After the completion of signature computation, the results will be stored in a file specified by the last parameter, outputFile.

The only difference between the following menu items is the output file; therefore, all of them will be implemented in a similar fashion:

      Signature/Training Signature (t1.txt)

      Signature/N Signature (a1.txt)

      Signature/M2 Signature (a2.txt)

      Signature/M3 Signature (a3.txt)

      Signature/M4 Signature (a12.txt)

 

[Home][About][1 Introduction][2 Image Recognition][3 TransApplet][4 API][5 Interface][6 Input][7 Image Display][8 Preprocessing][9 Processing][10 Normalization][11 Parameter Class][12 Image Signatures][13 Unsupervised Filters][14 BioFilters][15 NeuralFilters][16 Dynamic Library][17 NeuralNet Filter][18 Parameters][19 Input Options][20 Database Input][21 Video Input][22 Live Video Input][23 Counting & Tracking][24 Counting ][25 Batch Job][26 ImageFinder for DOS][27 ImageHunt ][28 Support Packages]

Copyright (c) 2006 - 2007 Attrasoft. All rights reserved.

gina@attrasoft.com