///<summary> Create a CascadeClassifier from the specific file</summary>
///<param name="fileName"> The name of the file that contains the CascadeClassifier</param>
public CascadeClassifier(String fileName)
{
FileInfo file = new FileInfo(fileName);
if (!file.Exists)
{
throw new FileNotFoundException(Properties.StringTable.FileNotFound, file.FullName);
}
_ptr = CvInvoke.CvCascadeClassifierCreate(fileName);
if (_ptr == IntPtr.Zero)
{
throw new NullReferenceException(String.Format(Properties.StringTable.FailToCreateHaarCascade, file.FullName));
}
}