C# 클래스 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.
파일 보기 프로젝트 열기: accord-net/framework

공개 메소드들

메소드 설명
HaarCascadeWriter ( TextWriter stream ) : System

Constructs a new HaarCascadeWriter class.

Write ( HaarCascade cascade, string className ) : void

Writes the specified cascade.

비공개 메소드들

메소드 설명
writeFeature ( HaarFeatureNode node ) : void
writeRectangle ( HaarRectangle rectangle ) : void
writeStage ( int i, HaarCascadeStage stage ) : void
writeTrees ( HaarCascadeStage stage, int j ) : void

메소드 상세

HaarCascadeWriter() 공개 메소드

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

Write() 공개 메소드

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.
리턴 void