C# Класс AForge.Imaging.Filters.SimpleSkeletonization

Simple skeletonization filter.

The filter build simple objects' skeletons by thinning them until they have one pixel wide "bones" horizontally and vertically. The filter uses Background and Foreground colors to distinguish between object and background.

The filter accepts 8 bpp grayscale images for processing.

Sample usage:

// create filter SimpleSkeletonization filter = new SimpleSkeletonization( ); // apply the filter filter.ApplyInPlace( image );

Initial image:

Result image:

Наследование: BaseUsingCopyPartialFilter
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
SimpleSkeletonization ( ) : System

Initializes a new instance of the SimpleSkeletonization class.

SimpleSkeletonization ( byte bg, byte fg ) : System

Initializes a new instance of the SimpleSkeletonization class.

Защищенные методы

Метод Описание
ProcessFilter ( UnmanagedImage source, UnmanagedImage destination, Rectangle rect ) : void

Process the filter on the specified image.

Описание методов

ProcessFilter() защищенный Метод

Process the filter on the specified image.
protected ProcessFilter ( UnmanagedImage source, UnmanagedImage destination, Rectangle rect ) : void
source UnmanagedImage Source image data.
destination UnmanagedImage Destination image data.
rect System.Drawing.Rectangle Image rectangle for processing by the filter.
Результат void

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

Initializes a new instance of the SimpleSkeletonization class.
public SimpleSkeletonization ( ) : System
Результат System

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

Initializes a new instance of the SimpleSkeletonization class.
public SimpleSkeletonization ( byte bg, byte fg ) : System
bg byte Background pixel color.
fg byte Foreground pixel color.
Результат System