void DoProcess() { if (!(owner.Value is OpenCVForUnityPlayMakerActions.BOWTrainer)) { LogError("owner is not initialized. Add Action \"newBOWTrainer\"."); return; } OpenCVForUnity.Features2dModule.BOWTrainer wrapped_owner = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.BOWTrainer, OpenCVForUnity.Features2dModule.BOWTrainer>(owner); storeResult.Value = wrapped_owner.descriptorsCount(); }
void DoProcess() { if (!(owner.Value is OpenCVForUnityPlayMakerActions.BOWTrainer)) { LogError("owner is not initialized. Add Action \"newBOWTrainer\"."); return; } OpenCVForUnity.Features2dModule.BOWTrainer wrapped_owner = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.BOWTrainer, OpenCVForUnity.Features2dModule.BOWTrainer>(owner); if (!(storeResult.Value is OpenCVForUnityPlayMakerActions.Mat)) { storeResult.Value = new OpenCVForUnityPlayMakerActions.Mat(); } ((OpenCVForUnityPlayMakerActions.Mat)storeResult.Value).wrappedObject = wrapped_owner.cluster(); }
void DoProcess() { if (!(owner.Value is OpenCVForUnityPlayMakerActions.BOWTrainer)) { LogError("owner is not initialized. Add Action \"newBOWTrainer\"."); return; } OpenCVForUnity.Features2dModule.BOWTrainer wrapped_owner = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.BOWTrainer, OpenCVForUnity.Features2dModule.BOWTrainer>(owner); List <OpenCVForUnity.CoreModule.Mat> wrapped_storeResult = wrapped_owner.getDescriptors(); if (!storeResult.IsNone) { OpenCVForUnityPlayMakerActionsUtils.ConvertListToFsmArray <OpenCVForUnity.CoreModule.Mat, OpenCVForUnityPlayMakerActions.Mat>(wrapped_storeResult, storeResult); } }
void DoProcess() { if (!(owner.Value is OpenCVForUnityPlayMakerActions.BOWTrainer)) { LogError("owner is not initialized. Add Action \"newBOWTrainer\"."); return; } OpenCVForUnity.Features2dModule.BOWTrainer wrapped_owner = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.BOWTrainer, OpenCVForUnity.Features2dModule.BOWTrainer>(owner); if (!(descriptors.Value is OpenCVForUnityPlayMakerActions.Mat)) { LogError("descriptors is not initialized. Add Action \"newMat\"."); return; } OpenCVForUnity.CoreModule.Mat wrapped_descriptors = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.Mat, OpenCVForUnity.CoreModule.Mat>(descriptors); wrapped_owner.add(wrapped_descriptors); }
public BOWTrainer(OpenCVForUnity.Features2dModule.BOWTrainer nativeObj) : base(nativeObj) { }