public Color[,] GaussianFilter2(Color[,] Org_Buffer, double Sigma, int OrgX, int OrgY) { Gaussian filter = new Gaussian(); double[,] GMask = filter.CalculateNormalizedkernal(Sigma); Color[,] Tmp_Buffer = LinearFilter(Org_Buffer, GMask, OrgX, OrgY, "None"); return Tmp_Buffer; }
public Color[,] GaussianFilter1(Color[,] Org_Buffer, int MaskSize, double Sigma, int OrgX, int OrgY) { Gaussian filter = new Gaussian(); double[,] GMask = filter.CalculateGaussianKernel(Sigma, MaskSize); GMask = filter.NormalizeMatrix(GMask); Color[,] Tmp_Buffer = LinearFilter(Org_Buffer, GMask, OrgX, OrgY, "None"); return Tmp_Buffer; }