Exemple #1
0
        void DoProcess()
        {
            if (!(owner.Value is OpenCVForUnityPlayMakerActions.SuperpixelSEEDS))
            {
                LogError("owner is not initialized. Add Action \"newSuperpixelSEEDS\".");
                return;
            }
            OpenCVForUnity.XimgprocModule.SuperpixelSEEDS wrapped_owner = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.SuperpixelSEEDS, OpenCVForUnity.XimgprocModule.SuperpixelSEEDS>(owner);

            storeResult.Value = wrapped_owner.getNumberOfSuperpixels();
        }
Exemple #2
0
        void DoProcess()
        {
            if (!(owner.Value is OpenCVForUnityPlayMakerActions.SuperpixelSEEDS))
            {
                LogError("owner is not initialized. Add Action \"newSuperpixelSEEDS\".");
                return;
            }
            OpenCVForUnity.XimgprocModule.SuperpixelSEEDS wrapped_owner = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.SuperpixelSEEDS, OpenCVForUnity.XimgprocModule.SuperpixelSEEDS>(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);
        }
Exemple #3
0
 public SuperpixelSEEDS(OpenCVForUnity.XimgprocModule.SuperpixelSEEDS nativeObj) : base(nativeObj)
 {
 }