C# Class Accord.Imaging.Filters.RotateChannels

Rotate RGB channels.

The filter rotates RGB channels: red channel is replaced with green, green channel is replaced with blue, blue channel is replaced with red.

The filter accepts 24/32 bpp color images for processing.

Sample usage:

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

Initial image:

Result image:

Inheritance: BaseInPlacePartialFilter
Mostra file Open project: accord-net/framework

Public Methods

Method Description
RotateChannels ( ) : System

Initializes a new instance of the RotateChannels class.

Protected Methods

Method Description
ProcessFilter ( UnmanagedImage image, Rectangle rect ) : void

Process the filter on the specified image.

Method Details

ProcessFilter() protected method

Process the filter on the specified image.
protected ProcessFilter ( UnmanagedImage image, Rectangle rect ) : void
image UnmanagedImage Source image data.
rect System.Drawing.Rectangle Image rectangle for processing by the filter.
return void

RotateChannels() public method

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