// 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); }
// 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)); } }
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)); } }
public static IntPtr selPrintToString(this Sel sel) { throw new NotImplementedException(); }
public static int selWriteStream(IntPtr fp, Sel sel) { throw new NotImplementedException(); }
public static int selWrite(string fname, Sel sel) { return(Native.DllImports.selWrite(fname, (HandleRef)sel)); }
public static int selGetParameters(this Sel sel, out int psy, out int psx, out int pcy, out int pcx) { throw new NotImplementedException(); }
public static int selaFindSelByName(this Sela sela, string name, out int pindex, out Sel psel) { throw new NotImplementedException(); }
public static IntPtr selGetName(this Sel sel) { throw new NotImplementedException(); }
public static Sel selCopy(this Sel sel) { throw new NotImplementedException(); }
// Display generated sel with originating image public static Pix pixDisplayHitMissSel(this Pix pixs, Sel sel, int scalefactor, uint hitcolor, uint misscolor) { throw new NotImplementedException(); }
// 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)); }
public static void selDestroy(this Sel psel) { var pointer = (IntPtr)psel; Native.DllImports.selDestroy(ref pointer); }
public static string selPrintToString(this Sel sel) { var pointer = Native.DllImports.selPrintToString((HandleRef)sel); return(Marshal.PtrToStringAnsi(pointer)); }
// Printable display of sel public static Pix selDisplayInPix(this Sel sel, int size, int gthick) { throw new NotImplementedException(); }
public static void selDestroy(this Sel psel) { throw new NotImplementedException(); }
public static int selGetTypeAtOrigin(this Sel sel, out int ptype) { throw new NotImplementedException(); }
// Extension of sela: public static int selaAddSel(this Sela sela, Sel sel, string selname, int copyflag) { throw new NotImplementedException(); }
// 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(); }
public static int selSetName(this Sel sel, string name) { throw new NotImplementedException(); }
// Rotation by multiples of 90 degrees public static Sel selRotateOrth(this Sel sel, int quads) { throw new NotImplementedException(); }
public static int selSetElement(this Sel sel, int row, int col, int type) { throw new NotImplementedException(); }
public static int selWrite(string fname, Sel sel) { throw new NotImplementedException(); }
public static int selSetOrigin(this Sel sel, int cy, int cx) { throw new NotImplementedException(); }
// 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)); }