Example #1
0
 public PSizei(PSizei other) : this(PapillonPINVOKE.new_PSizei__SWIG_3(PSizei.getCPtr(other)), true)
 {
     if (PapillonPINVOKE.SWIGPendingException.Pending)
     {
         throw PapillonPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Example #2
0
 public void Resize(PSizei newSize)
 {
     PapillonPINVOKE.PFrame_Resize__SWIG_2(swigCPtr, PSizei.getCPtr(newSize));
     if (PapillonPINVOKE.SWIGPendingException.Pending)
     {
         throw PapillonPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Example #3
0
 public void Resize(PSizei newSize, PImage.EAspectRatioMode aspectRatioMode)
 {
     PapillonPINVOKE.PFrame_Resize__SWIG_1(swigCPtr, PSizei.getCPtr(newSize), (int)aspectRatioMode);
     if (PapillonPINVOKE.SWIGPendingException.Pending)
     {
         throw PapillonPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Example #4
0
 public void Keep(PSizei minBoundingBox, PSizei maxBoundingBox, string objectType, int maxNumber)
 {
     PapillonPINVOKE.PDetectionList_Keep__SWIG_0(swigCPtr, PSizei.getCPtr(minBoundingBox), PSizei.getCPtr(maxBoundingBox), objectType, maxNumber);
     if (PapillonPINVOKE.SWIGPendingException.Pending)
     {
         throw PapillonPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Example #5
0
    public PRectanglef Normalized(PSizei size)
    {
        PRectanglef ret = new PRectanglef(PapillonPINVOKE.PRectanglef_Normalized__SWIG_2(swigCPtr, PSizei.getCPtr(size)), true);

        if (PapillonPINVOKE.SWIGPendingException.Pending)
        {
            throw PapillonPINVOKE.SWIGPendingException.Retrieve();
        }
        return(ret);
    }
Example #6
0
    public static PResult FromString(string s, PSizei size)
    {
        PResult ret = new PResult(PapillonPINVOKE.PSizei_FromString(s, PSizei.getCPtr(size)), true);

        if (PapillonPINVOKE.SWIGPendingException.Pending)
        {
            throw PapillonPINVOKE.SWIGPendingException.Retrieve();
        }
        return(ret);
    }
Example #7
0
    public PResult Resize(PSizei newSize)
    {
        PResult ret = new PResult(PapillonPINVOKE.PImage_Resize__SWIG_11(swigCPtr, PSizei.getCPtr(newSize)), true);

        if (PapillonPINVOKE.SWIGPendingException.Pending)
        {
            throw PapillonPINVOKE.SWIGPendingException.Retrieve();
        }
        return(ret);
    }
Example #8
0
    public PResult Resize(PSizei newSize, PImage.EAspectRatioMode aspectRatioMode)
    {
        PResult ret = new PResult(PapillonPINVOKE.PImage_Resize__SWIG_10(swigCPtr, PSizei.getCPtr(newSize), (int)aspectRatioMode), true);

        if (PapillonPINVOKE.SWIGPendingException.Pending)
        {
            throw PapillonPINVOKE.SWIGPendingException.Retrieve();
        }
        return(ret);
    }
Example #9
0
    public PResult SetMaxDetectionSize(PSizei maxDetectionSize)
    {
        PResult ret = new PResult(PapillonPINVOKE.PDetector_SetMaxDetectionSize__SWIG_1(swigCPtr, PSizei.getCPtr(maxDetectionSize)), true);

        if (PapillonPINVOKE.SWIGPendingException.Pending)
        {
            throw PapillonPINVOKE.SWIGPendingException.Retrieve();
        }
        return(ret);
    }
Example #10
0
    public PSizei ScaleSize(float scaleFactor)
    {
        PSizei ret = new PSizei(PapillonPINVOKE.PImage_ScaleSize(swigCPtr, scaleFactor), true);

        return(ret);
    }
Example #11
0
    public PSizei GetSize()
    {
        PSizei ret = new PSizei(PapillonPINVOKE.PImage_GetSize(swigCPtr), true);

        return(ret);
    }
Example #12
0
    public PSizei ToSizei()
    {
        PSizei ret = new PSizei(PapillonPINVOKE.PSizef_ToSizei(swigCPtr), true);

        return(ret);
    }
Example #13
0
    public PSizei GetMaxDetectionSize()
    {
        PSizei ret = new PSizei(PapillonPINVOKE.PDetector_GetMaxDetectionSize(swigCPtr), true);

        return(ret);
    }
    public PSizei GetResolution()
    {
        PSizei ret = new PSizei(PapillonPINVOKE.PInputVideoStream_GetResolution(swigCPtr), true);

        return(ret);
    }
Example #15
0
    public static PSizei Zero()
    {
        PSizei ret = new PSizei(PapillonPINVOKE.PSizei_Zero(), false);

        return(ret);
    }
Example #16
0
    public PSizei GetSize()
    {
        PSizei ret = new PSizei(PapillonPINVOKE.PRectanglei_GetSize(swigCPtr), true);

        return(ret);
    }
Example #17
0
    public PSizei Clamped(int min, int max)
    {
        PSizei ret = new PSizei(PapillonPINVOKE.PSizei_Clamped(swigCPtr, min, max), true);

        return(ret);
    }
Example #18
0
    public PSizei Scaled(float factor)
    {
        PSizei ret = new PSizei(PapillonPINVOKE.PSizei_Scaled(swigCPtr, factor), true);

        return(ret);
    }
Example #19
0
 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(PSizei obj)
 {
     return((obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr);
 }
Example #20
0
    public PSizei GetMinimumInputResolution()
    {
        PSizei ret = new PSizei(PapillonPINVOKE.PAnalytics_GetMinimumInputResolution(swigCPtr), true);

        return(ret);
    }