예제 #1
0
        void DoProcess()
        {
            if (!(owner.Value is OpenCVForUnityPlayMakerActions.DMatch))
            {
                LogError("owner is not initialized. Add Action \"newDMatch\".");
                return;
            }
            OpenCVForUnity.CoreModule.DMatch wrapped_owner = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.DMatch, OpenCVForUnity.CoreModule.DMatch>(owner);

            storeResult.Value = wrapped_owner.lessThan(new OpenCVForUnity.CoreModule.DMatch((int)it_queryIdx.Value, (int)it_trainIdx.Value, (int)it_imgIdx.Value, (float)it_distance.Value));

            Fsm.Event(storeResult.Value ? trueEvent : falseEvent);
        }
예제 #2
0
        void DoProcess()
        {
            if (!(owner.Value is OpenCVForUnityPlayMakerActions.DMatch))
            {
                LogError("owner is not initialized. Add Action \"newDMatch\".");
                return;
            }
            OpenCVForUnity.CoreModule.DMatch wrapped_owner = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.DMatch, OpenCVForUnity.CoreModule.DMatch>(owner);

            if (!(it.Value is OpenCVForUnityPlayMakerActions.DMatch))
            {
                LogError("it is not initialized. Add Action \"newDMatch\".");
                return;
            }
            OpenCVForUnity.CoreModule.DMatch wrapped_it = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.DMatch, OpenCVForUnity.CoreModule.DMatch>(it);

            storeResult.Value = wrapped_owner.lessThan(wrapped_it);

            Fsm.Event(storeResult.Value ? trueEvent : falseEvent);
        }