Beispiel #1
0
        void DoProcess()
        {
            if (!(owner.Value is OpenCVForUnityPlayMakerActions.AffineFeature))
            {
                LogError("owner is not initialized. Add Action \"newAffineFeature\".");
                return;
            }
            OpenCVForUnity.Features2dModule.AffineFeature wrapped_owner = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.AffineFeature, OpenCVForUnity.Features2dModule.AffineFeature>(owner);

            if (!(tilts.Value is OpenCVForUnityPlayMakerActions.MatOfFloat))
            {
                LogError("tilts is not initialized. Add Action \"newMatOfFloat\".");
                return;
            }
            OpenCVForUnity.CoreModule.MatOfFloat wrapped_tilts = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.MatOfFloat, OpenCVForUnity.CoreModule.MatOfFloat>(tilts);

            if (!(rolls.Value is OpenCVForUnityPlayMakerActions.MatOfFloat))
            {
                LogError("rolls is not initialized. Add Action \"newMatOfFloat\".");
                return;
            }
            OpenCVForUnity.CoreModule.MatOfFloat wrapped_rolls = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.MatOfFloat, OpenCVForUnity.CoreModule.MatOfFloat>(rolls);

            wrapped_owner.getViewParams(wrapped_tilts, wrapped_rolls);
        }
Beispiel #2
0
        /**
         * param backend The detector/extractor you want to use as backend.
         *     param maxTilt The highest power index of tilt factor. 5 is used in the paper as tilt sampling range n.
         *     param minTilt The lowest power index of tilt factor. 0 is used in the paper.
         * return automatically generated
         */
        public static AffineFeature create(Feature2D backend, int maxTilt, int minTilt)
        {
            if (backend != null)
            {
                backend.ThrowIfDisposed();
            }

            return(AffineFeature.__fromPtr__(features2d_AffineFeature_create_12(backend.getNativeObjAddr(), maxTilt, minTilt)));
        }
Beispiel #3
0
        //
        // C++: static Ptr_AffineFeature cv::AffineFeature::create(Ptr_Feature2D backend, int maxTilt = 5, int minTilt = 0, float tiltStep = 1.4142135623730951f, float rotateStepBase = 72)
        //

        /**
         * param backend The detector/extractor you want to use as backend.
         *     param maxTilt The highest power index of tilt factor. 5 is used in the paper as tilt sampling range n.
         *     param minTilt The lowest power index of tilt factor. 0 is used in the paper.
         *     param tiltStep Tilt sampling step \(\delta_t\) in Algorithm 1 in the paper.
         *     param rotateStepBase Rotation sampling step factor b in Algorithm 1 in the paper.
         * return automatically generated
         */
        public static AffineFeature create(Feature2D backend, int maxTilt, int minTilt, float tiltStep, float rotateStepBase)
        {
            if (backend != null)
            {
                backend.ThrowIfDisposed();
            }

            return(AffineFeature.__fromPtr__(features2d_AffineFeature_create_10(backend.getNativeObjAddr(), maxTilt, minTilt, tiltStep, rotateStepBase)));
        }
Beispiel #4
0
        /**
         * param backend The detector/extractor you want to use as backend.
         * return automatically generated
         */
        public static AffineFeature create(Feature2D backend)
        {
            if (backend != null)
            {
                backend.ThrowIfDisposed();
            }

            return(AffineFeature.__fromPtr__(features2d_AffineFeature_create_14(backend.getNativeObjAddr())));
        }
Beispiel #5
0
        void DoProcess()
        {
            if (!(owner.Value is OpenCVForUnityPlayMakerActions.AffineFeature))
            {
                LogError("owner is not initialized. Add Action \"newAffineFeature\".");
                return;
            }
            OpenCVForUnity.Features2dModule.AffineFeature wrapped_owner = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.AffineFeature, OpenCVForUnity.Features2dModule.AffineFeature>(owner);

            storeResult.Value = wrapped_owner.getDefaultName();
        }
Beispiel #6
0
 public AffineFeature(OpenCVForUnity.Features2dModule.AffineFeature nativeObj) : base(nativeObj)
 {
 }