void DoProcess() { if (!(owner.Value is OpenCVForUnityPlayMakerActions.BOWImgDescriptorExtractor)) { LogError("owner is not initialized. Add Action \"newBOWImgDescriptorExtractor\"."); return; } OpenCVForUnity.Features2dModule.BOWImgDescriptorExtractor wrapped_owner = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.BOWImgDescriptorExtractor, OpenCVForUnity.Features2dModule.BOWImgDescriptorExtractor>(owner); if (!(image.Value is OpenCVForUnityPlayMakerActions.Mat)) { LogError("image is not initialized. Add Action \"newMat\"."); return; } OpenCVForUnity.CoreModule.Mat wrapped_image = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.Mat, OpenCVForUnity.CoreModule.Mat>(image); if (!(keypoints.Value is OpenCVForUnityPlayMakerActions.MatOfKeyPoint)) { LogError("keypoints is not initialized. Add Action \"newMatOfKeyPoint\"."); return; } OpenCVForUnity.CoreModule.MatOfKeyPoint wrapped_keypoints = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.MatOfKeyPoint, OpenCVForUnity.CoreModule.MatOfKeyPoint>(keypoints); if (!(imgDescriptor.Value is OpenCVForUnityPlayMakerActions.Mat)) { LogError("imgDescriptor is not initialized. Add Action \"newMat\"."); return; } OpenCVForUnity.CoreModule.Mat wrapped_imgDescriptor = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.Mat, OpenCVForUnity.CoreModule.Mat>(imgDescriptor); wrapped_owner.compute(wrapped_image, wrapped_keypoints, wrapped_imgDescriptor); }
void DoProcess() { if (!(owner.Value is OpenCVForUnityPlayMakerActions.BOWImgDescriptorExtractor)) { LogError("owner is not initialized. Add Action \"newBOWImgDescriptorExtractor\"."); return; } OpenCVForUnity.Features2dModule.BOWImgDescriptorExtractor wrapped_owner = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.BOWImgDescriptorExtractor, OpenCVForUnity.Features2dModule.BOWImgDescriptorExtractor>(owner); storeResult.Value = wrapped_owner.descriptorSize(); }
void DoProcess() { if (!(owner.Value is OpenCVForUnityPlayMakerActions.BOWImgDescriptorExtractor)) { LogError("owner is not initialized. Add Action \"newBOWImgDescriptorExtractor\"."); return; } OpenCVForUnity.Features2dModule.BOWImgDescriptorExtractor wrapped_owner = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.BOWImgDescriptorExtractor, OpenCVForUnity.Features2dModule.BOWImgDescriptorExtractor>(owner); if (!(vocabulary.Value is OpenCVForUnityPlayMakerActions.Mat)) { LogError("vocabulary is not initialized. Add Action \"newMat\"."); return; } OpenCVForUnity.CoreModule.Mat wrapped_vocabulary = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.Mat, OpenCVForUnity.CoreModule.Mat>(vocabulary); wrapped_owner.setVocabulary(wrapped_vocabulary); }
public BOWImgDescriptorExtractor(OpenCVForUnity.Features2dModule.BOWImgDescriptorExtractor nativeObj) : base(nativeObj) { }