|
|
|
|
[Home][11 Parameter Class][11.7 Selecting Filters]
|
|
11.7 Selecting FiltersThe “Parameter” button in Figure 11.1 opens the Parameter Form in Figure 11.2, as follows: private void button10_Click(object sender, System.EventArgs e) { Parameters paForm = new Parameters (this.mainMenuToAPI .script ); paForm.ShowDialog (); } Once in the Parameter Form in Figure 11.2, you can set the filters directly. To set the filter parameters, you have to open the following additional forms: Image Preprocessing Parameters Form Image Processing Parameters Form Normalization Parameters Form Unsupervised Filter Parameters Form BioFilter Parameters Form NeuralFilter Parameters Form NeuralNet Filter Parameters Form There are two parts related to the parameters:
Selecting filters are done in the Parameter Form in Figure 11.2. Setting filter parameters requires opening another form in Figure 11.3 – 11.8 and it is in these forms that the filter parameters are set. We now discuss how to set each filter: Image Preprocessing Filter There is only one Image Preprocessing Filter, so you do not have to set this filter. Image Processing Filters There are three image processing filters: Edge Filters, Threshold Filters, and Clean-Up Filters. You can select these filters from the Drop Down Lists in Figure 11.2. The Edge Filter is implemented as follows: void comboBox1_SelectedIndexChanged(object sender, System.EventArgs e) { script.transAppletPara.imageProcessing_edgeFilter = comboBox1.SelectedIndex; script.transAppletPara.setImageProcessingFilterData (script.imageProcessingFilter ); richTextBox1.AppendText ( "Set EdgeFilter " +script.transAppletPara.imageProcessing_edgeFilter + ".\n" ) ; } The first line gets the new setting from the Combo Box (Drop Down List). The second line assigns the new data to the Image Processing filter object. The third line prints a message. The Threshold Filter and the Clean-Up Filter are handled in a similar fashion. Normalization Filter You can select the Normalization filters from the Drop Down List in Figure 11.2. The Normalization Filter is implemented as follows: void comboBox4_SelectedIndexChanged(object sender, System.EventArgs e) { script.transAppletPara.reduction_Filter = comboBox4.SelectedIndex ;
script.transAppletPara.setReductionFilterData (script.reductionFilter );
richTextBox1.AppendText ( "Set Redeuction Filter " +comboBox4.SelectedIndex + ": " + comboBox4.SelectedItem + "\n" ); } The Unsupervised Filter selection, BioFilter selection, NeuralFilter selection, and NeuralNet Filter selection will be implemented in a similar fashion.
[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. |