Example #1
0
        //javadoc: KAZE::create(extended, upright, threshold, nOctaves)
        public static KAZE create(bool extended, bool upright, float threshold, int nOctaves)
        {
#if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
            KAZE retVal = KAZE.__fromPtr__(features2d_KAZE_create_12(extended, upright, threshold, nOctaves));

            return(retVal);
#else
            return(null);
#endif
        }
Example #2
0
        //javadoc: KAZE::create()
        public static KAZE create()
        {
#if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
            KAZE retVal = KAZE.__fromPtr__(features2d_KAZE_create_16());

            return(retVal);
#else
            return(null);
#endif
        }
Example #3
0
        void DoProcess()
        {
            if (!(owner.Value is OpenCVForUnityPlayMakerActions.KAZE))
            {
                LogError("owner is not initialized. Add Action \"newKAZE\".");
                return;
            }
            OpenCVForUnity.Features2dModule.KAZE wrapped_owner = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.KAZE, OpenCVForUnity.Features2dModule.KAZE>(owner);

            wrapped_owner.setUpright(upright.Value);
        }
Example #4
0
        void DoProcess()
        {
            if (!(owner.Value is OpenCVForUnityPlayMakerActions.KAZE))
            {
                LogError("owner is not initialized. Add Action \"newKAZE\".");
                return;
            }
            OpenCVForUnity.Features2dModule.KAZE wrapped_owner = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.KAZE, OpenCVForUnity.Features2dModule.KAZE>(owner);

            storeResult.Value = wrapped_owner.getNOctaveLayers();
        }
Example #5
0
        void DoProcess()
        {
            if (!(owner.Value is OpenCVForUnityPlayMakerActions.KAZE))
            {
                LogError("owner is not initialized. Add Action \"newKAZE\".");
                return;
            }
            OpenCVForUnity.Features2dModule.KAZE wrapped_owner = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.KAZE, OpenCVForUnity.Features2dModule.KAZE>(owner);

            storeResult.Value = wrapped_owner.getExtended();

            Fsm.Event(storeResult.Value ? trueEvent : falseEvent);
        }
Example #6
0
        void DoProcess()
        {
            if (!(owner.Value is OpenCVForUnityPlayMakerActions.KAZE))
            {
                LogError("owner is not initialized. Add Action \"newKAZE\".");
                return;
            }
            OpenCVForUnity.Features2dModule.KAZE wrapped_owner = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.KAZE, OpenCVForUnity.Features2dModule.KAZE>(owner);

            if (!(storeResult.Value is OpenCVForUnityPlayMakerActions.Double))
            {
                storeResult.Value = new OpenCVForUnityPlayMakerActions.Double();
            }
            ((OpenCVForUnityPlayMakerActions.Double)storeResult.Value).wrappedObject = wrapped_owner.getThreshold();
        }
        void DoProcess()
        {
            if (!(owner.Value is OpenCVForUnityPlayMakerActions.KAZE))
            {
                LogError("owner is not initialized. Add Action \"newKAZE\".");
                return;
            }
            OpenCVForUnity.Features2dModule.KAZE wrapped_owner = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.KAZE, OpenCVForUnity.Features2dModule.KAZE>(owner);

            if (!(threshold.Value is OpenCVForUnityPlayMakerActions.Double))
            {
                LogError("threshold is not initialized. Add Action \"newDouble\".");
                return;
            }
            System.Double wrapped_threshold = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.Double, System.Double>(threshold);

            wrapped_owner.setThreshold(wrapped_threshold);
        }
 public KAZE(OpenCVForUnity.Features2dModule.KAZE nativeObj) : base(nativeObj)
 {
 }
Example #9
0
        //
        // C++: static Ptr_KAZE cv::KAZE::create(bool extended = false, bool upright = false, float threshold = 0.001f, int nOctaves = 4, int nOctaveLayers = 4, KAZE_DiffusivityType diffusivity = KAZE::DIFF_PM_G2)
        //

        /**
         * The KAZE constructor
         *
         *     param extended Set to enable extraction of extended (128-byte) descriptor.
         *     param upright Set to enable use of upright descriptors (non rotation-invariant).
         *     param threshold Detector response threshold to accept point
         *     param nOctaves Maximum octave evolution of the image
         *     param nOctaveLayers Default number of sublevels per scale level
         *     param diffusivity Diffusivity type. DIFF_PM_G1, DIFF_PM_G2, DIFF_WEICKERT or
         *     DIFF_CHARBONNIER
         * return automatically generated
         */
        public static KAZE create(bool extended, bool upright, float threshold, int nOctaves, int nOctaveLayers, int diffusivity)
        {
            return(KAZE.__fromPtr__(features2d_KAZE_create_10(extended, upright, threshold, nOctaves, nOctaveLayers, diffusivity)));
        }
Example #10
0
 /**
  * The KAZE constructor
  *
  *     DIFF_CHARBONNIER
  * return automatically generated
  */
 public static KAZE create()
 {
     return(KAZE.__fromPtr__(features2d_KAZE_create_16()));
 }
Example #11
0
 /**
  * The KAZE constructor
  *
  *     param extended Set to enable extraction of extended (128-byte) descriptor.
  *     DIFF_CHARBONNIER
  * return automatically generated
  */
 public static KAZE create(bool extended)
 {
     return(KAZE.__fromPtr__(features2d_KAZE_create_15(extended)));
 }
Example #12
0
 /**
  * The KAZE constructor
  *
  *     param extended Set to enable extraction of extended (128-byte) descriptor.
  *     param upright Set to enable use of upright descriptors (non rotation-invariant).
  *     DIFF_CHARBONNIER
  * return automatically generated
  */
 public static KAZE create(bool extended, bool upright)
 {
     return(KAZE.__fromPtr__(features2d_KAZE_create_14(extended, upright)));
 }
Example #13
0
 /**
  * The KAZE constructor
  *
  *     param extended Set to enable extraction of extended (128-byte) descriptor.
  *     param upright Set to enable use of upright descriptors (non rotation-invariant).
  *     param threshold Detector response threshold to accept point
  *     DIFF_CHARBONNIER
  * return automatically generated
  */
 public static KAZE create(bool extended, bool upright, float threshold)
 {
     return(KAZE.__fromPtr__(features2d_KAZE_create_13(extended, upright, threshold)));
 }
Example #14
0
 /**
  * The KAZE constructor
  *
  *     param extended Set to enable extraction of extended (128-byte) descriptor.
  *     param upright Set to enable use of upright descriptors (non rotation-invariant).
  *     param threshold Detector response threshold to accept point
  *     param nOctaves Maximum octave evolution of the image
  *     DIFF_CHARBONNIER
  * return automatically generated
  */
 public static KAZE create(bool extended, bool upright, float threshold, int nOctaves)
 {
     return(KAZE.__fromPtr__(features2d_KAZE_create_12(extended, upright, threshold, nOctaves)));
 }