void DoProcess() { if (!(owner.Value is OpenCVForUnityPlayMakerActions.LearningBasedWB)) { LogError("owner is not initialized. Add Action \"newLearningBasedWB\"."); return; } OpenCVForUnity.XphotoModule.LearningBasedWB wrapped_owner = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.LearningBasedWB, OpenCVForUnity.XphotoModule.LearningBasedWB>(owner); if (!(src.Value is OpenCVForUnityPlayMakerActions.Mat)) { LogError("src is not initialized. Add Action \"newMat\"."); return; } OpenCVForUnity.CoreModule.Mat wrapped_src = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.Mat, OpenCVForUnity.CoreModule.Mat>(src); if (!(dst.Value is OpenCVForUnityPlayMakerActions.Mat)) { LogError("dst is not initialized. Add Action \"newMat\"."); return; } OpenCVForUnity.CoreModule.Mat wrapped_dst = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.Mat, OpenCVForUnity.CoreModule.Mat>(dst); wrapped_owner.extractSimpleFeatures(wrapped_src, wrapped_dst); }
//javadoc: createLearningBasedWB() public static LearningBasedWB createLearningBasedWB() { #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER LearningBasedWB retVal = LearningBasedWB.__fromPtr__(xphoto_Xphoto_createLearningBasedWB_11()); return(retVal); #else return(null); #endif }
void DoProcess() { if (!(owner.Value is OpenCVForUnityPlayMakerActions.LearningBasedWB)) { LogError("owner is not initialized. Add Action \"newLearningBasedWB\"."); return; } OpenCVForUnity.XphotoModule.LearningBasedWB wrapped_owner = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.LearningBasedWB, OpenCVForUnity.XphotoModule.LearningBasedWB>(owner); storeResult.Value = wrapped_owner.getHistBinNum(); }
void DoProcess() { if (!(owner.Value is OpenCVForUnityPlayMakerActions.LearningBasedWB)) { LogError("owner is not initialized. Add Action \"newLearningBasedWB\"."); return; } OpenCVForUnity.XphotoModule.LearningBasedWB wrapped_owner = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.LearningBasedWB, OpenCVForUnity.XphotoModule.LearningBasedWB>(owner); wrapped_owner.setRangeMaxVal(val.Value); }
public LearningBasedWB(OpenCVForUnity.XphotoModule.LearningBasedWB nativeObj) : base(nativeObj) { }