/// <summary>
        /// Sets a image.
        /// </summary>
        /// <param name="faceLandmarkDetector">Face landmark detector.</param>
        /// <param name="imgMat">Image mat.</param>
        public static void SetImage(FaceLandmarkDetector faceLandmarkDetector, Mat imgMat)
        {
            if (faceLandmarkDetector == null)
            {
                throw new ArgumentNullException("faceLandmarkDetector");
            }
            if (faceLandmarkDetector != null)
            {
                faceLandmarkDetector.ThrowIfDisposed();
            }

            if (imgMat == null)
            {
                throw new ArgumentNullException("imgMat");
            }
            if (imgMat != null)
            {
                imgMat.ThrowIfDisposed();
            }
            if (!imgMat.isContinuous())
            {
                throw new ArgumentException("imgMat.isContinuous() must be true.");
            }

            faceLandmarkDetector.SetImage((IntPtr)imgMat.dataAddr(), imgMat.width(), imgMat.height(), (int)imgMat.elemSize());
        }