/// <summary> /// Initializes a new instance of the <see cref="DifferenceOfGaussians"/> class. /// </summary> /// public DifferenceOfGaussians() { formatTranslations = new Dictionary <PixelFormat, PixelFormat>(); formatTranslations[PixelFormat.Format8bppIndexed] = PixelFormat.Format8bppIndexed; formatTranslations[PixelFormat.Format16bppGrayScale] = PixelFormat.Format16bppGrayScale; formatTranslations[PixelFormat.Format24bppRgb] = PixelFormat.Format24bppRgb; formatTranslations[PixelFormat.Format32bppRgb] = PixelFormat.Format32bppRgb; formatTranslations[PixelFormat.Format32bppArgb] = PixelFormat.Format32bppArgb; formatTranslations[PixelFormat.Format48bppRgb] = PixelFormat.Format48bppRgb; formatTranslations[PixelFormat.Format64bppArgb] = PixelFormat.Format64bppArgb; this.first = new GaussianBlur() { Size = 3, Sigma = 0.4 }; this.second = new GaussianBlur() { Size = 5, Sigma = 0.4 }; this.subtract = new Subtract(); }