Ejemplo n.º 1
0
        public static int pixGetLastOnPixelInRun(this Pix pixs, int x, int y, ScanDirectionFlags direction, out int ploc)
        {
            if (null == pixs)
            {
                throw new ArgumentNullException("pixs cannot be null");
            }

            return(Native.DllImports.pixGetLastOnPixelInRun((HandleRef)pixs, x, y, (int)direction, out ploc));
        }
Ejemplo n.º 2
0
        // Measurement of edge smoothness
        public static int pixMeasureEdgeSmoothness(this Pix pixs, ScanDirectionFlags side, int minjump, int minreversal, out float pjpl, out float pjspl, out float prpl, string debugfile)
        {
            if (null == pixs)
            {
                throw new ArgumentNullException("pixs cannot be null");
            }

            return(Native.DllImports.pixMeasureEdgeSmoothness((HandleRef)pixs, (int)side, minjump, minreversal, out pjpl, out pjspl, out prpl, debugfile));
        }
Ejemplo n.º 3
0
        public static Numa pixGetEdgeProfile(this Pix pixs, ScanDirectionFlags side, string debugfile)
        {
            if (null == pixs)
            {
                throw new ArgumentNullException("pixs cannot be null");
            }

            var pointer = Native.DllImports.pixGetEdgeProfile((HandleRef)pixs, (int)side, debugfile);

            if (IntPtr.Zero == pointer)
            {
                return(null);
            }
            else
            {
                return(new Numa(pointer));
            }
        }