Example #1
0
    public static PResult DrawDetection(PImage image, PDetection detection, PColour3i colour, bool drawId, bool boundingBoxOnly)
    {
        PResult ret = new PResult(PapillonPINVOKE.PUtils_DrawDetection__SWIG_1(PImage.getCPtr(image), PDetection.getCPtr(detection), PColour3i.getCPtr(colour), drawId, boundingBoxOnly), true);

        if (PapillonPINVOKE.SWIGPendingException.Pending)
        {
            throw PapillonPINVOKE.SWIGPendingException.Retrieve();
        }
        return(ret);
    }
Example #2
0
    public static PResult DrawFeatureMap(PImage image, PFeatureMap featureMap, PColour3i colour)
    {
        PResult ret = new PResult(PapillonPINVOKE.PUtils_DrawFeatureMap__SWIG_2(PImage.getCPtr(image), PFeatureMap.getCPtr(featureMap), PColour3i.getCPtr(colour)), true);

        if (PapillonPINVOKE.SWIGPendingException.Pending)
        {
            throw PapillonPINVOKE.SWIGPendingException.Retrieve();
        }
        return(ret);
    }
Example #3
0
    public PResult DrawPolygon(PPolygonf p, PColour3i color)
    {
        PResult ret = new PResult(PapillonPINVOKE.PImage_DrawPolygon__SWIG_3(swigCPtr, PPolygonf.getCPtr(p), PColour3i.getCPtr(color)), true);

        if (PapillonPINVOKE.SWIGPendingException.Pending)
        {
            throw PapillonPINVOKE.SWIGPendingException.Retrieve();
        }
        return(ret);
    }
Example #4
0
    public PResult DrawCircle(int x, int y, int radius, PColour3i color)
    {
        PResult ret = new PResult(PapillonPINVOKE.PImage_DrawCircle__SWIG_3(swigCPtr, x, y, radius, PColour3i.getCPtr(color)), true);

        if (PapillonPINVOKE.SWIGPendingException.Pending)
        {
            throw PapillonPINVOKE.SWIGPendingException.Retrieve();
        }
        return(ret);
    }
Example #5
0
    public PResult DrawLabel(string text, PPoint2Di centre, PColour3i labelColour)
    {
        PResult ret = new PResult(PapillonPINVOKE.PImage_DrawLabel__SWIG_3(swigCPtr, text, PPoint2Di.getCPtr(centre), PColour3i.getCPtr(labelColour)), true);

        if (PapillonPINVOKE.SWIGPendingException.Pending)
        {
            throw PapillonPINVOKE.SWIGPendingException.Retrieve();
        }
        return(ret);
    }
Example #6
0
    public PResult DrawRectangle(PRectanglef r, PColour3i color, int thickness)
    {
        PResult ret = new PResult(PapillonPINVOKE.PImage_DrawRectangle__SWIG_2(swigCPtr, PRectanglef.getCPtr(r), PColour3i.getCPtr(color), thickness), true);

        if (PapillonPINVOKE.SWIGPendingException.Pending)
        {
            throw PapillonPINVOKE.SWIGPendingException.Retrieve();
        }
        return(ret);
    }
Example #7
0
    public static PImage MakeLabel(string text, double fontSize, int thickness, PColour3i labelColour, PColour3i textColor, int border, PImage.EFont font, PImage.EPixelFormat pixelFormat)
    {
        PImage ret = new PImage(PapillonPINVOKE.PUtils_MakeLabel__SWIG_0(text, fontSize, thickness, PColour3i.getCPtr(labelColour), PColour3i.getCPtr(textColor), border, (int)font, (int)pixelFormat), true);

        if (PapillonPINVOKE.SWIGPendingException.Pending)
        {
            throw PapillonPINVOKE.SWIGPendingException.Retrieve();
        }
        return(ret);
    }
Example #8
0
    public PResult DrawString(string text, PPoint2Di origin, string fontName, int fontSize, PColour3i fontColor)
    {
        PResult ret = new PResult(PapillonPINVOKE.PImage_DrawString__SWIG_2(swigCPtr, text, PPoint2Di.getCPtr(origin), fontName, fontSize, PColour3i.getCPtr(fontColor)), true);

        if (PapillonPINVOKE.SWIGPendingException.Pending)
        {
            throw PapillonPINVOKE.SWIGPendingException.Retrieve();
        }
        return(ret);
    }
Example #9
0
    public static PResult DrawLabel(PImage image, PDetection detection, string message, PColour3i backgroundColour, PColour3i fontColour, PUtils.ELabelPosition position, double fontSize, int lineWidth)
    {
        PResult ret = new PResult(PapillonPINVOKE.PUtils_DrawLabel__SWIG_9(PImage.getCPtr(image), PDetection.getCPtr(detection), message, PColour3i.getCPtr(backgroundColour), PColour3i.getCPtr(fontColour), (int)position, fontSize, lineWidth), true);

        if (PapillonPINVOKE.SWIGPendingException.Pending)
        {
            throw PapillonPINVOKE.SWIGPendingException.Retrieve();
        }
        return(ret);
    }
