C# Class Accord.Imaging.Filters.Intersect

Intersect filter - get MIN of pixels in two images.

The intersect 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 minimum 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 Intersect filter = new Intersect( overlayImage ); // apply the filter Bitmap resultImage = filter.Apply( sourceImage );

Source image:

Overlay image:

Result image:

Inheritance: BaseInPlaceFilter2
Show file Open project: accord-net/framework Class Usage Examples

Public Methods

Method Description
Intersect ( ) : System

Initializes a new instance of the Merge class.

Intersect ( Bitmap overlayImage ) : System

Initializes a new instance of the Merge class.

Intersect ( UnmanagedImage unmanagedOverlayImage ) : System

Initializes a new instance of the Intersect class.

Protected Methods

Method Description
ProcessFilter ( UnmanagedImage image, UnmanagedImage overlay ) : void

Process the filter on the specified image.

Private Methods

Method Description
InitFormatTranslations ( ) : void

Method Details

Intersect() public method

Initializes a new instance of the Merge class.
public Intersect ( ) : System
return System

Intersect() public method

Initializes a new instance of the Merge class.
public Intersect ( Bitmap overlayImage ) : System
overlayImage System.Drawing.Bitmap Overlay image.
return System

Intersect() public method

Initializes a new instance of the Intersect class.
public Intersect ( UnmanagedImage unmanagedOverlayImage ) : System
unmanagedOverlayImage UnmanagedImage Unmanaged overlay image.
return System

ProcessFilter() protected method

Process the filter on the specified image.
protected ProcessFilter ( UnmanagedImage image, UnmanagedImage overlay ) : void
image UnmanagedImage Source image data.
overlay UnmanagedImage Overlay image data.
return void