コード例 #1
0
        void DoProcess()
        {
            if (!(owner.Value is OpenCVForUnityPlayMakerActions.RetinaFastToneMapping))
            {
                LogError("owner is not initialized. Add Action \"newRetinaFastToneMapping\".");
                return;
            }
            OpenCVForUnity.BioinspiredModule.RetinaFastToneMapping wrapped_owner = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.RetinaFastToneMapping, OpenCVForUnity.BioinspiredModule.RetinaFastToneMapping>(owner);

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

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

            wrapped_owner.applyFastToneMapping(wrapped_inputImage, wrapped_outputToneMappedImage);
        }
コード例 #2
0
        //
        // C++: static Ptr_RetinaFastToneMapping cv::bioinspired::RetinaFastToneMapping::create(Size inputSize)
        //

        //javadoc: RetinaFastToneMapping::create(inputSize)
        public static RetinaFastToneMapping create(Size inputSize)
        {
#if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
            RetinaFastToneMapping retVal = RetinaFastToneMapping.__fromPtr__(bioinspired_RetinaFastToneMapping_create_10(inputSize.width, inputSize.height));

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

            wrapped_owner.setup();
        }
        void DoProcess()
        {
            if (!(owner.Value is OpenCVForUnityPlayMakerActions.RetinaFastToneMapping))
            {
                LogError("owner is not initialized. Add Action \"newRetinaFastToneMapping\".");
                return;
            }
            OpenCVForUnity.BioinspiredModule.RetinaFastToneMapping wrapped_owner = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.RetinaFastToneMapping, OpenCVForUnity.BioinspiredModule.RetinaFastToneMapping>(owner);

            wrapped_owner.setup(photoreceptorsNeighborhoodRadius.Value, ganglioncellsNeighborhoodRadius.Value, meanLuminanceModulatorK.Value);
        }
コード例 #5
0
        //
        // C++: static Ptr_RetinaFastToneMapping cv::bioinspired::RetinaFastToneMapping::create(Size inputSize)
        //

        public static RetinaFastToneMapping create(Size inputSize)
        {
            return(RetinaFastToneMapping.__fromPtr__(bioinspired_RetinaFastToneMapping_create_10(inputSize.width, inputSize.height)));
        }
 public RetinaFastToneMapping(OpenCVForUnity.BioinspiredModule.RetinaFastToneMapping nativeObj) : base(nativeObj)
 {
 }