istvan-elek_Giwer/workflowBuilder/Operations/GaussFilter.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Giwer.dataStock;

namespace Giwer.workflowBuilder.Operations
{
    public class GaussFilter : SingleBandOperation
    {
        public int KernelLength { get; set; }

        public GaussFilter(GeoImageData image, int band) 
            : base(image, band)
        {
        }

        public override void Execute()
        {
            Filter GaussFilt = new Filter();
            double[,] kernel = GaussFilt.lowPassKernelGauss(KernelLength);
            outputBand = GaussFilt.ConvolSingleBand(kernel, inputBand, imageData.Ncols, imageData.Nrows);
        }
    }
}
