I give two different shapes, especially the moms in the moments moments, but the function Imgproc.matchShapes () returns the matching Want to: So, I have returned from the mat of two hoo moments, the function Imgproc.HuMoments (): < / P> then I change them CvType.CvType.CV_32FC1 function: But it also returns an error, so I think it's because H1.checkVector (2) = -1, but how should I solve it
contour1.checkVector (2) & gt; = 0 & amp; Amp; Contour2.checkVector (2) & gt; = 0 & amp; Amp; (Contour1.depth () == CV_32F || contour1.depth () == CV_32S) & amp; Amp; Contour1.depth () == Function CV in contour2.depth () :: matchShapes
H1 = mat [7 * 1 * CV_64FC1, isCont = true, isSubmat = false, nativeObj = 0xf8ec790, dataAddr = 0xc572c00] H2 = mat [7 * 1 * CV_64FC1, isCont = true, isSubmat = false, nativeObj = 0xf8bcf70, dataAddr = 0xc5dafa0]
H1.convertTo (H1, CvType.CV_32F);
< code> because: CvException [org.opencv.core.CvException: CV :: exception: .. \ .. \ .. \ .. \ opencv \ modules \ Imgproc \ src \ contours.cpp: 1 9 36: error : (-215) contour1.checkVector (2) & gt; = 0 & amp; Amp; Contour2.checkVector (2) & gt; = 0 & amp; Amp; (Contour1.depth () == CV_32F || contour1.depth () == CV_32S) & amp; Amp; In Contour1.depth () == on org.opencv.imgproc.Imgproc.matchShapes (org.opencv.imgproc.Imgproc.matchShapes_0 (Basic Law) function cv :: matchShapes) (Imgproc.java:7543) sample.Contour. MatchTemplate (Contour.java:264) on sample.Controller.OnButtonMatchTemplate (Controller.java:167) ... 86 more exceptions to the formula "JavaFX application thread"
Tuesday, 15 April 2014
java - Function checkVector(2) returns error in OpenCV -
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment