Example #1
0
        // Binary composed morphological(raster) ops with brick Sels
        public static int selectComposableSels(int size, int direction, out Sel psel1, out Sel psel2)
        {
            IntPtr psel1Ptr, psel2Ptr;
            var    result = Native.DllImports.selectComposableSels(size, direction, out psel1Ptr, out psel2Ptr);

            psel1 = new Sel(psel1Ptr);
            psel2 = new Sel(psel2Ptr);
            return(result);
        }
Example #2
0
        // Extension of pixa by iterative erosion or dilation(and by scaling)
        public static Pixa pixaExtendByMorph(this Pixa pixas, int type, int niters, Sel sel, int include)
        {
            if (null == pixas)
            {
                throw new ArgumentNullException("pixas cannot be null.");
            }

            var pointer = Native.DllImports.pixaExtendByMorph((HandleRef)pixas, type, niters, (HandleRef)sel, include);

            if (IntPtr.Zero == pointer)
            {
                return(null);
            }
            else
            {
                return(new Pixa(pointer));
            }
        }
Example #3
0
        public static Pix pixClose(this Pix pixd, Pix pixs, Sel sel)
        {
            if (null == pixs ||
                null == sel)
            {
                throw new ArgumentNullException("pixs, sel cannot be null.");
            }

            var pointer = Native.DllImports.pixClose((HandleRef)pixd, (HandleRef)pixs, (HandleRef)sel);

            if (IntPtr.Zero == pointer)
            {
                return(null);
            }
            else
            {
                return(new Pix(pointer));
            }
        }
Example #4
0
 public static IntPtr selPrintToString(this Sel sel)
 {
     throw new NotImplementedException();
 }
Example #5
0
 public static int selWriteStream(IntPtr fp, Sel sel)
 {
     throw new NotImplementedException();
 }
Example #6
0
 public static int selWrite(string fname, Sel sel)
 {
     return(Native.DllImports.selWrite(fname, (HandleRef)sel));
 }
Example #7
0
 public static int selGetParameters(this Sel sel, out int psy, out int psx, out int pcy, out int pcx)
 {
     throw new NotImplementedException();
 }
Example #8
0
 public static int selaFindSelByName(this Sela sela, string name, out int pindex, out Sel psel)
 {
     throw new NotImplementedException();
 }
Example #9
0
 public static IntPtr selGetName(this Sel sel)
 {
     throw new NotImplementedException();
 }
Example #10
0
 public static Sel selCopy(this Sel sel)
 {
     throw new NotImplementedException();
 }
Example #11
0
 // Display generated sel with originating image
 public static Pix pixDisplayHitMissSel(this Pix pixs, Sel sel, int scalefactor, uint hitcolor, uint misscolor)
 {
     throw new NotImplementedException();
 }
Example #12
0
 // Extension of sela:
 public static int selaAddSel(this Sela sela, Sel sel, string selname, int copyflag)
 {
     return(Native.DllImports.selaAddSel((HandleRef)sela, (HandleRef)sel, selname, copyflag));
 }
Example #13
0
        public static void selDestroy(this Sel psel)
        {
            var pointer = (IntPtr)psel;

            Native.DllImports.selDestroy(ref pointer);
        }
Example #14
0
        public static string selPrintToString(this Sel sel)
        {
            var pointer = Native.DllImports.selPrintToString((HandleRef)sel);

            return(Marshal.PtrToStringAnsi(pointer));
        }
Example #15
0
 // Printable display of sel
 public static Pix selDisplayInPix(this Sel sel, int size, int gthick)
 {
     throw new NotImplementedException();
 }
Example #16
0
 public static void selDestroy(this Sel psel)
 {
     throw new NotImplementedException();
 }
Example #17
0
 public static int selGetTypeAtOrigin(this Sel sel, out int ptype)
 {
     throw new NotImplementedException();
 }
Example #18
0
 // Extension of sela:
 public static int selaAddSel(this Sela sela, Sel sel, string selname, int copyflag)
 {
     throw new NotImplementedException();
 }
Example #19
0
 // Max translations for erosion and hmt
 public static int selFindMaxTranslations(this Sel sel, out int pxp, out int pyp, out int pxn, out int pyn)
 {
     throw new NotImplementedException();
 }
Example #20
0
 public static int selSetName(this Sel sel, string name)
 {
     throw new NotImplementedException();
 }
Example #21
0
 // Rotation by multiples of 90 degrees
 public static Sel selRotateOrth(this Sel sel, int quads)
 {
     throw new NotImplementedException();
 }
Example #22
0
 public static int selSetElement(this Sel sel, int row, int col, int type)
 {
     throw new NotImplementedException();
 }
Example #23
0
 public static int selWrite(string fname, Sel sel)
 {
     throw new NotImplementedException();
 }
Example #24
0
 public static int selSetOrigin(this Sel sel, int cy, int cx)
 {
     throw new NotImplementedException();
 }
Example #25
0
        // Rotation by multiples of 90 degrees
        public static Sel selRotateOrth(this Sel sel, int quads)
        {
            var pointer = Native.DllImports.selRotateOrth((HandleRef)sel, quads);

            return(new Sel(pointer));
        }