Beispiel #1
0
        public static int fpixaSetPixel(this FPixa fpixa, int index, int x, int y, float val)
        {
            if (null == fpixa)
            {
                throw new ArgumentNullException("fpixa, fpix cannot be null.");
            }

            return(Native.DllImports.fpixaSetPixel((HandleRef)fpixa, index, x, y, val));
        }
Beispiel #2
0
        public static int fpixaGetFPixDimensions(this FPixa fpixa, int index, out int pw, out int ph)
        {
            if (null == fpixa)
            {
                throw new ArgumentNullException("fpixa, fpix cannot be null.");
            }

            return(Native.DllImports.fpixaGetFPixDimensions((HandleRef)fpixa, index, out pw, out ph));
        }
Beispiel #3
0
        public static IntPtr fpixaGetData(this FPixa fpixa, int index)
        {
            if (null == fpixa)
            {
                throw new ArgumentNullException("fpixa, fpix cannot be null.");
            }

            return(Native.DllImports.fpixaGetData((HandleRef)fpixa, index));
        }
Beispiel #4
0
        public static int fpixaChangeRefcount(this FPixa fpixa, int delta)
        {
            if (null == fpixa)
            {
                throw new ArgumentNullException("fpixa, fpix cannot be null.");
            }

            return(Native.DllImports.fpixaChangeRefcount((HandleRef)fpixa, delta));
        }
Beispiel #5
0
        // FPixa addition
        public static int fpixaAddFPix(this FPixa fpixa, FPix fpix, int copyflag)
        {
            if (null == fpixa ||
                null == fpix)
            {
                throw new ArgumentNullException("fpixa, fpix cannot be null.");
            }

            return(Native.DllImports.fpixaAddFPix((HandleRef)fpixa, (HandleRef)fpix, copyflag));
        }
Beispiel #6
0
        public static void fpixaDestroy(this FPixa pfpixa)
        {
            if (null == pfpixa)
            {
                throw new ArgumentNullException("pfpixa cannot be null");
            }

            var pointer = (IntPtr)pfpixa;

            Native.DllImports.fpixaDestroy(ref pointer);
        }
Beispiel #7
0
        public static FPix fpixaGetFPix(this FPixa fpixa, int index, int accesstype)
        {
            if (null == fpixa)
            {
                throw new ArgumentNullException("fpixa cannot be null.");
            }

            var pointer = Native.DllImports.fpixaGetFPix((HandleRef)fpixa, index, accesstype);

            if (IntPtr.Zero == pointer)
            {
                return(null);
            }
            else
            {
                return(new FPix(pointer));
            }
        }
Beispiel #8
0
        public static Pix fpixaConvertLABToRGB(this FPixa fpixa)
        {
            if (null == fpixa)
            {
                throw new ArgumentNullException("fpixa cannot be null.");
            }

            var pointer = Native.DllImports.fpixaConvertLABToRGB((HandleRef)fpixa);

            if (IntPtr.Zero == pointer)
            {
                return(null);
            }
            else
            {
                return(new Pix(pointer));
            }
        }
Beispiel #9
0
        public static FPixa fpixaCopy(this FPixa fpixa, int copyflag)
        {
            if (null == fpixa)
            {
                throw new ArgumentNullException("fpixa cannot be null.");
            }

            var pointer = Native.DllImports.fpixaCopy((HandleRef)fpixa, copyflag);

            if (IntPtr.Zero == pointer)
            {
                return(null);
            }
            else
            {
                return(new FPixa(pointer));
            }
        }
Beispiel #10
0
 // Top level quadtree linear statistics
 public static int pixQuadtreeMean(this Pix pixs, int nlevels, Pix pix_ma, out FPixa pfpixa)
 {
     throw new NotImplementedException();
 }
Beispiel #11
0
 // Display quadtree
 public static Pix fpixaDisplayQuadtree(this FPixa fpixa, int factor, int fontsize)
 {
     throw new NotImplementedException();
 }
Beispiel #12
0
 public static int quadtreeGetChildren(this FPixa fpixa, int level, int x, int y, out float pval00, out float pval10, out float pval01, out float pval11)
 {
     throw new NotImplementedException();
 }
Beispiel #13
0
 // Quadtree access
 public static int quadtreeGetParent(this FPixa fpixa, int level, int x, int y, out float pval)
 {
     throw new NotImplementedException();
 }
Beispiel #14
0
 public static int pixQuadtreeVariance(this Pix pixs, int nlevels, Pix pix_ma, DPix dpix_msa, out FPixa pfpixa_v, out FPixa pfpixa_rv)
 {
     throw new NotImplementedException();
 }