C# Class Accord.Vision.Detection.HaarCascade

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

Public Methods

Method Description
Clone ( ) : object

Creates a new object that is a copy of the current instance.

FromXml ( Stream stream ) : HaarCascade

Loads a HaarCascade from a OpenCV-compatible XML file.

FromXml ( TextReader stringReader ) : HaarCascade

Loads a HaarCascade from a OpenCV-compatible XML file.

FromXml ( string path ) : HaarCascade

Loads a HaarCascade from a OpenCV-compatible XML file.

HaarCascade ( int baseWidth, int baseHeight, HaarCascadeStage stages ) : System

Constructs a new Haar Cascade.

ToCode ( TextWriter textWriter, string className ) : void

Saves a HaarCascade to C# code.

ToCode ( string path, string className ) : void

Saves a HaarCascade to C# code.

Protected Methods

Method Description
HaarCascade ( int baseWidth, int baseHeight ) : System

Constructs a new Haar Cascade.

Private Methods

Method Description
checkTiltedFeatures ( HaarCascadeStage stages ) : bool

Checks if the classifier contains tilted (rotated) features

Method Details

Clone() public method

Creates a new object that is a copy of the current instance.
public Clone ( ) : object
return object

FromXml() public static method

Loads a HaarCascade from a OpenCV-compatible XML file.
public static FromXml ( Stream stream ) : HaarCascade
stream Stream /// A containing the file stream /// for the xml definition of the classifier to be loaded.
return HaarCascade

FromXml() public static method

Loads a HaarCascade from a OpenCV-compatible XML file.
public static FromXml ( TextReader stringReader ) : HaarCascade
stringReader System.IO.TextReader /// A containing the file stream /// for the xml definition of the classifier to be loaded.
return HaarCascade

FromXml() public static method

Loads a HaarCascade from a OpenCV-compatible XML file.
public static FromXml ( string path ) : HaarCascade
path string /// The file path for the xml definition of the classifier to be loaded.
return HaarCascade

HaarCascade() protected method

Constructs a new Haar Cascade.
protected HaarCascade ( int baseWidth, int baseHeight ) : System
baseWidth int Base feature width.
baseHeight int Base feature height.
return System

HaarCascade() public method

Constructs a new Haar Cascade.
public HaarCascade ( int baseWidth, int baseHeight, HaarCascadeStage stages ) : System
baseWidth int Base feature width.
baseHeight int Base feature height.
stages HaarCascadeStage Haar-like features classification stages.
return System

ToCode() public method

Saves a HaarCascade to C# code.
public ToCode ( TextWriter textWriter, string className ) : void
textWriter System.IO.TextWriter
className string
return void

ToCode() public method

Saves a HaarCascade to C# code.
public ToCode ( string path, string className ) : void
path string
className string
return void