void DoProcess() { if (!(owner.Value is OpenCVForUnityPlayMakerActions.DisparityFilter)) { LogError("owner is not initialized. Add Action \"newDisparityFilter\"."); return; } OpenCVForUnity.XimgprocModule.DisparityFilter wrapped_owner = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.DisparityFilter, OpenCVForUnity.XimgprocModule.DisparityFilter>(owner); if (!(disparity_map_left.Value is OpenCVForUnityPlayMakerActions.Mat)) { LogError("disparity_map_left is not initialized. Add Action \"newMat\"."); return; } OpenCVForUnity.CoreModule.Mat wrapped_disparity_map_left = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.Mat, OpenCVForUnity.CoreModule.Mat>(disparity_map_left); if (!(left_view.Value is OpenCVForUnityPlayMakerActions.Mat)) { LogError("left_view is not initialized. Add Action \"newMat\"."); return; } OpenCVForUnity.CoreModule.Mat wrapped_left_view = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.Mat, OpenCVForUnity.CoreModule.Mat>(left_view); if (!(filtered_disparity_map.Value is OpenCVForUnityPlayMakerActions.Mat)) { LogError("filtered_disparity_map is not initialized. Add Action \"newMat\"."); return; } OpenCVForUnity.CoreModule.Mat wrapped_filtered_disparity_map = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.Mat, OpenCVForUnity.CoreModule.Mat>(filtered_disparity_map); wrapped_owner.filter(wrapped_disparity_map_left, wrapped_left_view, wrapped_filtered_disparity_map); }
public DisparityFilter(OpenCVForUnity.XimgprocModule.DisparityFilter nativeObj) : base(nativeObj) { }