C# Класс Accord.Imaging.Filters.Divide

Divide filter - divide pixel values of two images.

The divide filter takes two images (source and overlay images) of the same size and pixel format and produces an image, where each pixel equals to the division value of corresponding pixels from provided images:

- For 8bpp: (srcPix * 255f + 1f) / (ovrPix + 1f), - For 16bpp: (srcPix * 65535f + 1f) / (ovrPix + 1f).

The filter accepts 8 and 16 bpp grayscale images and 24, 32, 48 and 64 bpp color images for processing.

Sample usage:

// create filter Divide filter = new Divide(overlayImage); // apply the filter Bitmap resultImage = filter.Apply(sourceImage);
Наследование: BaseInPlaceFilter2
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
Divide ( ) : System.Collections.Generic

Initializes a new instance of the Divide class.

Divide ( Bitmap overlayImage ) : System.Collections.Generic

Initializes a new instance of the Divide class.

Divide ( UnmanagedImage unmanagedOverlayImage ) : System.Collections.Generic

Initializes a new instance of the Divide class.

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

Метод Описание
ProcessFilter ( UnmanagedImage image, UnmanagedImage overlay ) : void

Process the filter on the specified image.

Приватные методы

Метод Описание
InitFormatTranslations ( ) : void

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

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

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

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

Initializes a new instance of the Divide class.
public Divide ( Bitmap overlayImage ) : System.Collections.Generic
overlayImage System.Drawing.Bitmap Overlay image
Результат System.Collections.Generic

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

Initializes a new instance of the Divide class.
public Divide ( UnmanagedImage unmanagedOverlayImage ) : System.Collections.Generic
unmanagedOverlayImage UnmanagedImage Unmanaged overlay image.
Результат System.Collections.Generic

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

Process the filter on the specified image.
protected ProcessFilter ( UnmanagedImage image, UnmanagedImage overlay ) : void
image UnmanagedImage Source image data.
overlay UnmanagedImage Overlay image data.
Результат void