Esempio n. 1
0
 public PPolygonf(PRectanglef r) : this(PapillonPINVOKE.new_PPolygonf__SWIG_2(PRectanglef.getCPtr(r)), true)
 {
     if (PapillonPINVOKE.SWIGPendingException.Pending)
     {
         throw PapillonPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Esempio n. 2
0
    public float GetDiceCoefficient(PRectanglef i_rectangle)
    {
        float ret = PapillonPINVOKE.PRectanglef_GetDiceCoefficient(swigCPtr, PRectanglef.getCPtr(i_rectangle));

        if (PapillonPINVOKE.SWIGPendingException.Pending)
        {
            throw PapillonPINVOKE.SWIGPendingException.Retrieve();
        }
        return(ret);
    }
Esempio n. 3
0
    public PResult DrawRectangle(PRectanglef r, PColour3i color)
    {
        PResult ret = new PResult(PapillonPINVOKE.PImage_DrawRectangle__SWIG_3(swigCPtr, PRectanglef.getCPtr(r), PColour3i.getCPtr(color)), true);

        if (PapillonPINVOKE.SWIGPendingException.Pending)
        {
            throw PapillonPINVOKE.SWIGPendingException.Retrieve();
        }
        return(ret);
    }
Esempio n. 4
0
 public PRectanglef(PRectanglef other) : this(PapillonPINVOKE.new_PRectanglef__SWIG_5(PRectanglef.getCPtr(other)), true)
 {
     if (PapillonPINVOKE.SWIGPendingException.Pending)
     {
         throw PapillonPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Esempio n. 5
0
 public PFeatureRectangle(PRectanglef rectangle, string description, float confidence) : this(PapillonPINVOKE.new_PFeatureRectangle__SWIG_2(PRectanglef.getCPtr(rectangle), description, confidence), true)
 {
     if (PapillonPINVOKE.SWIGPendingException.Pending)
     {
         throw PapillonPINVOKE.SWIGPendingException.Retrieve();
     }
 }