|
|
|
|
|
[Home][11 Parameter Class][11.3 Grouping Parameters]
|
11.3 Grouping Parameters TogetherThe class that groups all parameters together is called TransAppletParameters. The class interface is: public class TransAppletParameters : TransAppletParametersData { public bool setPreProcessingFilterData ( Attrasoft.TransApplet70.ImagePreProcessing70.ImagePreProcessing70 ipre70); public bool getPreProcessingFilterData ( Attrasoft.TransApplet70.ImagePreProcessing70.ImagePreProcessing70 ipre70);
public bool setImageProcessingFilterData ( Attrasoft.TransApplet70.ImageProcessing70.ImageProcessing70 ip70); public bool getImageProcessingFilterData ( Attrasoft.TransApplet70.ImageProcessing70.ImageProcessing70 ip70);
public bool setReductionFilterData ( Attrasoft.TransApplet70.ReductionFilter70 .ReductionFilter70 rd70); public bool getReductionFilterData ( Attrasoft.TransApplet70.ReductionFilter70 .ReductionFilter70 rd70);
public bool setSignatureFilterData ( Attrasoft.TransApplet70.ImageSignatureFilter70.ImageSignatureFilter sig70); public bool getSignatureFilterData ( Attrasoft.TransApplet70.ImageSignatureFilter70.ImageSignatureFilter sig70);
public bool setUnsupervisedFilterData ( Attrasoft.TransApplet70.UnsupervisedFilter70 .UnsupervisedFilter usf70); public bool getUnsupervisedFilterData ( Attrasoft.TransApplet70.UnsupervisedFilter70 .UnsupervisedFilter usf70);
public bool setBioFilterData ( Attrasoft.TransApplet70.BioFilter70.BioFilter bf70); public bool getBioFilterData ( Attrasoft.TransApplet70.BioFilter70 .BioFilter bf70);
public bool setNeuralFilterData ( Attrasoft.TransApplet70.NeuralFilter70.NeuralFilter nf70); public bool getNeuralFilterData ( Attrasoft.TransApplet70.NeuralFilter70 .NeuralFilter nf70);
public bool setNeuralNetData ( Attrasoft.TransApplet70.NeuralNet70 .NeuralNet70 nn70); public bool getNeuralNetData ( Attrasoft.TransApplet70.NeuralNet70 .NeuralNet70 nn70); } Before we explain the functions, let us first see the base class, which contains all of the parameters: public class TransAppletParametersData { //[ImageFinder 7.0] public int executionCode =0;
//[Input] public string keyImage_absolutePath="None"; public string keyImage_segmentX="0"; public string keyImage_segmentY="0"; public string keyImage_segmentXlength="0"; public string keyImage_segmentYLength="0"; public string searchSource_Name="None"; public string searchSource_Type = "0"; public string searchSource_sqlStatement ="NA";
//[Image PreProcessing Filters] public int imagePreProcessing_BorderCut =0; public int imagePreProcessing_MaskX =0; public int imagePreProcessing_MaskY =0; public int imagePreProcessing_MaskW =0; public int imagePreProcessing_MaskH = 0;
public int imagePreProcessing_MaskType = 0; public int imagePreProcessing_StickShift = 0; public int imagePreProcessing_SkipEmptyBorderType =0; public int imagePreProcessing_SkipPercent =0; public int imagePreProcessing_SkipEdgeFilter = 0;
public int imagePreProcessing_SkipThresholdFilter = 0;
//[Image Processing Filters] public int imageProcessing_edgeFilter=2; public int imageProcessing_thresholdFilter=1; public int imageProcessing_cleanUpFilter=2; public int imageProcessing_doubleProcessing=0;
public int imageProcessing_R1=0; public int imageProcessing_R2=128; public int imageProcessing_R3=2; public int imageProcessing_G1=0; public int imageProcessing_G2=128; public int imageProcessing_G3=2; public int imageProcessing_B1=0; public int imageProcessing_B2=128; public int imageProcessing_B3=2;
//[Reduction Filter] public int reduction_Filter=0; public int reduction_SegmentCut=0; public int reduction_SizeCut=0; public int reduction_BorderCut=0; public int reduction_LookAtX=0; public int reduction_LookAtY=0; public int reduction_LookAtXLength=0; public int reduction_LookAtYLength=0;
//[SignatureFilter] public int signatureFilter=0;
//[UnsupervisedFilter] public int UnsupervisedFilterFilter=0; public int UnsupervisedFilter_Percent=20; public int UnsupervisedFilter_Mode=0; public int UnsupervisedFilter_CutOff=0; public int UnsupervisedFilter_OutputFileType=0;
public int UnsupervisedFilter_ShowFile=1; public int UnsupervisedFilter_Blurring=2; public int UnsupervisedFilter_Sensitivity=4; public int UnsupervisedFilter_UseRelativeScore=0; public int UnsupervisedFilter_ShowScore = 1 ;
public int UnsupervisedFilter_AutoSegment=0;
//[BioFilter] public int bioFilter=0; public int bioFilter_Percent=20; public int bioFilter_Mode=0; public int bioFilter_CutOff=0; public int bioFilter_OutputFileType=0;
public int bioFilter_ShowFile=1; public int bioFilter_Blurring=2; public int bioFilter_Sensitivity=4; public int bioFilter_UseRelativeScore=0; public int bioFilter_ShowScore = 1 ;
public int bioFilter_AutoSegment=0;
//[NeuralFilter] public int neuralFilter=2; public int neuralFilter_Percent=20; public int neuralFilter_Mode=0; public int neuralFilter_Size=2; public int neuralFilter_CutOff=0;
public int neuralFilter_OutputFileType=0; public int neuralFilter_ShowFile=1; public int neuralFilter_Blurring=2; public int neuralFilter_Sensitivity=4; public int neuralFilter_UseRelativeScore=0;
public int neuralFilter_ShowScore = 1 ; public int neuralFilter_AutoSegment=0;
//[Neural Net] public int neuralNetFilter=0; public int neuralNetFilter_symmetry=3; public int neuralNetFilter_rotationType=0; public int neuralNetFilter_translationType=0; public int neuralNetFilter_scalingType=0;
public int neuralNetFilter_sensitivity=50; public int neuralNetFilter_blurring=10; public int neuralNetFilter_internalWeightCut=100; public int neuralNetFilter_externalWeightCut=0; public int neuralNetFilter_segmentSize=0;
public int neuralNetFilter_imageType=1; public int neuralNetFilter_fileDisplayType=0; public int neuralNetFilter_autoSegment=0; public int neuralNetFilter_neuralNetMode=0; } The base class holds all parameters for the TransApplet. The main class, TransAppletParameters, has 8 pairs of functions like this: public bool setPreProcessingFilterData (Attrasoft.TransApplet70.ImagePreProcessing70.ImagePreProcessing70 ipre70);
public bool getPreProcessingFilterData (Attrasoft.TransApplet70.ImagePreProcessing70.ImagePreProcessing70 ipre70); The first function, setPreProcessingFilterData, passes the parameters in the TransAppletParameters object to a filter. The second function, getPreProcessingFilterData, gets all of the parameters in a filter and stores them into the current TransAppletParameters object. In this way, we get and set all of the parameters of a filter together. We also treat all of the filters exactly the same way.
[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. |