C# Class Accord.Vision.Detection.HaarCascadeWriter

Automatic transcriber for Haar cascades.
This class can be used to generate code-only definitions for Haar cascades, avoiding the need for loading and parsing XML files during application startup. This class generates C# code for a class inheriting from HaarCascade which may be used to create a HaarObjectDetector.
显示文件 Open project: accord-net/framework

Public Methods

Method Description
HaarCascadeWriter ( TextWriter stream ) : System

Constructs a new HaarCascadeWriter class.

Write ( HaarCascade cascade, string className ) : void

Writes the specified cascade.

Private Methods

Method Description
writeFeature ( HaarFeatureNode node ) : void
writeRectangle ( HaarRectangle rectangle ) : void
writeStage ( int i, HaarCascadeStage stage ) : void
writeTrees ( HaarCascadeStage stage, int j ) : void

Method Details

HaarCascadeWriter() public method

Constructs a new HaarCascadeWriter class.
public HaarCascadeWriter ( TextWriter stream ) : System
stream System.IO.TextWriter The stream to write to.
return System

Write() public method

Writes the specified cascade.
public Write ( HaarCascade cascade, string className ) : void
cascade HaarCascade The cascade to write.
className string The name for the generated class.
return void