Ejemplo n.º 1
0
        //javadoc: BlockMeanHash::create()
        public static BlockMeanHash create()
        {
#if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
            BlockMeanHash retVal = BlockMeanHash.__fromPtr__(img_1hash_BlockMeanHash_create_11());

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

            wrapped_owner.setMode(mode.Value);
        }
Ejemplo n.º 3
0
        void DoProcess()
        {
            if (!(owner.Value is OpenCVForUnityPlayMakerActions.BlockMeanHash))
            {
                LogError("owner is not initialized. Add Action \"newBlockMeanHash\".");
                return;
            }
            OpenCVForUnity.Img_hashModule.BlockMeanHash wrapped_owner = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.BlockMeanHash, OpenCVForUnity.Img_hashModule.BlockMeanHash>(owner);

            if (!(storeResult.Value is OpenCVForUnityPlayMakerActions.MatOfDouble))
            {
                storeResult.Value = new OpenCVForUnityPlayMakerActions.MatOfDouble();
            }
            ((OpenCVForUnityPlayMakerActions.MatOfDouble)storeResult.Value).wrappedObject = wrapped_owner.getMean();
        }
Ejemplo n.º 4
0
 public BlockMeanHash(OpenCVForUnity.Img_hashModule.BlockMeanHash nativeObj) : base(nativeObj)
 {
 }
Ejemplo n.º 5
0
 public static BlockMeanHash create()
 {
     return(BlockMeanHash.__fromPtr__(img_1hash_BlockMeanHash_create_11()));
 }
Ejemplo n.º 6
0
        //
        // C++: static Ptr_BlockMeanHash cv::img_hash::BlockMeanHash::create(int mode = BLOCK_MEAN_HASH_MODE_0)
        //

        public static BlockMeanHash create(int mode)
        {
            return(BlockMeanHash.__fromPtr__(img_1hash_BlockMeanHash_create_10(mode)));
        }