AForge.Imaging.Filters.OtsuThreshold.CalculateThreshold C# (CSharp) Метод

CalculateThreshold() публичный Метод

Calculate binarization threshold for the given image.

The method is used to calculate binarization threshold only. The threshold later may be applied to the image using Threshold image processing filter.

Source pixel format is not supported by the routine. It should be /// 8 bpp grayscale (indexed) image.
public CalculateThreshold ( BitmapData image, Rectangle rect ) : int
image System.Drawing.Imaging.BitmapData Image to calculate binarization threshold for.
rect System.Drawing.Rectangle Rectangle to calculate binarization threshold for.
Результат int
        public int CalculateThreshold( BitmapData image, Rectangle rect )
        {
            return CalculateThreshold( new UnmanagedImage( image ), rect );
        }

Same methods

OtsuThreshold::CalculateThreshold ( Bitmap image, Rectangle rect ) : int
OtsuThreshold::CalculateThreshold ( UnmanagedImage image, Rectangle rect ) : int