Пример #1
0
 /// <summary>
 /// Create a stereoBM
 /// </summary>
 /// <param name="preset">Preset type</param>
 /// <param name="numberOfDisparities">The number of disparities. Must be multiple of 8. Use 64 for default </param>
 /// <param name="winSize">The SAD window size. Use 19 for default</param>
 public GpuStereoBM(PresetType preset, int numberOfDisparities, int winSize)
 {
     _ptr = GpuInvoke.GpuStereoBMCreate(preset, numberOfDisparities, winSize);
 }
Пример #2
0
        /*
         * /// <summary>
         * /// Preset type
         * /// </summary>
         * public enum PresetType
         * {
         * /// <summary>
         * /// Basic
         * /// </summary>
         * BasicPreset = 0,
         * /// <summary>
         * /// prefilter xsobel
         * /// </summary>
         * PrefilterXSobel = 1
         * };*/

        /// <summary>
        /// Create a stereoBM
        /// </summary>
        /// <param name="numberOfDisparities">The number of disparities. Must be multiple of 8. Use 64 for default </param>
        /// <param name="blockSize">The SAD window size. Use 19 for default</param>
        public GpuStereoBM(int numberOfDisparities, int blockSize)
        {
            _ptr = GpuInvoke.GpuStereoBMCreate(numberOfDisparities, blockSize);
        }