示例#1
0
    public double EvaluateImage(Int8Image image, int classExp, ref int classRes, ref double confidency, vector_double output)
    {
        double ret = VisionLabPINVOKE.BPN_ImageClassifier_Int8_EvaluateImage(swigCPtr, Int8Image.getCPtr(image), classExp, ref classRes, ref confidency, vector_double.getCPtr(output));

        if (VisionLabPINVOKE.SWIGPendingException.Pending)
        {
            throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
        }
        return(ret);
    }
    public int AddImage(string className, Int8Image image)
    {
        int ret = VisionLabPINVOKE.ClassFeatureSet_Int8_AddImage(swigCPtr, className, Int8Image.getCPtr(image));

        if (VisionLabPINVOKE.SWIGPendingException.Pending)
        {
            throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
        }
        return(ret);
    }
示例#3
0
    public double ClassifyOutputTab(Int8Image image, vector_ClassOutput outputTab)
    {
        double ret = VisionLabPINVOKE.BPN_ImageClassifier_Int8_ClassifyOutputTab(swigCPtr, Int8Image.getCPtr(image), vector_ClassOutput.getCPtr(outputTab));

        if (VisionLabPINVOKE.SWIGPendingException.Pending)
        {
            throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
        }
        return(ret);
    }
    public bool GetImage(string imageName, Int8Image image)
    {
        bool ret = VisionLabPINVOKE.VisLibCmdInt_GetImage__SWIG_2(swigCPtr, imageName, Int8Image.getCPtr(image));

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