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

Merge filter - get MAX of pixels in two images.

The merge 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 maximum value of corresponding pixels from provided images.

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

Sample usage:

// create filter Merge filter = new Merge( overlayImage ); // apply the filter Bitmap resultImage = filter.Apply( sourceImage );

Source image:

Overlay image:

Result image:

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

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

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

Initializes a new instance of the Merge class

Merge ( Bitmap overlayImage ) : System

Initializes a new instance of the Merge class.

Merge ( UnmanagedImage unmanagedOverlayImage ) : System

Initializes a new instance of the Merge class.

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

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

Process the filter on the specified image.

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

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

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

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

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

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

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

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

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

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