void DoProcess() { if (!(owner.Value is OpenCVForUnityPlayMakerActions.SuperpixelSLIC)) { LogError("owner is not initialized. Add Action \"newSuperpixelSLIC\"."); return; } OpenCVForUnity.XimgprocModule.SuperpixelSLIC wrapped_owner = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.SuperpixelSLIC, OpenCVForUnity.XimgprocModule.SuperpixelSLIC>(owner); wrapped_owner.enforceLabelConnectivity(); }
void DoProcess() { if (!(owner.Value is OpenCVForUnityPlayMakerActions.SuperpixelSLIC)) { LogError("owner is not initialized. Add Action \"newSuperpixelSLIC\"."); return; } OpenCVForUnity.XimgprocModule.SuperpixelSLIC wrapped_owner = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.SuperpixelSLIC, OpenCVForUnity.XimgprocModule.SuperpixelSLIC>(owner); storeResult.Value = wrapped_owner.getNumberOfSuperpixels(); }
void DoProcess() { if (!(owner.Value is OpenCVForUnityPlayMakerActions.SuperpixelSLIC)) { LogError("owner is not initialized. Add Action \"newSuperpixelSLIC\"."); return; } OpenCVForUnity.XimgprocModule.SuperpixelSLIC wrapped_owner = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.SuperpixelSLIC, OpenCVForUnity.XimgprocModule.SuperpixelSLIC>(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 SuperpixelSLIC(OpenCVForUnity.XimgprocModule.SuperpixelSLIC nativeObj) : base(nativeObj) { }