Accord.Vision.Detection.HaarCascade.checkTiltedFeatures C# (CSharp) Method

checkTiltedFeatures() private static method

Checks if the classifier contains tilted (rotated) features
private static checkTiltedFeatures ( HaarCascadeStage stages ) : bool
stages HaarCascadeStage
return bool
        private static bool checkTiltedFeatures(HaarCascadeStage[] stages)
        {
            foreach (var stage in stages)
                foreach (var tree in stage.Trees)
                    foreach (var node in tree)
                        if (node.Feature.Tilted == true)
                            return true;
            return false;
        }