public float GetDiceCoefficient(PRectanglei rectangle) { float ret = PapillonPINVOKE.PRectanglei_GetDiceCoefficient(swigCPtr, PRectanglei.getCPtr(rectangle)); if (PapillonPINVOKE.SWIGPendingException.Pending) { throw PapillonPINVOKE.SWIGPendingException.Retrieve(); } return(ret); }
public PResult FillRectangle(PRectanglei r, PColour3i color) { PResult ret = new PResult(PapillonPINVOKE.PImage_FillRectangle(swigCPtr, PRectanglei.getCPtr(r), PColour3i.getCPtr(color)), true); if (PapillonPINVOKE.SWIGPendingException.Pending) { throw PapillonPINVOKE.SWIGPendingException.Retrieve(); } return(ret); }
public PResult Crop(PRectanglei r) { PResult ret = new PResult(PapillonPINVOKE.PImage_Crop__SWIG_1(swigCPtr, PRectanglei.getCPtr(r)), true); if (PapillonPINVOKE.SWIGPendingException.Pending) { throw PapillonPINVOKE.SWIGPendingException.Retrieve(); } return(ret); }
public static PResult FromString(string s, PRectanglei r) { PResult ret = new PResult(PapillonPINVOKE.PRectanglei_FromString(s, PRectanglei.getCPtr(r)), true); if (PapillonPINVOKE.SWIGPendingException.Pending) { throw PapillonPINVOKE.SWIGPendingException.Retrieve(); } return(ret); }
public PResult DrawRectangle(PRectanglei r, PColour3i color, int thickness) { PResult ret = new PResult(PapillonPINVOKE.PImage_DrawRectangle__SWIG_0(swigCPtr, PRectanglei.getCPtr(r), PColour3i.getCPtr(color), thickness), true); if (PapillonPINVOKE.SWIGPendingException.Pending) { throw PapillonPINVOKE.SWIGPendingException.Retrieve(); } return(ret); }
public PResult ExtractSubImage(PImage dest, PRectanglei r) { PResult ret = new PResult(PapillonPINVOKE.PImage_ExtractSubImage__SWIG_1(swigCPtr, PImage.getCPtr(dest), PRectanglei.getCPtr(r)), true); if (PapillonPINVOKE.SWIGPendingException.Pending) { throw PapillonPINVOKE.SWIGPendingException.Retrieve(); } return(ret); }
public PResult SetRegionOfInterest(PRectanglei roi) { PResult ret = new PResult(PapillonPINVOKE.PDetector_SetRegionOfInterest(swigCPtr, PRectanglei.getCPtr(roi)), true); if (PapillonPINVOKE.SWIGPendingException.Pending) { throw PapillonPINVOKE.SWIGPendingException.Retrieve(); } return(ret); }
public PRectanglei(PRectanglei other) : this(PapillonPINVOKE.new_PRectanglei__SWIG_5(PRectanglei.getCPtr(other)), true) { if (PapillonPINVOKE.SWIGPendingException.Pending) { throw PapillonPINVOKE.SWIGPendingException.Retrieve(); } }
public PRectanglei ClipBy(PRectanglei other) { PRectanglei ret = new PRectanglei(PapillonPINVOKE.PRectanglei_ClipBy(swigCPtr, PRectanglei.getCPtr(other)), true); if (PapillonPINVOKE.SWIGPendingException.Pending) { throw PapillonPINVOKE.SWIGPendingException.Retrieve(); } return(ret); }
public PPolygoni(PRectanglei r) : this(PapillonPINVOKE.new_PPolygoni__SWIG_2(PRectanglei.getCPtr(r)), true) { if (PapillonPINVOKE.SWIGPendingException.Pending) throw PapillonPINVOKE.SWIGPendingException.Retrieve(); }
public static PResult DrawRectangle(PImage image, PRectanglei rectangle, string message) { PResult ret = new PResult(PapillonPINVOKE.PUtils_DrawRectangle__SWIG_7(PImage.getCPtr(image), PRectanglei.getCPtr(rectangle), message), true); if (PapillonPINVOKE.SWIGPendingException.Pending) { throw PapillonPINVOKE.SWIGPendingException.Retrieve(); } return(ret); }
public static PResult DrawRectangle(PImage image, PRectanglei rectangle, string message, PUtils.ELabelPosition position, double fontSize) { PResult ret = new PResult(PapillonPINVOKE.PUtils_DrawRectangle__SWIG_5(PImage.getCPtr(image), PRectanglei.getCPtr(rectangle), message, (int)position, fontSize), true); if (PapillonPINVOKE.SWIGPendingException.Pending) { throw PapillonPINVOKE.SWIGPendingException.Retrieve(); } return(ret); }
public static PResult DrawRectangle(PImage image, PRectanglei rectangle, string message, PUtils.ELabelPosition position, double fontSize, int lineWidth, PColour3i rectangleColour, PColour3i labelColour, PColour3i fontColour, PImage.EFont font) { PResult ret = new PResult(PapillonPINVOKE.PUtils_DrawRectangle__SWIG_0(PImage.getCPtr(image), PRectanglei.getCPtr(rectangle), message, (int)position, fontSize, lineWidth, PColour3i.getCPtr(rectangleColour), PColour3i.getCPtr(labelColour), PColour3i.getCPtr(fontColour), (int)font), true); if (PapillonPINVOKE.SWIGPendingException.Pending) { throw PapillonPINVOKE.SWIGPendingException.Retrieve(); } return(ret); }