Esempio n. 1
0
        /// <summary>
        /// Compute and return the disparity map based on the correspondences found in the "process" method.
        /// </summary>
        /// <returns>Mat containing a the disparity image in grayscale.</returns>
        public Mat GetDisparity()
        {
            Mat disparity = new Mat();

            StereoInvoke.cveQuasiDenseStereoGetDisparity(_ptr, disparity);
            return(disparity);
        }
Esempio n. 2
0
        /// <summary>
        /// Compute and return the disparity map based on the correspondences found in the "process" method.
        /// </summary>
        /// <param name="disparityLvls">The level of detail in output disparity image.</param>
        /// <returns>Mat containing a the disparity image in grayscale.</returns>
        public Mat GetDisparity(byte disparityLvls = (byte)50)
        {
            Mat disparity = new Mat();

            StereoInvoke.cveQuasiDenseStereoGetDisparity(_ptr, disparityLvls, disparity);
            return(disparity);
        }