void DoProcess() { if (!(owner.Value is OpenCVForUnityPlayMakerActions.Retina)) { LogError("owner is not initialized. Add Action \"newRetina\"."); return; } OpenCVForUnity.BioinspiredModule.Retina wrapped_owner = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.Retina, OpenCVForUnity.BioinspiredModule.Retina>(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); }
//javadoc: Retina::create(inputSize, colorMode, colorSamplingMethod, useRetinaLogSampling, reductionFactor) public static Retina create(Size inputSize, bool colorMode, int colorSamplingMethod, bool useRetinaLogSampling, float reductionFactor) { #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER Retina retVal = Retina.__fromPtr__(bioinspired_Retina_create_11(inputSize.width, inputSize.height, colorMode, colorSamplingMethod, useRetinaLogSampling, reductionFactor)); return(retVal); #else return(null); #endif }
// // C++: static Ptr_Retina cv::bioinspired::Retina::create(Size inputSize) // //javadoc: Retina::create(inputSize) public static Retina create(Size inputSize) { #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER Retina retVal = Retina.__fromPtr__(bioinspired_Retina_create_15(inputSize.width, inputSize.height)); return(retVal); #else return(null); #endif }
void DoProcess() { if (!(owner.Value is OpenCVForUnityPlayMakerActions.Retina)) { LogError("owner is not initialized. Add Action \"newRetina\"."); return; } OpenCVForUnity.BioinspiredModule.Retina wrapped_owner = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.Retina, OpenCVForUnity.BioinspiredModule.Retina>(owner); wrapped_owner.setupOPLandIPLParvoChannel(colorMode.Value, normaliseOutput.Value, photoreceptorsLocalAdaptationSensitivity.Value, photoreceptorsTemporalConstant.Value, photoreceptorsSpatialConstant.Value, horizontalCellsGain.Value, HcellsTemporalConstant.Value, HcellsSpatialConstant.Value); }
void DoProcess() { if (!(owner.Value is OpenCVForUnityPlayMakerActions.Retina)) { LogError("owner is not initialized. Add Action \"newRetina\"."); return; } OpenCVForUnity.BioinspiredModule.Retina wrapped_owner = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.Retina, OpenCVForUnity.BioinspiredModule.Retina>(owner); wrapped_owner.setColorSaturation(); }
void DoProcess() { if (!(owner.Value is OpenCVForUnityPlayMakerActions.Retina)) { LogError("owner is not initialized. Add Action \"newRetina\"."); return; } OpenCVForUnity.BioinspiredModule.Retina wrapped_owner = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.Retina, OpenCVForUnity.BioinspiredModule.Retina>(owner); wrapped_owner.setupIPLMagnoChannel(normaliseOutput.Value, parasolCells_beta.Value, parasolCells_tau.Value, parasolCells_k.Value); }
void DoProcess() { if (!(owner.Value is OpenCVForUnityPlayMakerActions.Retina)) { LogError("owner is not initialized. Add Action \"newRetina\"."); return; } OpenCVForUnity.BioinspiredModule.Retina wrapped_owner = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.Retina, OpenCVForUnity.BioinspiredModule.Retina>(owner); wrapped_owner.setupIPLMagnoChannel(normaliseOutput.Value, parasolCells_beta.Value, parasolCells_tau.Value, parasolCells_k.Value, amacrinCellsTemporalCutFrequency.Value, V0CompressionParameter.Value, localAdaptintegration_tau.Value); }
void DoProcess() { if (!(owner.Value is OpenCVForUnityPlayMakerActions.Retina)) { LogError("owner is not initialized. Add Action \"newRetina\"."); return; } OpenCVForUnity.BioinspiredModule.Retina wrapped_owner = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.Retina, OpenCVForUnity.BioinspiredModule.Retina>(owner); wrapped_owner.activateMovingContoursProcessing(activate.Value); }
void DoProcess() { if (!(owner.Value is OpenCVForUnityPlayMakerActions.Retina)) { LogError("owner is not initialized. Add Action \"newRetina\"."); return; } OpenCVForUnity.BioinspiredModule.Retina wrapped_owner = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.Retina, OpenCVForUnity.BioinspiredModule.Retina>(owner); wrapped_owner.setup(retinaParameterFile.Value, applyDefaultSetupOnFailure.Value); }
void DoProcess() { if (!(owner.Value is OpenCVForUnityPlayMakerActions.Retina)) { LogError("owner is not initialized. Add Action \"newRetina\"."); return; } OpenCVForUnity.BioinspiredModule.Retina wrapped_owner = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.Retina, OpenCVForUnity.BioinspiredModule.Retina>(owner); wrapped_owner.setupOPLandIPLParvoChannel(colorMode.Value, normaliseOutput.Value); }
void DoProcess() { if (!(owner.Value is OpenCVForUnityPlayMakerActions.Retina)) { LogError("owner is not initialized. Add Action \"newRetina\"."); return; } OpenCVForUnity.BioinspiredModule.Retina wrapped_owner = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.Retina, OpenCVForUnity.BioinspiredModule.Retina>(owner); if (!(storeResult.Value is OpenCVForUnityPlayMakerActions.Size)) { storeResult.Value = new OpenCVForUnityPlayMakerActions.Size(); } ((OpenCVForUnityPlayMakerActions.Size)storeResult.Value).wrappedObject = wrapped_owner.getInputSize(); }
void DoProcess() { if (!(owner.Value is OpenCVForUnityPlayMakerActions.Retina)) { LogError("owner is not initialized. Add Action \"newRetina\"."); return; } OpenCVForUnity.BioinspiredModule.Retina wrapped_owner = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.Retina, OpenCVForUnity.BioinspiredModule.Retina>(owner); if (!(retinaOutput_magno.Value is OpenCVForUnityPlayMakerActions.Mat)) { LogError("retinaOutput_magno is not initialized. Add Action \"newMat\"."); return; } OpenCVForUnity.CoreModule.Mat wrapped_retinaOutput_magno = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.Mat, OpenCVForUnity.CoreModule.Mat>(retinaOutput_magno); wrapped_owner.getMagno(wrapped_retinaOutput_magno); }
public Retina(OpenCVForUnity.BioinspiredModule.Retina nativeObj) : base(nativeObj) { }