Exemplo n.º 1
0
        void DoProcess()
        {
            if (!(owner.Value is OpenCVForUnityPlayMakerActions.RFFeatureGetter))
            {
                LogError("owner is not initialized. Add Action \"newRFFeatureGetter\".");
                return;
            }
            OpenCVForUnity.XimgprocModule.RFFeatureGetter wrapped_owner = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.RFFeatureGetter, OpenCVForUnity.XimgprocModule.RFFeatureGetter>(owner);

            if (!(src.Value is OpenCVForUnityPlayMakerActions.Mat))
            {
                LogError("src is not initialized. Add Action \"newMat\".");
                return;
            }
            OpenCVForUnity.CoreModule.Mat wrapped_src = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.Mat, OpenCVForUnity.CoreModule.Mat>(src);

            if (!(features.Value is OpenCVForUnityPlayMakerActions.Mat))
            {
                LogError("features is not initialized. Add Action \"newMat\".");
                return;
            }
            OpenCVForUnity.CoreModule.Mat wrapped_features = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.Mat, OpenCVForUnity.CoreModule.Mat>(features);

            wrapped_owner.getFeatures(wrapped_src, wrapped_features, gnrmRad.Value, gsmthRad.Value, shrink.Value, outNum.Value, gradNum.Value);
        }
Exemplo n.º 2
0
        void DoProcess()
        {
            if (!(howToGetFeatures.Value is OpenCVForUnityPlayMakerActions.RFFeatureGetter))
            {
                LogError("howToGetFeatures is not initialized. Add Action \"newRFFeatureGetter\".");
                return;
            }
            OpenCVForUnity.XimgprocModule.RFFeatureGetter wrapped_howToGetFeatures = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.RFFeatureGetter, OpenCVForUnity.XimgprocModule.RFFeatureGetter>(howToGetFeatures);

            if (!(storeResult.Value is OpenCVForUnityPlayMakerActions.StructuredEdgeDetection))
            {
                storeResult.Value = new OpenCVForUnityPlayMakerActions.StructuredEdgeDetection();
            }
            ((OpenCVForUnityPlayMakerActions.StructuredEdgeDetection)storeResult.Value).wrappedObject = OpenCVForUnity.XimgprocModule.Ximgproc.createStructuredEdgeDetection(model.Value, wrapped_howToGetFeatures);
        }
 public RFFeatureGetter(OpenCVForUnity.XimgprocModule.RFFeatureGetter nativeObj) : base(nativeObj)
 {
 }