Пример #1
0
        //javadoc: MarrHildrethHash::create()
        public static MarrHildrethHash create()
        {
#if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
            MarrHildrethHash retVal = MarrHildrethHash.__fromPtr__(img_1hash_MarrHildrethHash_create_12());

            return(retVal);
#else
            return(null);
#endif
        }
        void DoProcess()
        {
            if (!(owner.Value is OpenCVForUnityPlayMakerActions.MarrHildrethHash))
            {
                LogError("owner is not initialized. Add Action \"newMarrHildrethHash\".");
                return;
            }
            OpenCVForUnity.Img_hashModule.MarrHildrethHash wrapped_owner = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.MarrHildrethHash, OpenCVForUnity.Img_hashModule.MarrHildrethHash>(owner);

            storeResult.Value = wrapped_owner.getAlpha();
        }
        void DoProcess()
        {
            if (!(owner.Value is OpenCVForUnityPlayMakerActions.MarrHildrethHash))
            {
                LogError("owner is not initialized. Add Action \"newMarrHildrethHash\".");
                return;
            }
            OpenCVForUnity.Img_hashModule.MarrHildrethHash wrapped_owner = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.MarrHildrethHash, OpenCVForUnity.Img_hashModule.MarrHildrethHash>(owner);

            wrapped_owner.setKernelParam(alpha.Value, scale.Value);
        }
Пример #4
0
 /**
  * return automatically generated
  */
 public static MarrHildrethHash create()
 {
     return(MarrHildrethHash.__fromPtr__(img_1hash_MarrHildrethHash_create_12()));
 }
Пример #5
0
 /**
  * param alpha int scale factor for marr wavelet (default=2).
  * return automatically generated
  */
 public static MarrHildrethHash create(float alpha)
 {
     return(MarrHildrethHash.__fromPtr__(img_1hash_MarrHildrethHash_create_11(alpha)));
 }
Пример #6
0
        //
        // C++: static Ptr_MarrHildrethHash cv::img_hash::MarrHildrethHash::create(float alpha = 2.0f, float scale = 1.0f)
        //

        /**
         * param alpha int scale factor for marr wavelet (default=2).
         *         param scale int level of scale factor (default = 1)
         * return automatically generated
         */
        public static MarrHildrethHash create(float alpha, float scale)
        {
            return(MarrHildrethHash.__fromPtr__(img_1hash_MarrHildrethHash_create_10(alpha, scale)));
        }
 public MarrHildrethHash(OpenCVForUnity.Img_hashModule.MarrHildrethHash nativeObj) : base(nativeObj)
 {
 }