11.8 Filter Parameters
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.8 Filter Parameters]

 

11.8   Set Filter Parameters

In the last section, we have shown that you can select a filter in the Parameter Form shown in Figure 11.2. After selecting a filter, to set the filter parameters, you have to open the following additional forms and specify the parameter:

      Image Preprocessing Parameter Form

      Image Processing Parameter Form

      Normalization Parameter Form

      Unsupervised Filter Parameter Form

      BioFilter Parameter Form

      NeuralFilter Parameter Form

      NeuralNet Filter Parameter Form

We will use the Image Preprocessing Parameter Form in Figure 11.3 to show the implementation. The “OK” button in Figure 11.3 is implemented as follows:

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

        {

        try

        {

        script.transAppletPara.imagePreProcessing_MaskX = int.Parse (textBox1.Text) ;

        script.transAppletPara.imagePreProcessing_MaskY = int.Parse (textBox2.Text ) ;

        script.transAppletPara.imagePreProcessing_MaskW = int.Parse (textBox3.Text ) ;

        script.transAppletPara.imagePreProcessing_MaskH =  int.Parse (textBox4.Text ) ;

        script.transAppletPara.imagePreProcessing_MaskType

        = int.Parse (textBox11.Text );

         

        script.transAppletPara.imagePreProcessing_BorderCut

        =   int.Parse (textBox5.Text ) ;

         

        script.transAppletPara.imagePreProcessing_StickShift  

        =   int.Parse (textBox6.Text ));

         

         

        script.transAppletPara.imagePreProcessing_SkipEmptyBorderType

        =    int.Parse (textBox7.Text ) ;

        script.transAppletPara.imagePreProcessing_SkipPercent

        =    int.Parse (textBox8.Text ) ;

        script.transAppletPara.imagePreProcessing_SkipThresholdFilter   

        =   int.Parse (textBox9.Text ) ;

        script.transAppletPara.imagePreProcessing_SkipEdgeFilter    

        =   int.Parse (textBox10.Text ) ;

         

        script.transAppletPara.setPreProcessingFilterData

         (script.imagePreProcessingFilter );

                

        this.Close();

        }

        catch

        {

        MessageBox.Show ("Please enter valid integers", "Entry Error");

        }

        }

The first section takes the input data from the text boxes and stores them in object, script.transAppletPara.

The second section,

      script.transAppletPara.setPreProcessingFilterData (script.imagePreProcessingFilter );

passes the data in object, “script.transAppletPara”, to the Image Preprocessing filter,

      script.imagePreProcessingFilter.

In a similar fashion, we can implement the following parameter forms:

      Image Processing Parameter Form

      Normalization Parameter Form

      Unsupervised Filter Parameter Form

      BioFilter Parameter Form

      NeuralFilter Parameter Form

      NeuralNet Filter Parameter Form

 

[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