示例#1
0
        // Build the line disparity model
        public static int dewarpBuildLineModel(this L_Dewarp dew, int opensize, string debugfile)
        {
            if (null == dew)
            {
                throw new System.IO.FileNotFoundException("dew cannot be null.");
            }

            return(Native.DllImports.dewarpBuildLineModel((HandleRef)dew, opensize, debugfile));
        }
示例#2
0
        public static int dewarpPopulateFullRes(this L_Dewarp dew, Pix pix, int x, int y)
        {
            if (null == dew)
            {
                throw new ArgumentNullException("dew cannot be null.");
            }

            return(Native.DllImports.dewarpPopulateFullRes((HandleRef)dew, (HandleRef)pix, x, y));
        }
示例#3
0
        // Stripping out data and populating full res disparity
        public static int dewarpMinimize(this L_Dewarp dew)
        {
            if (null == dew)
            {
                throw new ArgumentNullException("dew cannot be null.");
            }

            return(Native.DllImports.dewarpMinimize((HandleRef)dew));
        }
示例#4
0
        // Build disparity model for slope near binding
        public static int dewarpFindHorizSlopeDisparity(this L_Dewarp dew, Pix pixb, float fractthresh, int parity)
        {
            if (null == dew ||
                null == pixb)
            {
                throw new System.IO.FileNotFoundException("dew, pixb cannot be null.");
            }

            return(Native.DllImports.dewarpFindHorizSlopeDisparity((HandleRef)dew, (HandleRef)pixb, fractthresh, parity));
        }
示例#5
0
        public static int dewarpFindHorizDisparity(this L_Dewarp dew, Ptaa ptaa)
        {
            if (null == dew ||
                null == ptaa)
            {
                throw new System.IO.FileNotFoundException("dew, ptaa cannot be null.");
            }

            return(Native.DllImports.dewarpFindHorizDisparity((HandleRef)dew, (HandleRef)ptaa));
        }
示例#6
0
        public static int dewarpDebug(this L_Dewarp dew, string subdirs, int index)
        {
            if (null == dew ||
                string.IsNullOrWhiteSpace(subdirs))
            {
                throw new ArgumentNullException("dewa, subdirs cannot be null.");
            }

            return(Native.DllImports.dewarpDebug((HandleRef)dew, subdirs, index));
        }