Example #1
0
        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 (!(labels_out.Value is OpenCVForUnityPlayMakerActions.Mat))
            {
                LogError("labels_out is not initialized. Add Action \"newMat\".");
                return;
            }
            OpenCVForUnity.CoreModule.Mat wrapped_labels_out = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.Mat, OpenCVForUnity.CoreModule.Mat>(labels_out);

            wrapped_owner.getLabels(wrapped_labels_out);
        }