public HaarObjectDetector(HaarCascade cascade, int minSize,
ObjectDetectorSearchMode searchMode, float scaleFactor,
ObjectDetectorScalingMode scalingMode)
{
this.classifier = new HaarClassifier(cascade);
this.minSize = new Size(minSize, minSize);
this.searchMode = searchMode;
this.ScalingMode = scalingMode;
this.factor = scaleFactor;
this.detectedObjects = new List<Rectangle>();
this.baseWidth = cascade.Width;
this.baseHeight = cascade.Height;
this.match = new GroupMatching(0, 0.2);
#if NET35
this.parallel = false;
#else
this.parallel = true;
#endif
}
#endregion