Accord.Imaging.HoughCircleTransformation.ProcessImage C# (CSharp) Method

ProcessImage() public method

Process an image building Hough map.
Unsupported pixel format of the source image.
public ProcessImage ( Bitmap image ) : void
image System.Drawing.Bitmap Source image to process.
return void
        public void ProcessImage(Bitmap image)
        {
            // check image format
            if (image.PixelFormat != PixelFormat.Format8bppIndexed)
            {
                throw new UnsupportedImageFormatException("Unsupported pixel format of the source image.");
            }

            // lock source image
            BitmapData imageData = image.LockBits(
                new Rectangle(0, 0, image.Width, image.Height),
                ImageLockMode.ReadOnly, PixelFormat.Format8bppIndexed);

            try
            {
                // process the image
                ProcessImage(new UnmanagedImage(imageData));
            }
            finally
            {
                // unlock image
                image.UnlockBits(imageData);
            }
        }

Same methods

HoughCircleTransformation::ProcessImage ( BitmapData imageData ) : void
HoughCircleTransformation::ProcessImage ( UnmanagedImage image ) : void