C# Class Accord.Imaging.IntegralImage2

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

Public Methods

Method Description
Dispose ( ) : void

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

FromBitmap ( Bitmap image ) : IntegralImage2

Constructs a new Integral image from a Bitmap image.

FromBitmap ( Bitmap image, bool computeTilted ) : IntegralImage2

Constructs a new Integral image from a Bitmap image.

FromBitmap ( Bitmap image, int channel ) : IntegralImage2

Constructs a new Integral image from a Bitmap image.

FromBitmap ( Bitmap image, int channel, bool computeTilted ) : IntegralImage2

Constructs a new Integral image from a Bitmap image.

FromBitmap ( BitmapData imageData ) : IntegralImage2

Constructs a new Integral image from a BitmapData image.

FromBitmap ( BitmapData imageData, bool computeTilted ) : IntegralImage2

Constructs a new Integral image from a BitmapData image.

FromBitmap ( BitmapData imageData, int channel ) : IntegralImage2

Constructs a new Integral image from a BitmapData image.

FromBitmap ( BitmapData imageData, int channel, bool computeTilted ) : IntegralImage2

Constructs a new Integral image from a BitmapData image.

FromBitmap ( UnmanagedImage image ) : IntegralImage2

Constructs a new Integral image from an unmanaged image.

FromBitmap ( UnmanagedImage image, bool computeTilted ) : IntegralImage2

Constructs a new Integral image from an unmanaged image.

FromBitmap ( UnmanagedImage image, int channel ) : IntegralImage2

Constructs a new Integral image from an unmanaged image.

FromBitmap ( UnmanagedImage image, int channel, bool computeTilted ) : IntegralImage2

Constructs a new Integral image from an unmanaged image.

GetSum ( int x, int y, int width, int height ) : long

Gets the sum of the pixels in a rectangle of the Integral image.

GetSum2 ( int x, int y, int width, int height ) : long

Gets the sum of the squared pixels in a rectangle of the Integral image.

GetSumT ( int x, int y, int width, int height ) : long

Gets the sum of the pixels in a tilted rectangle of the Integral image.

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Releases unmanaged and - optionally - managed resources

IntegralImage2 ( int width, int height, bool computeTilted ) : System

Constructs a new Integral image of the given size.

Method Details

Dispose() public method

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public Dispose ( ) : void
return void

Dispose() protected method

Releases unmanaged and - optionally - managed resources
protected Dispose ( bool disposing ) : void
disposing bool true to release both managed /// and unmanaged resources; false to release only unmanaged /// resources.
return void

FromBitmap() public static method

Constructs a new Integral image from a Bitmap image.
public static FromBitmap ( Bitmap image ) : IntegralImage2
image System.Drawing.Bitmap The source image from where the integral image should be computed.
return IntegralImage2

FromBitmap() public static method

Constructs a new Integral image from a Bitmap image.
public static FromBitmap ( Bitmap image, bool computeTilted ) : IntegralImage2
image System.Drawing.Bitmap The source image from where the integral image should be computed.
computeTilted bool True to compute the tilted version of the integral image, /// false otherwise. Default is false.
return IntegralImage2

FromBitmap() public static method

Constructs a new Integral image from a Bitmap image.
public static FromBitmap ( Bitmap image, int channel ) : IntegralImage2
image System.Drawing.Bitmap The source image from where the integral image should be computed.
channel int The image channel to consider in the computations. Default is 0.
return IntegralImage2

FromBitmap() public static method

Constructs a new Integral image from a Bitmap image.
public static FromBitmap ( Bitmap image, int channel, bool computeTilted ) : IntegralImage2
image System.Drawing.Bitmap The source image from where the integral image should be computed.
channel int The image channel to consider in the computations. Default is 0.
computeTilted bool True to compute the tilted version of the integral image, /// false otherwise. Default is false.
return IntegralImage2

FromBitmap() public static method

Constructs a new Integral image from a BitmapData image.
public static FromBitmap ( BitmapData imageData ) : IntegralImage2
imageData System.Drawing.Imaging.BitmapData The source image from where the integral image should be computed.
return IntegralImage2

FromBitmap() public static method

Constructs a new Integral image from a BitmapData image.
public static FromBitmap ( BitmapData imageData, bool computeTilted ) : IntegralImage2
imageData System.Drawing.Imaging.BitmapData The source image from where the integral image should be computed.
computeTilted bool True to compute the tilted version of the integral image, /// false otherwise. Default is false.
return IntegralImage2

FromBitmap() public static method

Constructs a new Integral image from a BitmapData image.
public static FromBitmap ( BitmapData imageData, int channel ) : IntegralImage2
imageData System.Drawing.Imaging.BitmapData The source image from where the integral image should be computed.
channel int The image channel to consider in the computations. Default is 0.
return IntegralImage2

FromBitmap() public static method

Constructs a new Integral image from a BitmapData image.
public static FromBitmap ( BitmapData imageData, int channel, bool computeTilted ) : IntegralImage2
imageData System.Drawing.Imaging.BitmapData The source image from where the integral image should be computed.
channel int The image channel to consider in the computations. Default is 0.
computeTilted bool True to compute the tilted version of the integral image, /// false otherwise. Default is false.
return IntegralImage2

FromBitmap() public static method

Constructs a new Integral image from an unmanaged image.
public static FromBitmap ( UnmanagedImage image ) : IntegralImage2
image UnmanagedImage The source image from where the integral image should be computed.
return IntegralImage2

FromBitmap() public static method

Constructs a new Integral image from an unmanaged image.
public static FromBitmap ( UnmanagedImage image, bool computeTilted ) : IntegralImage2
image UnmanagedImage The source image from where the integral image should be computed.
computeTilted bool True to compute the tilted version of the integral image, /// false otherwise. Default is false.
return IntegralImage2

FromBitmap() public static method

Constructs a new Integral image from an unmanaged image.
public static FromBitmap ( UnmanagedImage image, int channel ) : IntegralImage2
image UnmanagedImage The source image from where the integral image should be computed.
channel int The image channel to consider in the computations. Default is 0.
return IntegralImage2

FromBitmap() public static method

Constructs a new Integral image from an unmanaged image.
public static FromBitmap ( UnmanagedImage image, int channel, bool computeTilted ) : IntegralImage2
image UnmanagedImage The source image from where the integral image should be computed.
channel int The image channel to consider in the computations. Default is 0.
computeTilted bool True to compute the tilted version of the integral image, /// false otherwise. Default is false.
return IntegralImage2

GetSum() public method

Gets the sum of the pixels in a rectangle of the Integral image.
public GetSum ( int x, int y, int width, int height ) : long
x int The horizontal position of the rectangle x.
y int The vertical position of the rectangle y.
width int The rectangle's width w.
height int The rectangle's height h.
return long

GetSum2() public method

Gets the sum of the squared pixels in a rectangle of the Integral image.
public GetSum2 ( int x, int y, int width, int height ) : long
x int The horizontal position of the rectangle x.
y int The vertical position of the rectangle y.
width int The rectangle's width w.
height int The rectangle's height h.
return long

GetSumT() public method

Gets the sum of the pixels in a tilted rectangle of the Integral image.
public GetSumT ( int x, int y, int width, int height ) : long
x int The horizontal position of the rectangle x.
y int The vertical position of the rectangle y.
width int The rectangle's width w.
height int The rectangle's height h.
return long

IntegralImage2() protected method

Constructs a new Integral image of the given size.
protected IntegralImage2 ( int width, int height, bool computeTilted ) : System
width int
height int
computeTilted bool
return System