Example #1
0
    public float GetDiceCoefficient(PRectanglei rectangle)
    {
        float ret = PapillonPINVOKE.PRectanglei_GetDiceCoefficient(swigCPtr, PRectanglei.getCPtr(rectangle));

        if (PapillonPINVOKE.SWIGPendingException.Pending)
        {
            throw PapillonPINVOKE.SWIGPendingException.Retrieve();
        }
        return(ret);
    }
Example #2
0
    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);
    }
Example #3
0
    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);
    }
Example #4
0
    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);
    }
Example #5
0
    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);
    }
Example #6
0
    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);
    }
Example #7
0
    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);
    }
Example #8
0
 public PRectanglei(PRectanglei other) : this(PapillonPINVOKE.new_PRectanglei__SWIG_5(PRectanglei.getCPtr(other)), true)
 {
     if (PapillonPINVOKE.SWIGPendingException.Pending)
     {
         throw PapillonPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Example #9
0
    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);
    }
Example #10
0
 public PPolygoni(PRectanglei r) : this(PapillonPINVOKE.new_PPolygoni__SWIG_2(PRectanglei.getCPtr(r)), true) {
   if (PapillonPINVOKE.SWIGPendingException.Pending) throw PapillonPINVOKE.SWIGPendingException.Retrieve();
 }
Example #11
0
    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);
    }
Example #12
0
    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);
    }
Example #13
0
    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);
    }