public int AddImage(string className, HSV161616Image image)
    {
        int ret = VisionLabPINVOKE.ClassImageSet_HSV16_AddImage(swigCPtr, className, HSV161616Image.getCPtr(image));

        if (VisionLabPINVOKE.SWIGPendingException.Pending)
        {
            throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
        }
        return(ret);
    }
Пример #2
0
    public int Classify(HSV161616Image image, ref double confidency)
    {
        int ret = VisionLabPINVOKE.BPN_ImageClassifier_HSV16_Classify(swigCPtr, HSV161616Image.getCPtr(image), ref confidency);

        if (VisionLabPINVOKE.SWIGPendingException.Pending)
        {
            throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
        }
        return(ret);
    }
 public HSV161616Image(HSV161616Image image) : this(VisionLabPINVOKE.new_HSV161616Image__SWIG_3(HSV161616Image.getCPtr(image)), true)
 {
     if (VisionLabPINVOKE.SWIGPendingException.Pending)
     {
         throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
     }
 }
    public bool GetImage(string imageName, HSV161616Image image)
    {
        bool ret = VisionLabPINVOKE.VisLibCmdInt_GetImage__SWIG_10(swigCPtr, imageName, HSV161616Image.getCPtr(image));

        if (VisionLabPINVOKE.SWIGPendingException.Pending)
        {
            throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
        }
        return(ret);
    }
Пример #5
0
    public double TrainImage(double learnRate, double momentum, HSV161616Image image, int classNr)
    {
        double ret = VisionLabPINVOKE.BPN_ImageClassifier_HSV16_TrainImage(swigCPtr, learnRate, momentum, HSV161616Image.getCPtr(image), classNr);

        if (VisionLabPINVOKE.SWIGPendingException.Pending)
        {
            throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
        }
        return(ret);
    }
Пример #6
0
    public double EvaluateImage(HSV161616Image image, int classExp, ref int classRes, ref double confidency, vector_double output)
    {
        double ret = VisionLabPINVOKE.BPN_ImageClassifier_HSV16_EvaluateImage(swigCPtr, HSV161616Image.getCPtr(image), classExp, ref classRes, ref confidency, vector_double.getCPtr(output));

        if (VisionLabPINVOKE.SWIGPendingException.Pending)
        {
            throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
        }
        return(ret);
    }
Пример #7
0
    public double ClassifyOutputTab(HSV161616Image image, vector_ClassOutput outputTab)
    {
        double ret = VisionLabPINVOKE.BPN_ImageClassifier_HSV16_ClassifyOutputTab(swigCPtr, HSV161616Image.getCPtr(image), vector_ClassOutput.getCPtr(outputTab));

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