void DoProcess() { if (!(owner.Value is OpenCVForUnityPlayMakerActions.ImgHashBase)) { LogError("owner is not initialized. Add Action \"newImgHashBase\"."); return; } OpenCVForUnity.Img_hashModule.ImgHashBase wrapped_owner = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.ImgHashBase, OpenCVForUnity.Img_hashModule.ImgHashBase>(owner); if (!(hashOne.Value is OpenCVForUnityPlayMakerActions.Mat)) { LogError("hashOne is not initialized. Add Action \"newMat\"."); return; } OpenCVForUnity.CoreModule.Mat wrapped_hashOne = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.Mat, OpenCVForUnity.CoreModule.Mat>(hashOne); if (!(hashTwo.Value is OpenCVForUnityPlayMakerActions.Mat)) { LogError("hashTwo is not initialized. Add Action \"newMat\"."); return; } OpenCVForUnity.CoreModule.Mat wrapped_hashTwo = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.Mat, OpenCVForUnity.CoreModule.Mat>(hashTwo); storeResult.Value = (float)wrapped_owner.compare(wrapped_hashOne, wrapped_hashTwo); }
void DoProcess() { if (!(owner.Value is OpenCVForUnityPlayMakerActions.ImgHashBase)) { LogError("owner is not initialized. Add Action \"newImgHashBase\"."); return; } OpenCVForUnity.Img_hashModule.ImgHashBase wrapped_owner = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.ImgHashBase, OpenCVForUnity.Img_hashModule.ImgHashBase>(owner); if (!(inputArr.Value is OpenCVForUnityPlayMakerActions.Mat)) { LogError("inputArr is not initialized. Add Action \"newMat\"."); return; } OpenCVForUnity.CoreModule.Mat wrapped_inputArr = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.Mat, OpenCVForUnity.CoreModule.Mat>(inputArr); if (!(outputArr.Value is OpenCVForUnityPlayMakerActions.Mat)) { LogError("outputArr is not initialized. Add Action \"newMat\"."); return; } OpenCVForUnity.CoreModule.Mat wrapped_outputArr = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.Mat, OpenCVForUnity.CoreModule.Mat>(outputArr); wrapped_owner.compute(wrapped_inputArr, wrapped_outputArr); }
public ImgHashBase(OpenCVForUnity.Img_hashModule.ImgHashBase nativeObj) : base(nativeObj) { }