예제 #1
0
        public Dictionary <String, List <Point> > GetNoise(TFilterType FilterType, int N = 1024, int PeriodsCount = 2)
        {
            var tempSets = new Dictionary <String, List <Point> >();

            if (noise == null)
            {
                noise = GetNoisePoints(B_1, B_1 / B_2_COEF, N, PeriodsCount);
            }

            tempSets.Add("Noise", noise);

            switch (FilterType)
            {
            case TFilterType.None:
                break;

            case TFilterType.SlidingAverage:
                tempSets.Add("Sliding Average Filter", Restorer.DoSlidingAverageFilter(noise, Sli_K));
                break;

            case TFilterType.Mediana:
                tempSets.Add("Mediana Filter", Restorer.DoMedianFilter(noise, N, Med_K));
                break;

            case TFilterType.Parabolic:
                tempSets.Add("Parabolic Smoothing", Restorer.DoParabolicSmoothing(noise));
                break;

            default:
                break;
            }

            return(tempSets);
        }
예제 #2
0
 public void SetFilter(TFilterType aType, Symbol aSymbol)
 {
     iFilterType            = aType;
     iFilterSymbol          = aSymbol;
     iCellFilter.FilterType = aType;
     //
     UpdateListView();
 }
 public void SetFilter(TFilterType aType, Symbol aSymbol)
 {
     iFilterType   = aType;
     iFilterSymbol = aSymbol;
     //
     iCol_DescriptorLength.Visible = (aType == TFilterType.EFilterShowCellsAllocatedDescriptor);
     //
     UpdateListView();
 }
예제 #4
0
        public DocumentIOFieldBuilder <TSourceType, TReturnType> Filtered <TFilterType>()
            where TFilterType : IComplexGraphType, new()
        {
            var filter = new TFilterType();

            builder.Configure(q =>
            {
                foreach (var field in filter.Fields)
                {
                    q.Arguments.Add(new QueryArgument(field.Type)
                    {
                        Description  = field.Description,
                        Name         = field.Name,
                        DefaultValue = field.DefaultValue,
                        Metadata     = field.Metadata,
                        ResolvedType = field.ResolvedType
                    });
                }
            });

            return(this);
        }
예제 #5
0
        public Dictionary <String, List <Point> > GetAmplSpectre(TFilterType FilterType, int N = 1024, int PeriodsCount = 2)
        {
            var tempSets = new Dictionary <String, List <Point> >();

            if (noise == null)
            {
                noise = GetNoisePoints(B_1, B_1 / B_2_COEF, N, PeriodsCount);
            }

            tempSets.Add("Noise Amplitude Spectre", FurieSpectres.GetAmplSpectre(noise, N));

            switch (FilterType)
            {
            case TFilterType.None:
                break;

            case TFilterType.SlidingAverage:
                var SAfiltered = Restorer.DoSlidingAverageFilter(noise, Sli_K);
                tempSets.Add("Sliding Average Filter Amplitude Spectre", FurieSpectres.GetAmplSpectre(SAfiltered, SAfiltered.Count));
                break;

            case TFilterType.Mediana:
                var Mfiltered = Restorer.DoMedianFilter(noise, N, Med_K);
                tempSets.Add("Mediana Filter Amplitude Spectre", FurieSpectres.GetAmplSpectre(Mfiltered, Mfiltered.Count));
                break;

            case TFilterType.Parabolic:
                var Pfiltered = Restorer.DoParabolicSmoothing(noise);
                tempSets.Add("Parabolic Smoothing Amplitude Spectre", FurieSpectres.GetAmplSpectre(Pfiltered, Pfiltered.Count));
                break;

            default:
                break;
            }

            return(tempSets);
        }
 public void SetFilter(TFilterType aType)
 {
     SetFilter(aType, null);
 }
 public TrackingInfoCaptioner(string aText, TFilterType aFilterType)
 {
     iText       = aText;
     iFilterType = aFilterType;
 }
예제 #8
0
 private void iCellFilter_FilterChanged(TFilterType aFilter, Symbol aSymbolOrNull)
 {
     SetFilter(aFilter, aSymbolOrNull);
 }