void DoProcess() { if (!(owner.Value is OpenCVForUnityPlayMakerActions.ScanSegment)) { LogError("owner is not initialized. Add Action \"newScanSegment\"."); return; } OpenCVForUnity.XimgprocModule.ScanSegment wrapped_owner = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.ScanSegment, OpenCVForUnity.XimgprocModule.ScanSegment>(owner); storeResult.Value = wrapped_owner.getNumberOfSuperpixels(); }
void DoProcess() { if (!(owner.Value is OpenCVForUnityPlayMakerActions.ScanSegment)) { LogError("owner is not initialized. Add Action \"newScanSegment\"."); return; } OpenCVForUnity.XimgprocModule.ScanSegment wrapped_owner = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.ScanSegment, OpenCVForUnity.XimgprocModule.ScanSegment>(owner); if (!(image.Value is OpenCVForUnityPlayMakerActions.Mat)) { LogError("image is not initialized. Add Action \"newMat\"."); return; } OpenCVForUnity.CoreModule.Mat wrapped_image = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.Mat, OpenCVForUnity.CoreModule.Mat>(image); wrapped_owner.getLabelContourMask(wrapped_image); }
public ScanSegment(OpenCVForUnity.XimgprocModule.ScanSegment nativeObj) : base(nativeObj) { }