11.7 Selecting Filters
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

11.1 Push thru Filters 
11.2 Predefined Objects 
11.3 Grouping Parameters 
11.4 Chapter Project 
11.5 Creating Forms 
11.6 Objects 
11.7 Selecting Filters 
11.8 Filter Parameters 
[Home][11 Parameter Class][11.7 Selecting Filters]

 

11.7   Selecting Filters

The “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
  •    Setting Filter 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.

gina@attrasoft.com