void DoProcess()
        {
            if (!(owner.Value is OpenCVForUnityPlayMakerActions.ContourFitting))
            {
                LogError("owner is not initialized. Add Action \"newContourFitting\".");
                return;
            }
            OpenCVForUnity.XimgprocModule.ContourFitting wrapped_owner = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.ContourFitting, OpenCVForUnity.XimgprocModule.ContourFitting>(owner);

            storeResult.Value = wrapped_owner.getCtrSize();
        }
        void DoProcess()
        {
            if (!(owner.Value is OpenCVForUnityPlayMakerActions.ContourFitting))
            {
                LogError("owner is not initialized. Add Action \"newContourFitting\".");
                return;
            }
            OpenCVForUnity.XimgprocModule.ContourFitting wrapped_owner = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.ContourFitting, OpenCVForUnity.XimgprocModule.ContourFitting>(owner);

            if (!(src.Value is OpenCVForUnityPlayMakerActions.Mat))
            {
                LogError("src is not initialized. Add Action \"newMat\".");
                return;
            }
            OpenCVForUnity.CoreModule.Mat wrapped_src = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.Mat, OpenCVForUnity.CoreModule.Mat>(src);

            if (!(dst.Value is OpenCVForUnityPlayMakerActions.Mat))
            {
                LogError("dst is not initialized. Add Action \"newMat\".");
                return;
            }
            OpenCVForUnity.CoreModule.Mat wrapped_dst = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.Mat, OpenCVForUnity.CoreModule.Mat>(dst);

            if (!(alphaPhiST.Value is OpenCVForUnityPlayMakerActions.Mat))
            {
                LogError("alphaPhiST is not initialized. Add Action \"newMat\".");
                return;
            }
            OpenCVForUnity.CoreModule.Mat wrapped_alphaPhiST = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.Mat, OpenCVForUnity.CoreModule.Mat>(alphaPhiST);

            float[]  float_dist  = dist.floatValues;
            double[] casted_dist = new double[float_dist.Length];
            float_dist.CopyTo(casted_dist, 0);

            wrapped_owner.estimateTransformation(wrapped_src, wrapped_dst, wrapped_alphaPhiST, casted_dist, fdContour.Value);

            for (int i = 0; i < casted_dist.Length; i++)
            {
                dist.Set(i, (float)casted_dist[i]);
            }
            dist.SaveChanges();
        }
        void DoProcess()
        {
            if (!(owner.Value is OpenCVForUnityPlayMakerActions.ContourFitting))
            {
                LogError("owner is not initialized. Add Action \"newContourFitting\".");
                return;
            }
            OpenCVForUnity.XimgprocModule.ContourFitting wrapped_owner = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.ContourFitting, OpenCVForUnity.XimgprocModule.ContourFitting>(owner);

            if (!(src.Value is OpenCVForUnityPlayMakerActions.Mat))
            {
                LogError("src is not initialized. Add Action \"newMat\".");
                return;
            }
            OpenCVForUnity.CoreModule.Mat wrapped_src = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.Mat, OpenCVForUnity.CoreModule.Mat>(src);

            if (!(dst.Value is OpenCVForUnityPlayMakerActions.Mat))
            {
                LogError("dst is not initialized. Add Action \"newMat\".");
                return;
            }
            OpenCVForUnity.CoreModule.Mat wrapped_dst = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.Mat, OpenCVForUnity.CoreModule.Mat>(dst);

            if (!(alphaPhiST.Value is OpenCVForUnityPlayMakerActions.Mat))
            {
                LogError("alphaPhiST is not initialized. Add Action \"newMat\".");
                return;
            }
            OpenCVForUnity.CoreModule.Mat wrapped_alphaPhiST = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.Mat, OpenCVForUnity.CoreModule.Mat>(alphaPhiST);

            if (!(dist.Value is OpenCVForUnityPlayMakerActions.DoubleArray))
            {
                LogError("dist is not initialized. Add Action \"newDoubleArray\".");
                return;
            }
            System.Double[] wrapped_dist = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.DoubleArray, System.Double[]>(dist);

            wrapped_owner.estimateTransformation(wrapped_src, wrapped_dst, wrapped_alphaPhiST, wrapped_dist, fdContour.Value);
        }
 public ContourFitting(OpenCVForUnity.XimgprocModule.ContourFitting nativeObj) : base(nativeObj)
 {
 }