|
|
|
|
[Home][25 Batch Job][25.6 Implementation]
|
|
25.6 ImplementationDouble click menu item “Batch/Run” and enter: private void menuItem142_Click(object sender, System.EventArgs e) { this.mainMenuToAPI .batch_Run (); } 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 batch_Run () { bool b = false; try { b = script.batch.run () ; if ( !b) { return false;
}
b = batch_GUI_LoadInput ( ); if ( !b) { appendText ( "Batch/Run: No Search Source Available\n"); return false;
}
script.results_1N = script.tranAppletPara .results_1N ; b = batch_GUI_LoadOutput ( ); if ( !b) { appendText( "Batch/Run: No Search Results Available\n"); return false; } }
catch (Exception e ) { appendText (e.ToString () + "\n" ); return false;
} …
return b; } The first section, b = script.batch.run () ; makes a batch run. The second section, b = batch_GUI_LoadInput ( ); retrieves and displays search source images. The third section, script.results_1N = script.tranAppletPara .results_1N ; b = batch_GUI_LoadOutput ( ); displays result images. The details are given in the chapter project located at “c:\transapplet70\imagefinder\”.
[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. |