Exemple #1
0
        public AlgoResultParameter()
        {
            OffsetX        = 0;
            OffsetY        = 0;
            ResultAlgoType = eAlgoType.C_NONE;
            ResultParam    = null;

            TeachOriginX = 0;
            TeachOriginY = 0;
        }
Exemple #2
0
        public AlgoResultParameter(eAlgoType _AlgoType, Object _ResultParam)
        {
            ResultParam    = _ResultParam;
            ResultAlgoType = _AlgoType;

            OffsetX      = 0;
            OffsetY      = 0;
            TeachOriginX = 0;
            TeachOriginY = 0;
        }
        public void GetInspectionParameterRef(ref InspectionParameter _InspParamDest)
        {
            if (_InspParamDest != null)
            {
                FreeInspectionParameters(ref _InspParamDest);
            }
            CParameterManager.RecipeCopy(InspParam, ref _InspParamDest);

            for (int iLoopCount = 0; iLoopCount < InspParam.InspAreaParam.Count; ++iLoopCount)
            {
                for (int jLoopCount = 0; jLoopCount < InspParam.InspAreaParam[iLoopCount].InspAlgoParam.Count; ++jLoopCount)
                {
                    eAlgoType _AlgoType = (eAlgoType)InspParam.InspAreaParam[iLoopCount].InspAlgoParam[jLoopCount].AlgoType;

                    if (eAlgoType.C_PATTERN == _AlgoType)
                    {
                    }
                }
            }
        }
Exemple #4
0
 public InspectionAlgorithmParameter(eAlgoType _AlgoType, double _ResolutionX = 0, double _ResolutionY = 0)
 {
     AlgoType      = (int)_AlgoType;
     AlgoBenchMark = 0;
     AlgoEnable    = true;
     if (_AlgoType == eAlgoType.C_PATTERN)
     {
         Algorithm = new CogPatternAlgo();
     }
     else if (_AlgoType == eAlgoType.C_BLOB)
     {
         Algorithm = new CogBlobAlgo();
     }
     else if (_AlgoType == eAlgoType.C_BLOB_REFER)
     {
         Algorithm = new CogBlobReferenceAlgo(_ResolutionX, _ResolutionY);
     }
     else if (_AlgoType == eAlgoType.C_LEAD)
     {
         Algorithm = new CogLeadAlgo();
     }
     else if (_AlgoType == eAlgoType.C_NEEDLE_FIND)
     {
         Algorithm = new CogNeedleFindAlgo();
     }
     else if (_AlgoType == eAlgoType.C_ID)
     {
         Algorithm = new CogBarCodeIDAlgo();
     }
     else if (_AlgoType == eAlgoType.C_LINE_FIND)
     {
         Algorithm = new CogLineFindAlgo();
     }
     else if (_AlgoType == eAlgoType.C_MULTI_PATTERN)
     {
         Algorithm = new CogMultiPatternAlgo();
     }
 }