|
|
|
|
[Home][16 Dynamic Library][16.6 M:N Matching]
|
|
16.6 Library M:N MatchingIn an N:M Matching, the N-images are in a1.txt and M-images are in lib1.txt. To make a M:N Matching,
Double click menu item �Library/Matching/N:M (a1.txt vs. lib1.txt)� and enter: private void menuItem100_Click(object sender, System.EventArgs e) { bool b = this.mainMenuToAPI.library_Matching_N_M ( dataDir + "a1.txt", dataDir + "b1.txt" ); } Here, mainMenuToAPI is an object, which will implement all functions. As we discussed earlier, the main form simply links menu items to functions in the mainMenuToAPI object. The implementation is: public bool library_Matching_N_M ( string a1_txt, string b1_txt) { if ( script.imageLibrary == null ) { appendText ("Dynamic Library not available!\n"); return false; }
bool b = script.neuralFilter .setLibrary ( script.imageLibrary ); if (!b) { appendText ("Dynamic Library Assignment Fails!\n"); return false; } try {
script.neuralFilter.findMatchNN ( a1_txt, b1_txt); } catch (Exception e) { appendText ( e.ToString () + "\n"); return false; } return true; } In this statement, the script object contains all of the objects required for the ImageFinder project. In particular, �script.imageLibrary� is the dynamic library object. The following statement assigns the dynamic library to the NeuralFilter object, �script.NeuralFilter�: bool b = script.neuralFilter .setLibrary ( script.imageLibrary ); if (!b) { appendText ("Dynamic Library Assignment Fails!\n"); return false; } Once the NeuralFilter object obtains this library, it will match images against this master library.
[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. |