void DoProcess() { if (!(owner.Value is OpenCVForUnityPlayMakerActions.AlignMTB)) { LogError("owner is not initialized. Add Action \"newAlignMTB\"."); return; } OpenCVForUnity.PhotoModule.AlignMTB wrapped_owner = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.AlignMTB, OpenCVForUnity.PhotoModule.AlignMTB>(owner); if (!(img0.Value is OpenCVForUnityPlayMakerActions.Mat)) { LogError("img0 is not initialized. Add Action \"newMat\"."); return; } OpenCVForUnity.CoreModule.Mat wrapped_img0 = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.Mat, OpenCVForUnity.CoreModule.Mat>(img0); if (!(img1.Value is OpenCVForUnityPlayMakerActions.Mat)) { LogError("img1 is not initialized. Add Action \"newMat\"."); return; } OpenCVForUnity.CoreModule.Mat wrapped_img1 = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.Mat, OpenCVForUnity.CoreModule.Mat>(img1); if (!(storeResult.Value is OpenCVForUnityPlayMakerActions.Point)) { storeResult.Value = new OpenCVForUnityPlayMakerActions.Point(); } ((OpenCVForUnityPlayMakerActions.Point)storeResult.Value).wrappedObject = wrapped_owner.calculateShift(wrapped_img0, wrapped_img1); }
void DoProcess() { if (!(owner.Value is OpenCVForUnityPlayMakerActions.AlignMTB)) { LogError("owner is not initialized. Add Action \"newAlignMTB\"."); return; } OpenCVForUnity.PhotoModule.AlignMTB wrapped_owner = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.AlignMTB, OpenCVForUnity.PhotoModule.AlignMTB>(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); if (!(shift.Value is OpenCVForUnityPlayMakerActions.Point)) { LogError("shift is not initialized. Add Action \"newPoint\"."); return; } OpenCVForUnity.CoreModule.Point wrapped_shift = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.Point, OpenCVForUnity.CoreModule.Point>(shift); wrapped_owner.shiftMat(wrapped_src, wrapped_dst, wrapped_shift); }
void DoProcess() { if (!(owner.Value is OpenCVForUnityPlayMakerActions.AlignMTB)) { LogError("owner is not initialized. Add Action \"newAlignMTB\"."); return; } OpenCVForUnity.PhotoModule.AlignMTB wrapped_owner = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.AlignMTB, OpenCVForUnity.PhotoModule.AlignMTB>(owner); if (!(img.Value is OpenCVForUnityPlayMakerActions.Mat)) { LogError("img is not initialized. Add Action \"newMat\"."); return; } OpenCVForUnity.CoreModule.Mat wrapped_img = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.Mat, OpenCVForUnity.CoreModule.Mat>(img); if (!(tb.Value is OpenCVForUnityPlayMakerActions.Mat)) { LogError("tb is not initialized. Add Action \"newMat\"."); return; } OpenCVForUnity.CoreModule.Mat wrapped_tb = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.Mat, OpenCVForUnity.CoreModule.Mat>(tb); if (!(eb.Value is OpenCVForUnityPlayMakerActions.Mat)) { LogError("eb is not initialized. Add Action \"newMat\"."); return; } OpenCVForUnity.CoreModule.Mat wrapped_eb = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.Mat, OpenCVForUnity.CoreModule.Mat>(eb); wrapped_owner.computeBitmaps(wrapped_img, wrapped_tb, wrapped_eb); }
void DoProcess() { if (!(owner.Value is OpenCVForUnityPlayMakerActions.AlignMTB)) { LogError("owner is not initialized. Add Action \"newAlignMTB\"."); return; } OpenCVForUnity.PhotoModule.AlignMTB wrapped_owner = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.AlignMTB, OpenCVForUnity.PhotoModule.AlignMTB>(owner); storeResult.Value = wrapped_owner.getMaxBits(); }
void DoProcess() { if (!(owner.Value is OpenCVForUnityPlayMakerActions.AlignMTB)) { LogError("owner is not initialized. Add Action \"newAlignMTB\"."); return; } OpenCVForUnity.PhotoModule.AlignMTB wrapped_owner = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.AlignMTB, OpenCVForUnity.PhotoModule.AlignMTB>(owner); wrapped_owner.setExcludeRange(exclude_range.Value); }
void DoProcess() { if (!(owner.Value is OpenCVForUnityPlayMakerActions.AlignMTB)) { LogError("owner is not initialized. Add Action \"newAlignMTB\"."); return; } OpenCVForUnity.PhotoModule.AlignMTB wrapped_owner = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.AlignMTB, OpenCVForUnity.PhotoModule.AlignMTB>(owner); List <OpenCVForUnity.CoreModule.Mat> wrapped_src = new List <OpenCVForUnity.CoreModule.Mat>(); OpenCVForUnityPlayMakerActionsUtils.ConvertFsmArrayToList <OpenCVForUnityPlayMakerActions.Mat, OpenCVForUnity.CoreModule.Mat>(src, wrapped_src); List <OpenCVForUnity.CoreModule.Mat> wrapped_dst = new List <OpenCVForUnity.CoreModule.Mat>(); OpenCVForUnityPlayMakerActionsUtils.ConvertFsmArrayToList <OpenCVForUnityPlayMakerActions.Mat, OpenCVForUnity.CoreModule.Mat>(dst, wrapped_dst); wrapped_owner.process(wrapped_src, wrapped_dst); OpenCVForUnityPlayMakerActionsUtils.ConvertListToFsmArray <OpenCVForUnity.CoreModule.Mat, OpenCVForUnityPlayMakerActions.Mat>(wrapped_src, src); OpenCVForUnityPlayMakerActionsUtils.ConvertListToFsmArray <OpenCVForUnity.CoreModule.Mat, OpenCVForUnityPlayMakerActions.Mat>(wrapped_dst, dst); }
public AlignMTB(OpenCVForUnity.PhotoModule.AlignMTB nativeObj) : base(nativeObj) { }