public static string GetFacePath(Frame frame, DateTime timeStamp, int sequence)
        {
            string folderFace = FileSystemStorage.FolderForFaces(frame.cameraID, timeStamp);

            string faceFileName = FileSystemStorage.GetFaceFileName(frame.GetFileName(), sequence);

            string facePath = Path.Combine(folderFace, faceFileName);
            return facePath;
        }
        public static void SaveFrame(Frame frame)
        {
            IplImage ipl = new IplImage(frame.image);
            ipl.IsEnabledDispose = false;

            string path = frame.GetFileName();
            DateTime dt = DateTime.FromBinary(frame.timeStamp);

            string root = Path.Combine(Properties.Settings.Default.OutputPath,
                      frame.cameraID.ToString("d2"));

            string folder = FileSystemStorage.BuildDestDirectory(root, dt, Properties.Settings.Default.BigImageDirectoryName);
            if (!Directory.Exists(folder))
            {
                Directory.CreateDirectory(folder);
            }

            path = Path.Combine(folder, path);
            ipl.SaveImage(path);
        }
        public static void SaveFrame(Frame frame)
        {
            IplImage ipl = frame.image;
            ipl.IsEnabledDispose = false;

            string path = frame.GetFileName();
            DateTime dt = DateTime.FromBinary(frame.timeStamp);

            string root = RootStoragePathForCamera(frame.cameraID);
            string folder = BuildBigImgPath(root, dt);
            if (!Directory.Exists(folder))
            {
                Directory.CreateDirectory(folder);
            }

            path = Path.Combine(folder, path);
            ipl.SaveImage(path);
        }
        public static string PathForFaceImage(Frame frame, int sequence)
        {
            DateTime dt = DateTime.FromBinary(frame.timeStamp);

            string folderFace = FileSystemStorage.EnsureFolderForFacesAt(frame.cameraID, dt);

            string faceFileName = FileSystemStorage.FaceImageFileNameOf(frame.GetFileName(), sequence);

            string facePath = Path.Combine(folderFace, faceFileName);
            return facePath;
        }
        private static unsafe string GetFacePath(Frame frame, DateTime dt, int j)
        {
            string folderFace = FolderForFaces(frame.cameraID, dt);

            string faceFileName = GetFaceFileName(frame.GetFileName(), j);

            string facePath = Path.Combine(folderFace, faceFileName);
            return facePath;
        }