void DoProcess() { if (!(owner.Value is OpenCVForUnityPlayMakerActions.EdgeBoxes)) { LogError("owner is not initialized. Add Action \"newEdgeBoxes\"."); return; } OpenCVForUnity.XimgprocModule.EdgeBoxes wrapped_owner = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.EdgeBoxes, OpenCVForUnity.XimgprocModule.EdgeBoxes>(owner); if (!(edge_map.Value is OpenCVForUnityPlayMakerActions.Mat)) { LogError("edge_map is not initialized. Add Action \"newMat\"."); return; } OpenCVForUnity.CoreModule.Mat wrapped_edge_map = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.Mat, OpenCVForUnity.CoreModule.Mat>(edge_map); if (!(orientation_map.Value is OpenCVForUnityPlayMakerActions.Mat)) { LogError("orientation_map is not initialized. Add Action \"newMat\"."); return; } OpenCVForUnity.CoreModule.Mat wrapped_orientation_map = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.Mat, OpenCVForUnity.CoreModule.Mat>(orientation_map); if (!(boxes.Value is OpenCVForUnityPlayMakerActions.MatOfRect)) { LogError("boxes is not initialized. Add Action \"newMatOfRect\"."); return; } OpenCVForUnity.CoreModule.MatOfRect wrapped_boxes = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.MatOfRect, OpenCVForUnity.CoreModule.MatOfRect>(boxes); wrapped_owner.getBoundingBoxes(wrapped_edge_map, wrapped_orientation_map, wrapped_boxes); }
void DoProcess() { if (!(owner.Value is OpenCVForUnityPlayMakerActions.EdgeBoxes)) { LogError("owner is not initialized. Add Action \"newEdgeBoxes\"."); return; } OpenCVForUnity.XimgprocModule.EdgeBoxes wrapped_owner = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.EdgeBoxes, OpenCVForUnity.XimgprocModule.EdgeBoxes>(owner); storeResult.Value = wrapped_owner.getClusterMinMag(); }
void DoProcess() { if (!(owner.Value is OpenCVForUnityPlayMakerActions.EdgeBoxes)) { LogError("owner is not initialized. Add Action \"newEdgeBoxes\"."); return; } OpenCVForUnity.XimgprocModule.EdgeBoxes wrapped_owner = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.EdgeBoxes, OpenCVForUnity.XimgprocModule.EdgeBoxes>(owner); wrapped_owner.setMinScore(value.Value); }
public EdgeBoxes(OpenCVForUnity.XimgprocModule.EdgeBoxes nativeObj) : base(nativeObj) { }