void DoProcess() { if (!(owner.Value is OpenCVForUnityPlayMakerActions.SparseMatchInterpolator)) { LogError("owner is not initialized. Add Action \"newSparseMatchInterpolator\"."); return; } OpenCVForUnity.XimgprocModule.SparseMatchInterpolator wrapped_owner = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.SparseMatchInterpolator, OpenCVForUnity.XimgprocModule.SparseMatchInterpolator>(owner); if (!(from_image.Value is OpenCVForUnityPlayMakerActions.Mat)) { LogError("from_image is not initialized. Add Action \"newMat\"."); return; } OpenCVForUnity.CoreModule.Mat wrapped_from_image = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.Mat, OpenCVForUnity.CoreModule.Mat>(from_image); if (!(from_points.Value is OpenCVForUnityPlayMakerActions.Mat)) { LogError("from_points is not initialized. Add Action \"newMat\"."); return; } OpenCVForUnity.CoreModule.Mat wrapped_from_points = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.Mat, OpenCVForUnity.CoreModule.Mat>(from_points); if (!(to_image.Value is OpenCVForUnityPlayMakerActions.Mat)) { LogError("to_image is not initialized. Add Action \"newMat\"."); return; } OpenCVForUnity.CoreModule.Mat wrapped_to_image = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.Mat, OpenCVForUnity.CoreModule.Mat>(to_image); if (!(to_points.Value is OpenCVForUnityPlayMakerActions.Mat)) { LogError("to_points is not initialized. Add Action \"newMat\"."); return; } OpenCVForUnity.CoreModule.Mat wrapped_to_points = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.Mat, OpenCVForUnity.CoreModule.Mat>(to_points); if (!(dense_flow.Value is OpenCVForUnityPlayMakerActions.Mat)) { LogError("dense_flow is not initialized. Add Action \"newMat\"."); return; } OpenCVForUnity.CoreModule.Mat wrapped_dense_flow = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.Mat, OpenCVForUnity.CoreModule.Mat>(dense_flow); wrapped_owner.interpolate(wrapped_from_image, wrapped_from_points, wrapped_to_image, wrapped_to_points, wrapped_dense_flow); }
public SparseMatchInterpolator(OpenCVForUnity.XimgprocModule.SparseMatchInterpolator nativeObj) : base(nativeObj) { }