Example #10
0
    public static PResult DrawLabel(PImage image, PDetection detection, string message, PColour3i backgroundColour, PColour3i fontColour)
    {
        PResult ret = new PResult(PapillonPINVOKE.PUtils_DrawLabel__SWIG_12(PImage.getCPtr(image), PDetection.getCPtr(detection), message, PColour3i.getCPtr(backgroundColour), PColour3i.getCPtr(fontColour)), true);

        if (PapillonPINVOKE.SWIGPendingException.Pending)
        {
            throw PapillonPINVOKE.SWIGPendingException.Retrieve();
        }
        return(ret);
    }
Example #11
0
    public static PResult DrawLabel(PImage image, PDetection detection, string message, PUtils.ELabelPosition position, PUtils.ELabelColourScheme colourScheme, double fontSize, int lineWidth, PColour3i boundingBoxColour)
    {
        PResult ret = new PResult(PapillonPINVOKE.PUtils_DrawLabel__SWIG_1(PImage.getCPtr(image), PDetection.getCPtr(detection), message, (int)position, (int)colourScheme, fontSize, lineWidth, PColour3i.getCPtr(boundingBoxColour)), 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, int lineWidth, PColour3i rectangleColour)
    {
        PResult ret = new PResult(PapillonPINVOKE.PUtils_DrawRectangle__SWIG_3(PImage.getCPtr(image), PRectanglei.getCPtr(rectangle), message, (int)position, fontSize, lineWidth, PColour3i.getCPtr(rectangleColour)), true);

        if (PapillonPINVOKE.SWIGPendingException.Pending)
        {
            throw PapillonPINVOKE.SWIGPendingException.Retrieve();
        }
        return(ret);
    }
Example #13
0
    public static PResult DrawDetection(PImage image, PDetection detection, string message, PColour3i colour)
    {
        PResult ret = new PResult(PapillonPINVOKE.PUtils_DrawDetection__SWIG_7(PImage.getCPtr(image), PDetection.getCPtr(detection), message, PColour3i.getCPtr(colour)), true);

        if (PapillonPINVOKE.SWIGPendingException.Pending)
        {
            throw PapillonPINVOKE.SWIGPendingException.Retrieve();
        }
        return(ret);
    }
Example #14
0
    public static PResult BlurDetectionList(PImage image, PDetectionList detectionList, PColour3i color, int lineWidth)
    {
        PResult ret = new PResult(PapillonPINVOKE.PUtils_BlurDetectionList(PImage.getCPtr(image), PDetectionList.getCPtr(detectionList), PColour3i.getCPtr(color), lineWidth), true);

        if (PapillonPINVOKE.SWIGPendingException.Pending)
        {
            throw PapillonPINVOKE.SWIGPendingException.Retrieve();
        }
        return(ret);
    }
Example #15
0
    public static PImage MakeLabel(string text, double fontSize, int thickness, PColour3i labelColour)
    {
        PImage ret = new PImage(PapillonPINVOKE.PUtils_MakeLabel__SWIG_4(text, fontSize, thickness, PColour3i.getCPtr(labelColour)), true);

        if (PapillonPINVOKE.SWIGPendingException.Pending)
        {
            throw PapillonPINVOKE.SWIGPendingException.Retrieve();
        }
        return(ret);
    }
Example #16
0
    public PResult DrawString(string text, PPoint2Di origin, PImage.EFont font, PColour3i color)
    {
        PResult ret = new PResult(PapillonPINVOKE.PImage_DrawString__SWIG_1(swigCPtr, text, PPoint2Di.getCPtr(origin), (int)font, PColour3i.getCPtr(color)), true);

        if (PapillonPINVOKE.SWIGPendingException.Pending)
        {
            throw PapillonPINVOKE.SWIGPendingException.Retrieve();
        }
        return(ret);
    }
Example #17
0
    public static PResult DisplayDetectionList(PFrame frame, PDetectionList detectionList, string windowTitle, float scaleFactor, PColour3i colour, bool drawId)
    {
        PResult ret = new PResult(PapillonPINVOKE.PUtils_DisplayDetectionList__SWIG_3(PFrame.getCPtr(frame), PDetectionList.getCPtr(detectionList), windowTitle, scaleFactor, PColour3i.getCPtr(colour), drawId), true);

        if (PapillonPINVOKE.SWIGPendingException.Pending)
        {
            throw PapillonPINVOKE.SWIGPendingException.Retrieve();
        }
        return(ret);
    }
Example #18
0
    public PResult DrawLabel(string text, PPoint2Di centre, PColour3i labelColour, PColour3i textColor, PImage.EFont font, double labelScale)
    {
        PResult ret = new PResult(PapillonPINVOKE.PImage_DrawLabel__SWIG_0(swigCPtr, text, PPoint2Di.getCPtr(centre), PColour3i.getCPtr(labelColour), PColour3i.getCPtr(textColor), (int)font, labelScale), true);

        if (PapillonPINVOKE.SWIGPendingException.Pending)
        {
            throw PapillonPINVOKE.SWIGPendingException.Retrieve();
        }
        return(ret);
    }
Example #19
0
    public static PResult DisplayFirstFaceDetection(PFrame frame, PDetectionList detectionList, string windowTitle, PColour3i colour)
    {
        PResult ret = new PResult(PapillonPINVOKE.PUtils_DisplayFirstFaceDetection__SWIG_2(PFrame.getCPtr(frame), PDetectionList.getCPtr(detectionList), windowTitle, PColour3i.getCPtr(colour)), true);

        if (PapillonPINVOKE.SWIGPendingException.Pending)
        {
            throw PapillonPINVOKE.SWIGPendingException.Retrieve();
        }
        return(ret);
    }
Example #20
0
    public PResult DrawLine(int x1, int y1, int x2, int y2, PColour3i color)
    {
        PResult ret = new PResult(PapillonPINVOKE.PImage_DrawLine__SWIG_1(swigCPtr, x1, y1, x2, y2, PColour3i.getCPtr(color)), true);

        if (PapillonPINVOKE.SWIGPendingException.Pending)
        {
            throw PapillonPINVOKE.SWIGPendingException.Retrieve();
        }
        return(ret);
    }
Example #21
0
    public static PResult DisplayDetection(PDetection detection, string windowTitle, float scaleFactor, PColour3i colour, bool drawId, bool boundingBoxOnly, int lineWidth)
    {
        PResult ret = new PResult(PapillonPINVOKE.PUtils_DisplayDetection__SWIG_0(PDetection.getCPtr(detection), windowTitle, scaleFactor, PColour3i.getCPtr(colour), drawId, boundingBoxOnly, lineWidth), true);

        if (PapillonPINVOKE.SWIGPendingException.Pending)
        {
            throw PapillonPINVOKE.SWIGPendingException.Retrieve();
        }
        return(ret);
    }
Example #22
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 #23
0
    public static PResult DisplayDetection(PDetection detection, string windowTitle, float scaleFactor, PColour3i colour)
    {
        PResult ret = new PResult(PapillonPINVOKE.PUtils_DisplayDetection__SWIG_3(PDetection.getCPtr(detection), windowTitle, scaleFactor, PColour3i.getCPtr(colour)), true);

        if (PapillonPINVOKE.SWIGPendingException.Pending)
        {
            throw PapillonPINVOKE.SWIGPendingException.Retrieve();
        }
        return(ret);
    }
Example #24
0
    public PResult DrawCircle(PPoint2Df p, int radius, PColour3i color, int thickness)
    {
        PResult ret = new PResult(PapillonPINVOKE.PImage_DrawCircle__SWIG_0(swigCPtr, PPoint2Df.getCPtr(p), radius, PColour3i.getCPtr(color), thickness), true);

        if (PapillonPINVOKE.SWIGPendingException.Pending)
        {
            throw PapillonPINVOKE.SWIGPendingException.Retrieve();
        }
        return(ret);
    }
Example #25
0
    public static PResult DisplayFeatureMap(PFrame frame, PFeatureMap featureMap, string windowTitle, float scaleFactor, PColour3i colour)
    {
        PResult ret = new PResult(PapillonPINVOKE.PUtils_DisplayFeatureMap__SWIG_2(PFrame.getCPtr(frame), PFeatureMap.getCPtr(featureMap), windowTitle, scaleFactor, PColour3i.getCPtr(colour)), true);

        if (PapillonPINVOKE.SWIGPendingException.Pending)
        {
            throw PapillonPINVOKE.SWIGPendingException.Retrieve();
        }
        return(ret);
    }
Example #26
0
    public PResult DrawEllipse(int x, int y, int width, int height, PColour3i color)
    {
        PResult ret = new PResult(PapillonPINVOKE.PImage_DrawEllipse__SWIG_1(swigCPtr, x, y, width, height, PColour3i.getCPtr(color)), true);

        if (PapillonPINVOKE.SWIGPendingException.Pending)
        {
            throw PapillonPINVOKE.SWIGPendingException.Retrieve();
        }
        return(ret);
    }
Example #27
0
    public static PResult DrawDetectionList(PImage image, PDetectionList detectionList, PColour3i colour, bool drawId)
    {
        PResult ret = new PResult(PapillonPINVOKE.PUtils_DrawDetectionList__SWIG_2(PImage.getCPtr(image), PDetectionList.getCPtr(detectionList), PColour3i.getCPtr(colour), drawId), true);

        if (PapillonPINVOKE.SWIGPendingException.Pending)
        {
            throw PapillonPINVOKE.SWIGPendingException.Retrieve();
        }
        return(ret);
    }