Accord.Imaging.Filters.SISThreshold.ProcessFilter C# (CSharp) Method

ProcessFilter() protected method

Process the filter on the specified image.
protected ProcessFilter ( UnmanagedImage image, Rectangle rect ) : void
image UnmanagedImage Source image data.
rect System.Drawing.Rectangle Image rectangle for processing by the filter.
return void
        protected override unsafe void ProcessFilter(UnmanagedImage image, Rectangle rect)
        {
            // calculate threshold
            thresholdFilter.ThresholdValue = CalculateThreshold(image, rect);

            // thresholding
            thresholdFilter.ApplyInPlace(image, rect);
        }
    }