void DoProcess() { if (!(objectPoints.Value is OpenCVForUnityPlayMakerActions.MatOfPoint3f)) { LogError("objectPoints is not initialized. Add Action \"newMatOfPoint3f\"."); return; } OpenCVForUnity.CoreModule.MatOfPoint3f wrapped_objectPoints = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.MatOfPoint3f, OpenCVForUnity.CoreModule.MatOfPoint3f>(objectPoints); if (!(rvec.Value is OpenCVForUnityPlayMakerActions.Mat)) { LogError("rvec is not initialized. Add Action \"newMat\"."); return; } OpenCVForUnity.CoreModule.Mat wrapped_rvec = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.Mat, OpenCVForUnity.CoreModule.Mat>(rvec); if (!(tvec.Value is OpenCVForUnityPlayMakerActions.Mat)) { LogError("tvec is not initialized. Add Action \"newMat\"."); return; } OpenCVForUnity.CoreModule.Mat wrapped_tvec = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.Mat, OpenCVForUnity.CoreModule.Mat>(tvec); if (!(cameraMatrix.Value is OpenCVForUnityPlayMakerActions.Mat)) { LogError("cameraMatrix is not initialized. Add Action \"newMat\"."); return; } OpenCVForUnity.CoreModule.Mat wrapped_cameraMatrix = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.Mat, OpenCVForUnity.CoreModule.Mat>(cameraMatrix); if (!(distCoeffs.Value is OpenCVForUnityPlayMakerActions.MatOfDouble)) { LogError("distCoeffs is not initialized. Add Action \"newMatOfDouble\"."); return; } OpenCVForUnity.CoreModule.MatOfDouble wrapped_distCoeffs = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.MatOfDouble, OpenCVForUnity.CoreModule.MatOfDouble>(distCoeffs); if (!(imagePoints.Value is OpenCVForUnityPlayMakerActions.MatOfPoint2f)) { LogError("imagePoints is not initialized. Add Action \"newMatOfPoint2f\"."); return; } OpenCVForUnity.CoreModule.MatOfPoint2f wrapped_imagePoints = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.MatOfPoint2f, OpenCVForUnity.CoreModule.MatOfPoint2f>(imagePoints); if (!(jacobian.Value is OpenCVForUnityPlayMakerActions.Mat)) { LogError("jacobian is not initialized. Add Action \"newMat\"."); return; } OpenCVForUnity.CoreModule.Mat wrapped_jacobian = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.Mat, OpenCVForUnity.CoreModule.Mat>(jacobian); if (!(aspectRatio.Value is OpenCVForUnityPlayMakerActions.Double)) { LogError("aspectRatio is not initialized. Add Action \"newDouble\"."); return; } System.Double wrapped_aspectRatio = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.Double, System.Double>(aspectRatio); OpenCVForUnity.Calib3dModule.Calib3d.projectPoints(wrapped_objectPoints, wrapped_rvec, wrapped_tvec, wrapped_cameraMatrix, wrapped_distCoeffs, wrapped_imagePoints, wrapped_jacobian, wrapped_aspectRatio); }
void DoProcess() { if (!(points1.Value is OpenCVForUnityPlayMakerActions.MatOfPoint2f)) { LogError("points1 is not initialized. Add Action \"newMatOfPoint2f\"."); return; } OpenCVForUnity.CoreModule.MatOfPoint2f wrapped_points1 = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.MatOfPoint2f, OpenCVForUnity.CoreModule.MatOfPoint2f>(points1); if (!(points2.Value is OpenCVForUnityPlayMakerActions.MatOfPoint2f)) { LogError("points2 is not initialized. Add Action \"newMatOfPoint2f\"."); return; } OpenCVForUnity.CoreModule.MatOfPoint2f wrapped_points2 = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.MatOfPoint2f, OpenCVForUnity.CoreModule.MatOfPoint2f>(points2); if (!(mask.Value is OpenCVForUnityPlayMakerActions.Mat)) { LogError("mask is not initialized. Add Action \"newMat\"."); return; } OpenCVForUnity.CoreModule.Mat wrapped_mask = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.Mat, OpenCVForUnity.CoreModule.Mat>(mask); if (!(storeResult.Value is OpenCVForUnityPlayMakerActions.Mat)) { storeResult.Value = new OpenCVForUnityPlayMakerActions.Mat(); } ((OpenCVForUnityPlayMakerActions.Mat)storeResult.Value).wrappedObject = OpenCVForUnity.Calib3dModule.Calib3d.findFundamentalMat(wrapped_points1, wrapped_points2, method.Value, (float)ransacReprojThreshold.Value, (float)confidence.Value, maxIters.Value, wrapped_mask); }
void DoProcess() { if (!(src.Value is OpenCVForUnityPlayMakerActions.MatOfPoint2f)) { LogError("src is not initialized. Add Action \"newMatOfPoint2f\"."); return; } OpenCVForUnity.CoreModule.MatOfPoint2f wrapped_src = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.MatOfPoint2f, OpenCVForUnity.CoreModule.MatOfPoint2f>(src); if (!(dst.Value is OpenCVForUnityPlayMakerActions.MatOfPoint2f)) { LogError("dst is not initialized. Add Action \"newMatOfPoint2f\"."); return; } OpenCVForUnity.CoreModule.MatOfPoint2f wrapped_dst = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.MatOfPoint2f, OpenCVForUnity.CoreModule.MatOfPoint2f>(dst); if (!(cameraMatrix.Value is OpenCVForUnityPlayMakerActions.Mat)) { LogError("cameraMatrix is not initialized. Add Action \"newMat\"."); return; } OpenCVForUnity.CoreModule.Mat wrapped_cameraMatrix = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.Mat, OpenCVForUnity.CoreModule.Mat>(cameraMatrix); if (!(distCoeffs.Value is OpenCVForUnityPlayMakerActions.Mat)) { LogError("distCoeffs is not initialized. Add Action \"newMat\"."); return; } OpenCVForUnity.CoreModule.Mat wrapped_distCoeffs = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.Mat, OpenCVForUnity.CoreModule.Mat>(distCoeffs); OpenCVForUnity.Calib3dModule.Calib3d.undistortPoints(wrapped_src, wrapped_dst, wrapped_cameraMatrix, wrapped_distCoeffs); }
void DoProcess() { if (!(points1.Value is OpenCVForUnityPlayMakerActions.MatOfPoint2f)) { LogError("points1 is not initialized. Add Action \"newMatOfPoint2f\"."); return; } OpenCVForUnity.CoreModule.MatOfPoint2f wrapped_points1 = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.MatOfPoint2f, OpenCVForUnity.CoreModule.MatOfPoint2f>(points1); if (!(points2.Value is OpenCVForUnityPlayMakerActions.MatOfPoint2f)) { LogError("points2 is not initialized. Add Action \"newMatOfPoint2f\"."); return; } OpenCVForUnity.CoreModule.MatOfPoint2f wrapped_points2 = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.MatOfPoint2f, OpenCVForUnity.CoreModule.MatOfPoint2f>(points2); if (!(ransacReprojThreshold.Value is OpenCVForUnityPlayMakerActions.Double)) { LogError("ransacReprojThreshold is not initialized. Add Action \"newDouble\"."); return; } System.Double wrapped_ransacReprojThreshold = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.Double, System.Double>(ransacReprojThreshold); if (!(storeResult.Value is OpenCVForUnityPlayMakerActions.Mat)) { storeResult.Value = new OpenCVForUnityPlayMakerActions.Mat(); } ((OpenCVForUnityPlayMakerActions.Mat)storeResult.Value).wrappedObject = OpenCVForUnity.Calib3dModule.Calib3d.findFundamentalMat(wrapped_points1, wrapped_points2, method.Value, wrapped_ransacReprojThreshold); }
void DoProcess() { if (!(points.Value is OpenCVForUnityPlayMakerActions.MatOfPoint2f)) { LogError("points is not initialized. Add Action \"newMatOfPoint2f\"."); return; } OpenCVForUnity.CoreModule.MatOfPoint2f wrapped_points = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.MatOfPoint2f, OpenCVForUnity.CoreModule.MatOfPoint2f>(points); if (!(center.Value is OpenCVForUnityPlayMakerActions.Point)) { LogError("center is not initialized. Add Action \"newPoint\"."); return; } OpenCVForUnity.CoreModule.Point wrapped_center = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.Point, OpenCVForUnity.CoreModule.Point>(center); float[] float_radius = radius.floatValues; float[] casted_radius = new float[float_radius.Length]; for (int i = 0; i < casted_radius.Length; i++) { casted_radius[i] = (float)float_radius[i]; } OpenCVForUnity.ImgprocModule.Imgproc.minEnclosingCircle(wrapped_points, wrapped_center, casted_radius); for (int i = 0; i < casted_radius.Length; i++) { radius.Set(i, (float)casted_radius[i]); } radius.SaveChanges(); }
void DoProcess() { if (!(srcPoints.Value is OpenCVForUnityPlayMakerActions.MatOfPoint2f)) { LogError("srcPoints is not initialized. Add Action \"newMatOfPoint2f\"."); return; } OpenCVForUnity.CoreModule.MatOfPoint2f wrapped_srcPoints = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject<OpenCVForUnityPlayMakerActions.MatOfPoint2f, OpenCVForUnity.CoreModule.MatOfPoint2f>(srcPoints); if (!(dstPoints.Value is OpenCVForUnityPlayMakerActions.MatOfPoint2f)) { LogError("dstPoints is not initialized. Add Action \"newMatOfPoint2f\"."); return; } OpenCVForUnity.CoreModule.MatOfPoint2f wrapped_dstPoints = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject<OpenCVForUnityPlayMakerActions.MatOfPoint2f, OpenCVForUnity.CoreModule.MatOfPoint2f>(dstPoints); if (!(ransacReprojThreshold.Value is OpenCVForUnityPlayMakerActions.Double)) { LogError("ransacReprojThreshold is not initialized. Add Action \"newDouble\"."); return; } System.Double wrapped_ransacReprojThreshold = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject<OpenCVForUnityPlayMakerActions.Double, System.Double>(ransacReprojThreshold); if (!(storeResult.Value is OpenCVForUnityPlayMakerActions.Mat)) storeResult.Value = new OpenCVForUnityPlayMakerActions.Mat(); ((OpenCVForUnityPlayMakerActions.Mat)storeResult.Value).wrappedObject = OpenCVForUnity.Calib3dModule.Calib3d.findHomography(wrapped_srcPoints, wrapped_dstPoints, method.Value, wrapped_ransacReprojThreshold); }
void DoProcess() { if (!(prevImg.Value is OpenCVForUnityPlayMakerActions.Mat)) { LogError("prevImg is not initialized. Add Action \"newMat\"."); return; } OpenCVForUnity.CoreModule.Mat wrapped_prevImg = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.Mat, OpenCVForUnity.CoreModule.Mat>(prevImg); if (!(nextImg.Value is OpenCVForUnityPlayMakerActions.Mat)) { LogError("nextImg is not initialized. Add Action \"newMat\"."); return; } OpenCVForUnity.CoreModule.Mat wrapped_nextImg = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.Mat, OpenCVForUnity.CoreModule.Mat>(nextImg); if (!(prevPts.Value is OpenCVForUnityPlayMakerActions.MatOfPoint2f)) { LogError("prevPts is not initialized. Add Action \"newMatOfPoint2f\"."); return; } OpenCVForUnity.CoreModule.MatOfPoint2f wrapped_prevPts = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.MatOfPoint2f, OpenCVForUnity.CoreModule.MatOfPoint2f>(prevPts); if (!(nextPts.Value is OpenCVForUnityPlayMakerActions.MatOfPoint2f)) { LogError("nextPts is not initialized. Add Action \"newMatOfPoint2f\"."); return; } OpenCVForUnity.CoreModule.MatOfPoint2f wrapped_nextPts = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.MatOfPoint2f, OpenCVForUnity.CoreModule.MatOfPoint2f>(nextPts); if (!(status.Value is OpenCVForUnityPlayMakerActions.MatOfByte)) { LogError("status is not initialized. Add Action \"newMatOfByte\"."); return; } OpenCVForUnity.CoreModule.MatOfByte wrapped_status = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.MatOfByte, OpenCVForUnity.CoreModule.MatOfByte>(status); if (!(err.Value is OpenCVForUnityPlayMakerActions.MatOfFloat)) { LogError("err is not initialized. Add Action \"newMatOfFloat\"."); return; } OpenCVForUnity.CoreModule.MatOfFloat wrapped_err = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.MatOfFloat, OpenCVForUnity.CoreModule.MatOfFloat>(err); if (!(winSize.Value is OpenCVForUnityPlayMakerActions.Size)) { LogError("winSize is not initialized. Add Action \"newSize\"."); return; } OpenCVForUnity.CoreModule.Size wrapped_winSize = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.Size, OpenCVForUnity.CoreModule.Size>(winSize); if (!(criteria.Value is OpenCVForUnityPlayMakerActions.TermCriteria)) { LogError("criteria is not initialized. Add Action \"newTermCriteria\"."); return; } OpenCVForUnity.CoreModule.TermCriteria wrapped_criteria = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.TermCriteria, OpenCVForUnity.CoreModule.TermCriteria>(criteria); OpenCVForUnity.VideoModule.Video.calcOpticalFlowPyrLK(wrapped_prevImg, wrapped_nextImg, wrapped_prevPts, wrapped_nextPts, wrapped_status, wrapped_err, wrapped_winSize, maxLevel.Value, wrapped_criteria); }
void DoProcess() { if (!(curve.Value is OpenCVForUnityPlayMakerActions.MatOfPoint2f)) { LogError("curve is not initialized. Add Action \"newMatOfPoint2f\"."); return; } OpenCVForUnity.CoreModule.MatOfPoint2f wrapped_curve = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.MatOfPoint2f, OpenCVForUnity.CoreModule.MatOfPoint2f>(curve); if (!(approxCurve.Value is OpenCVForUnityPlayMakerActions.MatOfPoint2f)) { LogError("approxCurve is not initialized. Add Action \"newMatOfPoint2f\"."); return; } OpenCVForUnity.CoreModule.MatOfPoint2f wrapped_approxCurve = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.MatOfPoint2f, OpenCVForUnity.CoreModule.MatOfPoint2f>(approxCurve); if (!(epsilon.Value is OpenCVForUnityPlayMakerActions.Double)) { LogError("epsilon is not initialized. Add Action \"newDouble\"."); return; } System.Double wrapped_epsilon = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.Double, System.Double>(epsilon); OpenCVForUnity.ImgprocModule.Imgproc.approxPolyDP(wrapped_curve, wrapped_approxCurve, wrapped_epsilon, closed.Value); }
void DoProcess() { 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); if (!(patternSize.Value is OpenCVForUnityPlayMakerActions.Size)) { LogError("patternSize is not initialized. Add Action \"newSize\"."); return; } OpenCVForUnity.CoreModule.Size wrapped_patternSize = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.Size, OpenCVForUnity.CoreModule.Size>(patternSize); if (!(corners.Value is OpenCVForUnityPlayMakerActions.MatOfPoint2f)) { LogError("corners is not initialized. Add Action \"newMatOfPoint2f\"."); return; } OpenCVForUnity.CoreModule.MatOfPoint2f wrapped_corners = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.MatOfPoint2f, OpenCVForUnity.CoreModule.MatOfPoint2f>(corners); storeResult.Value = OpenCVForUnity.Calib3dModule.Calib3d.findChessboardCorners(wrapped_image, wrapped_patternSize, wrapped_corners); Fsm.Event(storeResult.Value ? trueEvent : falseEvent); }
void DoProcess() { if (!(owner.Value is OpenCVForUnityPlayMakerActions.Subdiv2D)) { LogError("owner is not initialized. Add Action \"newSubdiv2D\"."); return; } OpenCVForUnity.ImgprocModule.Subdiv2D wrapped_owner = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.Subdiv2D, OpenCVForUnity.ImgprocModule.Subdiv2D>(owner); if (!(idx.Value is OpenCVForUnityPlayMakerActions.MatOfInt)) { LogError("idx is not initialized. Add Action \"newMatOfInt\"."); return; } OpenCVForUnity.CoreModule.MatOfInt wrapped_idx = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.MatOfInt, OpenCVForUnity.CoreModule.MatOfInt>(idx); List <OpenCVForUnity.CoreModule.MatOfPoint2f> wrapped_facetList = new List <OpenCVForUnity.CoreModule.MatOfPoint2f>(); OpenCVForUnityPlayMakerActionsUtils.ConvertFsmArrayToList <OpenCVForUnityPlayMakerActions.MatOfPoint2f, OpenCVForUnity.CoreModule.MatOfPoint2f>(facetList, wrapped_facetList); if (!(facetCenters.Value is OpenCVForUnityPlayMakerActions.MatOfPoint2f)) { LogError("facetCenters is not initialized. Add Action \"newMatOfPoint2f\"."); return; } OpenCVForUnity.CoreModule.MatOfPoint2f wrapped_facetCenters = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.MatOfPoint2f, OpenCVForUnity.CoreModule.MatOfPoint2f>(facetCenters); wrapped_owner.getVoronoiFacetList(wrapped_idx, wrapped_facetList, wrapped_facetCenters); OpenCVForUnityPlayMakerActionsUtils.ConvertListToFsmArray <OpenCVForUnity.CoreModule.MatOfPoint2f, OpenCVForUnityPlayMakerActions.MatOfPoint2f>(wrapped_facetList, facetList); }
void DoProcess() { if (!(srcPoints.Value is OpenCVForUnityPlayMakerActions.MatOfPoint2f)) { LogError("srcPoints is not initialized. Add Action \"newMatOfPoint2f\"."); return; } OpenCVForUnity.CoreModule.MatOfPoint2f wrapped_srcPoints = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.MatOfPoint2f, OpenCVForUnity.CoreModule.MatOfPoint2f>(srcPoints); if (!(dstPoints.Value is OpenCVForUnityPlayMakerActions.MatOfPoint2f)) { LogError("dstPoints is not initialized. Add Action \"newMatOfPoint2f\"."); return; } OpenCVForUnity.CoreModule.MatOfPoint2f wrapped_dstPoints = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.MatOfPoint2f, OpenCVForUnity.CoreModule.MatOfPoint2f>(dstPoints); if (!(mask.Value is OpenCVForUnityPlayMakerActions.Mat)) { LogError("mask is not initialized. Add Action \"newMat\"."); return; } OpenCVForUnity.CoreModule.Mat wrapped_mask = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.Mat, OpenCVForUnity.CoreModule.Mat>(mask); if (!(storeResult.Value is OpenCVForUnityPlayMakerActions.Mat)) { storeResult.Value = new OpenCVForUnityPlayMakerActions.Mat(); } ((OpenCVForUnityPlayMakerActions.Mat)storeResult.Value).wrappedObject = OpenCVForUnity.Calib3dModule.Calib3d.findHomography(wrapped_srcPoints, wrapped_dstPoints, method.Value, (float)ransacReprojThreshold.Value, wrapped_mask, maxIters.Value, (float)confidence.Value); }
void DoProcess() { if (!(objectPoints.Value is OpenCVForUnityPlayMakerActions.MatOfPoint3f)) { LogError("objectPoints is not initialized. Add Action \"newMatOfPoint3f\"."); return; } OpenCVForUnity.CoreModule.MatOfPoint3f wrapped_objectPoints = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.MatOfPoint3f, OpenCVForUnity.CoreModule.MatOfPoint3f>(objectPoints); if (!(imagePoints.Value is OpenCVForUnityPlayMakerActions.MatOfPoint2f)) { LogError("imagePoints is not initialized. Add Action \"newMatOfPoint2f\"."); return; } OpenCVForUnity.CoreModule.MatOfPoint2f wrapped_imagePoints = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.MatOfPoint2f, OpenCVForUnity.CoreModule.MatOfPoint2f>(imagePoints); if (!(cameraMatrix.Value is OpenCVForUnityPlayMakerActions.Mat)) { LogError("cameraMatrix is not initialized. Add Action \"newMat\"."); return; } OpenCVForUnity.CoreModule.Mat wrapped_cameraMatrix = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.Mat, OpenCVForUnity.CoreModule.Mat>(cameraMatrix); if (!(distCoeffs.Value is OpenCVForUnityPlayMakerActions.MatOfDouble)) { LogError("distCoeffs is not initialized. Add Action \"newMatOfDouble\"."); return; } OpenCVForUnity.CoreModule.MatOfDouble wrapped_distCoeffs = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.MatOfDouble, OpenCVForUnity.CoreModule.MatOfDouble>(distCoeffs); if (!(rvec.Value is OpenCVForUnityPlayMakerActions.Mat)) { LogError("rvec is not initialized. Add Action \"newMat\"."); return; } OpenCVForUnity.CoreModule.Mat wrapped_rvec = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.Mat, OpenCVForUnity.CoreModule.Mat>(rvec); if (!(tvec.Value is OpenCVForUnityPlayMakerActions.Mat)) { LogError("tvec is not initialized. Add Action \"newMat\"."); return; } OpenCVForUnity.CoreModule.Mat wrapped_tvec = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.Mat, OpenCVForUnity.CoreModule.Mat>(tvec); if (!(confidence.Value is OpenCVForUnityPlayMakerActions.Double)) { LogError("confidence is not initialized. Add Action \"newDouble\"."); return; } System.Double wrapped_confidence = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.Double, System.Double>(confidence); storeResult.Value = OpenCVForUnity.Calib3dModule.Calib3d.solvePnPRansac(wrapped_objectPoints, wrapped_imagePoints, wrapped_cameraMatrix, wrapped_distCoeffs, wrapped_rvec, wrapped_tvec, useExtrinsicGuess.Value, iterationsCount.Value, reprojectionError.Value, wrapped_confidence); Fsm.Event(storeResult.Value ? trueEvent : falseEvent); }
void DoProcess() { if (!(curve.Value is OpenCVForUnityPlayMakerActions.MatOfPoint2f)) { LogError("curve is not initialized. Add Action \"newMatOfPoint2f\"."); return; } OpenCVForUnity.CoreModule.MatOfPoint2f wrapped_curve = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.MatOfPoint2f, OpenCVForUnity.CoreModule.MatOfPoint2f>(curve); storeResult.Value = (float)OpenCVForUnity.ImgprocModule.Imgproc.arcLength(wrapped_curve, closed.Value); }
void DoProcess() { if (!(owner.Value is OpenCVForUnityPlayMakerActions.MatOfPoint2f)) { LogError("owner is not initialized. Add Action \"newMatOfPoint2f\"."); return; } OpenCVForUnity.CoreModule.MatOfPoint2f wrapped_owner = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.MatOfPoint2f, OpenCVForUnity.CoreModule.MatOfPoint2f>(owner); wrapped_owner.alloc(elemNumber.Value); }
void DoProcess() { if (!(contour.Value is OpenCVForUnityPlayMakerActions.MatOfPoint2f)) { LogError("contour is not initialized. Add Action \"newMatOfPoint2f\"."); return; } OpenCVForUnity.CoreModule.MatOfPoint2f wrapped_contour = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.MatOfPoint2f, OpenCVForUnity.CoreModule.MatOfPoint2f>(contour); storeResult.Value = (float)OpenCVForUnity.ImgprocModule.Imgproc.pointPolygonTest(wrapped_contour, new OpenCVForUnity.CoreModule.Point((double)pt_x.Value, (double)pt_y.Value), measureDist.Value); }
void DoProcess() { if (!(initPoints.Value is OpenCVForUnityPlayMakerActions.MatOfPoint2f)) { LogError("initPoints is not initialized. Add Action \"newMatOfPoint2f\"."); return; } OpenCVForUnity.CoreModule.MatOfPoint2f wrapped_initPoints = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.MatOfPoint2f, OpenCVForUnity.CoreModule.MatOfPoint2f>(initPoints); OpenCVForUnity.Xfeatures2dModule.PCTSignatures.generateInitPoints(wrapped_initPoints, count.Value, pointDistribution.Value); }
void DoProcess() { if (!(prevImg.Value is OpenCVForUnityPlayMakerActions.Mat)) { LogError("prevImg is not initialized. Add Action \"newMat\"."); return; } OpenCVForUnity.CoreModule.Mat wrapped_prevImg = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.Mat, OpenCVForUnity.CoreModule.Mat>(prevImg); if (!(nextImg.Value is OpenCVForUnityPlayMakerActions.Mat)) { LogError("nextImg is not initialized. Add Action \"newMat\"."); return; } OpenCVForUnity.CoreModule.Mat wrapped_nextImg = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.Mat, OpenCVForUnity.CoreModule.Mat>(nextImg); if (!(prevPts.Value is OpenCVForUnityPlayMakerActions.MatOfPoint2f)) { LogError("prevPts is not initialized. Add Action \"newMatOfPoint2f\"."); return; } OpenCVForUnity.CoreModule.MatOfPoint2f wrapped_prevPts = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.MatOfPoint2f, OpenCVForUnity.CoreModule.MatOfPoint2f>(prevPts); if (!(nextPts.Value is OpenCVForUnityPlayMakerActions.MatOfPoint2f)) { LogError("nextPts is not initialized. Add Action \"newMatOfPoint2f\"."); return; } OpenCVForUnity.CoreModule.MatOfPoint2f wrapped_nextPts = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.MatOfPoint2f, OpenCVForUnity.CoreModule.MatOfPoint2f>(nextPts); if (!(status.Value is OpenCVForUnityPlayMakerActions.MatOfByte)) { LogError("status is not initialized. Add Action \"newMatOfByte\"."); return; } OpenCVForUnity.CoreModule.MatOfByte wrapped_status = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.MatOfByte, OpenCVForUnity.CoreModule.MatOfByte>(status); if (!(err.Value is OpenCVForUnityPlayMakerActions.MatOfFloat)) { LogError("err is not initialized. Add Action \"newMatOfFloat\"."); return; } OpenCVForUnity.CoreModule.MatOfFloat wrapped_err = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.MatOfFloat, OpenCVForUnity.CoreModule.MatOfFloat>(err); if (!(minEigThreshold.Value is OpenCVForUnityPlayMakerActions.Double)) { LogError("minEigThreshold is not initialized. Add Action \"newDouble\"."); return; } System.Double wrapped_minEigThreshold = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.Double, System.Double>(minEigThreshold); OpenCVForUnity.VideoModule.Video.calcOpticalFlowPyrLK(wrapped_prevImg, wrapped_nextImg, wrapped_prevPts, wrapped_nextPts, wrapped_status, wrapped_err, new OpenCVForUnity.CoreModule.Size((double)winSize_width.Value, (double)winSize_height.Value), maxLevel.Value, new OpenCVForUnity.CoreModule.TermCriteria((int)criteria_type.Value, (int)criteria_maxCount.Value, (double)criteria_epsilon.Value), flags.Value, wrapped_minEigThreshold); }
void DoProcess() { if (!(initSamplingPoints.Value is OpenCVForUnityPlayMakerActions.MatOfPoint2f)) { LogError("initSamplingPoints is not initialized. Add Action \"newMatOfPoint2f\"."); return; } OpenCVForUnity.CoreModule.MatOfPoint2f wrapped_initSamplingPoints = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.MatOfPoint2f, OpenCVForUnity.CoreModule.MatOfPoint2f>(initSamplingPoints); if (!(storeResult.Value is OpenCVForUnityPlayMakerActions.PCTSignatures)) { storeResult.Value = new OpenCVForUnityPlayMakerActions.PCTSignatures(); } ((OpenCVForUnityPlayMakerActions.PCTSignatures)storeResult.Value).wrappedObject = OpenCVForUnity.Xfeatures2dModule.PCTSignatures.create(wrapped_initSamplingPoints, initSeedCount.Value); }
void DoProcess() { if (!(points.Value is OpenCVForUnityPlayMakerActions.MatOfPoint2f)) { LogError("points is not initialized. Add Action \"newMatOfPoint2f\"."); return; } OpenCVForUnity.CoreModule.MatOfPoint2f wrapped_points = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.MatOfPoint2f, OpenCVForUnity.CoreModule.MatOfPoint2f>(points); if (!(storeResult.Value is OpenCVForUnityPlayMakerActions.RotatedRect)) { storeResult.Value = new OpenCVForUnityPlayMakerActions.RotatedRect(); } ((OpenCVForUnityPlayMakerActions.RotatedRect)storeResult.Value).wrappedObject = OpenCVForUnity.ImgprocModule.Imgproc.fitEllipse(wrapped_points); }
void DoProcess() { if (!(owner.Value is OpenCVForUnityPlayMakerActions.MatOfPoint2f)) { LogError("owner is not initialized. Add Action \"newMatOfPoint2f\"."); return; } OpenCVForUnity.CoreModule.MatOfPoint2f wrapped_owner = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.MatOfPoint2f, OpenCVForUnity.CoreModule.MatOfPoint2f>(owner); OpenCVForUnity.CoreModule.Point[] wrapped_a = new OpenCVForUnity.CoreModule.Point[a.Length]; OpenCVForUnityPlayMakerActionsUtils.ConvertFsmArrayToArray <OpenCVForUnityPlayMakerActions.Point, OpenCVForUnity.CoreModule.Point>(a, wrapped_a); wrapped_owner.fromArray(wrapped_a); OpenCVForUnityPlayMakerActionsUtils.ConvertArrayToFsmArray <OpenCVForUnity.CoreModule.Point, OpenCVForUnityPlayMakerActions.Point>(wrapped_a, a); }
void DoProcess() { if (!(owner.Value is OpenCVForUnityPlayMakerActions.MatOfPoint2f)) { LogError("owner is not initialized. Add Action \"newMatOfPoint2f\"."); return; } OpenCVForUnity.CoreModule.MatOfPoint2f wrapped_owner = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.MatOfPoint2f, OpenCVForUnity.CoreModule.MatOfPoint2f>(owner); OpenCVForUnity.CoreModule.Point[] wrapped_storeResult = wrapped_owner.toArray(); if (!storeResult.IsNone) { OpenCVForUnityPlayMakerActionsUtils.ConvertArrayToFsmArray <OpenCVForUnity.CoreModule.Point, OpenCVForUnityPlayMakerActions.Point>(wrapped_storeResult, storeResult); } }
void DoProcess() { if (!(owner.Value is OpenCVForUnityPlayMakerActions.MatOfPoint2f)) { LogError("owner is not initialized. Add Action \"newMatOfPoint2f\"."); return; } OpenCVForUnity.CoreModule.MatOfPoint2f wrapped_owner = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.MatOfPoint2f, OpenCVForUnity.CoreModule.MatOfPoint2f>(owner); List <OpenCVForUnity.CoreModule.Point> wrapped_lp = new List <OpenCVForUnity.CoreModule.Point>(); OpenCVForUnityPlayMakerActionsUtils.ConvertFsmArrayToList <OpenCVForUnityPlayMakerActions.Point, OpenCVForUnity.CoreModule.Point>(lp, wrapped_lp); wrapped_owner.fromList(wrapped_lp); OpenCVForUnityPlayMakerActionsUtils.ConvertListToFsmArray <OpenCVForUnity.CoreModule.Point, OpenCVForUnityPlayMakerActions.Point>(wrapped_lp, lp); }
void DoProcess() { if (!(prevImg.Value is OpenCVForUnityPlayMakerActions.Mat)) { LogError("prevImg is not initialized. Add Action \"newMat\"."); return; } OpenCVForUnity.CoreModule.Mat wrapped_prevImg = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.Mat, OpenCVForUnity.CoreModule.Mat>(prevImg); if (!(nextImg.Value is OpenCVForUnityPlayMakerActions.Mat)) { LogError("nextImg is not initialized. Add Action \"newMat\"."); return; } OpenCVForUnity.CoreModule.Mat wrapped_nextImg = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.Mat, OpenCVForUnity.CoreModule.Mat>(nextImg); if (!(prevPts.Value is OpenCVForUnityPlayMakerActions.MatOfPoint2f)) { LogError("prevPts is not initialized. Add Action \"newMatOfPoint2f\"."); return; } OpenCVForUnity.CoreModule.MatOfPoint2f wrapped_prevPts = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.MatOfPoint2f, OpenCVForUnity.CoreModule.MatOfPoint2f>(prevPts); if (!(nextPts.Value is OpenCVForUnityPlayMakerActions.MatOfPoint2f)) { LogError("nextPts is not initialized. Add Action \"newMatOfPoint2f\"."); return; } OpenCVForUnity.CoreModule.MatOfPoint2f wrapped_nextPts = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.MatOfPoint2f, OpenCVForUnity.CoreModule.MatOfPoint2f>(nextPts); if (!(status.Value is OpenCVForUnityPlayMakerActions.MatOfByte)) { LogError("status is not initialized. Add Action \"newMatOfByte\"."); return; } OpenCVForUnity.CoreModule.MatOfByte wrapped_status = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.MatOfByte, OpenCVForUnity.CoreModule.MatOfByte>(status); if (!(err.Value is OpenCVForUnityPlayMakerActions.MatOfFloat)) { LogError("err is not initialized. Add Action \"newMatOfFloat\"."); return; } OpenCVForUnity.CoreModule.MatOfFloat wrapped_err = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.MatOfFloat, OpenCVForUnity.CoreModule.MatOfFloat>(err); OpenCVForUnity.VideoModule.Video.calcOpticalFlowPyrLK(wrapped_prevImg, wrapped_nextImg, wrapped_prevPts, wrapped_nextPts, wrapped_status, wrapped_err, new OpenCVForUnity.CoreModule.Size((double)winSize_width.Value, (double)winSize_height.Value)); }
void DoProcess() { 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); if (!(corners.Value is OpenCVForUnityPlayMakerActions.MatOfPoint2f)) { LogError("corners is not initialized. Add Action \"newMatOfPoint2f\"."); return; } OpenCVForUnity.CoreModule.MatOfPoint2f wrapped_corners = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.MatOfPoint2f, OpenCVForUnity.CoreModule.MatOfPoint2f>(corners); OpenCVForUnity.Calib3dModule.Calib3d.drawChessboardCorners(wrapped_image, new OpenCVForUnity.CoreModule.Size((double)patternSize_width.Value, (double)patternSize_height.Value), wrapped_corners, patternWasFound.Value); }
void DoProcess() { if (!(owner.Value is OpenCVForUnityPlayMakerActions.PCTSignatures)) { LogError("owner is not initialized. Add Action \"newPCTSignatures\"."); return; } OpenCVForUnity.Xfeatures2dModule.PCTSignatures wrapped_owner = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.PCTSignatures, OpenCVForUnity.Xfeatures2dModule.PCTSignatures>(owner); if (!(samplingPoints.Value is OpenCVForUnityPlayMakerActions.MatOfPoint2f)) { LogError("samplingPoints is not initialized. Add Action \"newMatOfPoint2f\"."); return; } OpenCVForUnity.CoreModule.MatOfPoint2f wrapped_samplingPoints = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.MatOfPoint2f, OpenCVForUnity.CoreModule.MatOfPoint2f>(samplingPoints); wrapped_owner.setSamplingPoints(wrapped_samplingPoints); }
void DoProcess() { if (!(owner.Value is OpenCVForUnityPlayMakerActions.Subdiv2D)) { LogError("owner is not initialized. Add Action \"newSubdiv2D\"."); return; } OpenCVForUnity.ImgprocModule.Subdiv2D wrapped_owner = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.Subdiv2D, OpenCVForUnity.ImgprocModule.Subdiv2D>(owner); if (!(ptvec.Value is OpenCVForUnityPlayMakerActions.MatOfPoint2f)) { LogError("ptvec is not initialized. Add Action \"newMatOfPoint2f\"."); return; } OpenCVForUnity.CoreModule.MatOfPoint2f wrapped_ptvec = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.MatOfPoint2f, OpenCVForUnity.CoreModule.MatOfPoint2f>(ptvec); wrapped_owner.insert(wrapped_ptvec); }
void DoProcess() { if (!(src.Value is OpenCVForUnityPlayMakerActions.MatOfPoint2f)) { LogError("src is not initialized. Add Action \"newMatOfPoint2f\"."); return; } OpenCVForUnity.CoreModule.MatOfPoint2f wrapped_src = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.MatOfPoint2f, OpenCVForUnity.CoreModule.MatOfPoint2f>(src); if (!(dst.Value is OpenCVForUnityPlayMakerActions.MatOfPoint2f)) { LogError("dst is not initialized. Add Action \"newMatOfPoint2f\"."); return; } OpenCVForUnity.CoreModule.MatOfPoint2f wrapped_dst = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.MatOfPoint2f, OpenCVForUnity.CoreModule.MatOfPoint2f>(dst); if (!(storeResult.Value is OpenCVForUnityPlayMakerActions.Mat)) { storeResult.Value = new OpenCVForUnityPlayMakerActions.Mat(); } ((OpenCVForUnityPlayMakerActions.Mat)storeResult.Value).wrappedObject = OpenCVForUnity.ImgprocModule.Imgproc.getAffineTransform(wrapped_src, wrapped_dst); }
void DoProcess() { if (!(srcPoints.Value is OpenCVForUnityPlayMakerActions.MatOfPoint2f)) { LogError("srcPoints is not initialized. Add Action \"newMatOfPoint2f\"."); return; } OpenCVForUnity.CoreModule.MatOfPoint2f wrapped_srcPoints = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.MatOfPoint2f, OpenCVForUnity.CoreModule.MatOfPoint2f>(srcPoints); if (!(dstPoints.Value is OpenCVForUnityPlayMakerActions.MatOfPoint2f)) { LogError("dstPoints is not initialized. Add Action \"newMatOfPoint2f\"."); return; } OpenCVForUnity.CoreModule.MatOfPoint2f wrapped_dstPoints = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.MatOfPoint2f, OpenCVForUnity.CoreModule.MatOfPoint2f>(dstPoints); if (!(storeResult.Value is OpenCVForUnityPlayMakerActions.Mat)) { storeResult.Value = new OpenCVForUnityPlayMakerActions.Mat(); } ((OpenCVForUnityPlayMakerActions.Mat)storeResult.Value).wrappedObject = OpenCVForUnity.Calib3dModule.Calib3d.findHomography(wrapped_srcPoints, wrapped_dstPoints, method.Value); }
void DoProcess() { if (!(contour.Value is OpenCVForUnityPlayMakerActions.MatOfPoint2f)) { LogError("contour is not initialized. Add Action \"newMatOfPoint2f\"."); return; } OpenCVForUnity.CoreModule.MatOfPoint2f wrapped_contour = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.MatOfPoint2f, OpenCVForUnity.CoreModule.MatOfPoint2f>(contour); if (!(pt.Value is OpenCVForUnityPlayMakerActions.Point)) { LogError("pt is not initialized. Add Action \"newPoint\"."); return; } OpenCVForUnity.CoreModule.Point wrapped_pt = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.Point, OpenCVForUnity.CoreModule.Point>(pt); if (!(storeResult.Value is OpenCVForUnityPlayMakerActions.Double)) { storeResult.Value = new OpenCVForUnityPlayMakerActions.Double(); } ((OpenCVForUnityPlayMakerActions.Double)storeResult.Value).wrappedObject = OpenCVForUnity.ImgprocModule.Imgproc.pointPolygonTest(wrapped_contour, wrapped_pt, measureDist.Value); }
void DoProcess() { if (!(points1.Value is OpenCVForUnityPlayMakerActions.MatOfPoint2f)) { LogError("points1 is not initialized. Add Action \"newMatOfPoint2f\"."); return; } OpenCVForUnity.CoreModule.MatOfPoint2f wrapped_points1 = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.MatOfPoint2f, OpenCVForUnity.CoreModule.MatOfPoint2f>(points1); if (!(points2.Value is OpenCVForUnityPlayMakerActions.MatOfPoint2f)) { LogError("points2 is not initialized. Add Action \"newMatOfPoint2f\"."); return; } OpenCVForUnity.CoreModule.MatOfPoint2f wrapped_points2 = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.MatOfPoint2f, OpenCVForUnity.CoreModule.MatOfPoint2f>(points2); if (!(storeResult.Value is OpenCVForUnityPlayMakerActions.Mat)) { storeResult.Value = new OpenCVForUnityPlayMakerActions.Mat(); } ((OpenCVForUnityPlayMakerActions.Mat)storeResult.Value).wrappedObject = OpenCVForUnity.Calib3dModule.Calib3d.findFundamentalMat(wrapped_points1, wrapped_points2); }