コード例 #1
0
ファイル: PRectanglei.cs プロジェクト: videoai/papillon-swig
 public PRectanglei(PRectanglei other) : this(PapillonPINVOKE.new_PRectanglei__SWIG_5(PRectanglei.getCPtr(other)), true)
 {
     if (PapillonPINVOKE.SWIGPendingException.Pending)
     {
         throw PapillonPINVOKE.SWIGPendingException.Retrieve();
     }
 }
コード例 #2
0
ファイル: PUtils.cs プロジェクト: videoai/papillon-swig
    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);
    }
コード例 #3
0
ファイル: PRectanglei.cs プロジェクト: videoai/papillon-swig
    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);
    }
コード例 #4
0
ファイル: PImage.cs プロジェクト: videoai/papillon-swig
    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);
    }
コード例 #5
0
ファイル: PImage.cs プロジェクト: videoai/papillon-swig
    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);
    }
コード例 #6
0
ファイル: PUtils.cs プロジェクト: videoai/papillon-swig
    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);
    }
コード例 #7
0
ファイル: PImage.cs プロジェクト: videoai/papillon-swig
    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);
    }
コード例 #8
0
ファイル: PImage.cs プロジェクト: videoai/papillon-swig
    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);
    }
コード例 #9
0
ファイル: PUtils.cs プロジェクト: videoai/papillon-swig
    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);
    }
コード例 #10
0
ファイル: PDetector.cs プロジェクト: videoai/papillon-swig
    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);
    }
コード例 #11
0
ファイル: PRectanglei.cs プロジェクト: videoai/papillon-swig
    public float GetDiceCoefficient(PRectanglei rectangle)
    {
        float ret = PapillonPINVOKE.PRectanglei_GetDiceCoefficient(swigCPtr, PRectanglei.getCPtr(rectangle));

        if (PapillonPINVOKE.SWIGPendingException.Pending)
        {
            throw PapillonPINVOKE.SWIGPendingException.Retrieve();
        }
        return(ret);
    }
コード例 #12
0
ファイル: PRectanglei.cs プロジェクト: videoai/papillon-swig
    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);
    }
コード例 #13
0
ファイル: PImage.cs プロジェクト: videoai/papillon-swig
    public PRectanglei GetRectangle()
    {
        PRectanglei ret = new PRectanglei(PapillonPINVOKE.PImage_GetRectangle(swigCPtr), true);

        return(ret);
    }
コード例 #14
0
ファイル: PDetector.cs プロジェクト: videoai/papillon-swig
    public PRectanglei GetRegionOfInterest()
    {
        PRectanglei ret = new PRectanglei(PapillonPINVOKE.PDetector_GetRegionOfInterest(swigCPtr), true);

        return(ret);
    }
コード例 #15
0
    public PRectanglei ToPRectanglei()
    {
        PRectanglei ret = new PRectanglei(PapillonPINVOKE.PRectanglef_ToPRectanglei(swigCPtr), true);

        return(ret);
    }
コード例 #16
0
ファイル: PPolygoni.cs プロジェクト: videoai/papillon-swig
 public PPolygoni(PRectanglei r) : this(PapillonPINVOKE.new_PPolygoni__SWIG_2(PRectanglei.getCPtr(r)), true) {
   if (PapillonPINVOKE.SWIGPendingException.Pending) throw PapillonPINVOKE.SWIGPendingException.Retrieve();
 }
コード例 #17
0
ファイル: PRectanglei.cs プロジェクト: videoai/papillon-swig
 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(PRectanglei obj)
 {
     return((obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr);
 }
コード例 #18
0
ファイル: PRectanglei.cs プロジェクト: videoai/papillon-swig
    public PRectanglei Expand(int expandBy)
    {
        PRectanglei ret = new PRectanglei(PapillonPINVOKE.PRectanglei_Expand(swigCPtr, expandBy), true);

        return(ret);
    }
コード例 #19
0
ファイル: PPolygoni.cs プロジェクト: videoai/papillon-swig
 public PRectanglei GetBoundingRectangle() {
   PRectanglei ret = new PRectanglei(PapillonPINVOKE.PPolygoni_GetBoundingRectangle(swigCPtr), true);
   return ret;
 }