|
Re: problem with cvComputeCorrespondEpilines(): bug ???: msg#00727lib.opencv
Hi, I have exactly the same problem with cvComputeCorrespondEpilines which returns the error: "The dimensionality of points must be 2 or 3" is there a solution ? thanks, Simon --- In OpenCV@xxxxxxxxxxxxxxx, seb_kramm <seb_kramm@xxxx> wrote: > > Hello, > I have a problem with the 'cvComputeCorrespondEpilines()' function, with OpenCv beta5. > The thing is, that didn't happen with beta 4, and, after checking the source, it is > obvious that the way the checking is performed has been changed a bit, and I have a > slight feeling that this is where my problem comes from. > > So the minimal "bug" code is: (build in 2 different projects, one for beta 4, and one > for beta 5, linked with the correct headers and libs) > ------------------------------------------------------ > #include "cv.h" > int main( int argc, char** argv ) > { > CvMat *pt = cvCreateMat( 2, 1, CV_32F ); > CvMat *line = cvCreateMat( 3, 1, CV_32F ); > CvMat *F = cvCreateMat( 3, 3, CV_32F ); > > cvmSet( pt, 0, 0, 1.2345 ); > cvmSet( pt, 1, 0, 5.4321 ); > > cvComputeCorrespondEpilines( pt, 1, F , line ); > } > ------------------------------------------------------ > > It works fine with beta 4, and causes the following run-time error with beta 5: > "The dimensionality of points must be 2 or 3" (line 868 of 'cvfundam.cpp') > > I tried to guess what the problem was, but I'm stuck on the signification of the > "CV_MAT_CN()" macro. This "dimensionality" thing is computed as: > > dims = CV_MAT_CN(points->type) * points->cols > or > dims = CV_MAT_CN(points->type) * points->rows > > depending on if 'cols' bigger than 'rows' > > This checking assumes that you are building epipolar lines for _several_ points (more > than 3...?), and I think it is the cause of failure in my case, where I only provide > ONE point for ONE line. > > Can anybody confirm this issue ? Any solution in sight ? > > I'm not able to provide a patch, since I don't really see how to keep the checking > without keeping the ability of giving points in lines OR in columns, as it is > mentionned in the doc. > > > Thanks for your feedback, > Change settings: http://www.yahoogroups.com/mygroups, select Get Emails (get all posts) Daily Digest (one summary email per day) Read on the web (read posts on the web only)Or Unsubscribe by mailing OpenCV-unsubscribe@xxxxxxxxxxxxxxx |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | 2d -> 3d reconstruction: 00727, bardsley99 |
|---|---|
| Next by Date: | RE: image registration & comparison: 00727, Dave Grossman |
| Previous by Thread: | 2d -> 3d reconstructioni: 00727, bardsley99 |
| Next by Thread: | How can I distinguish moving objects and standstill objects?: 00727, hana |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |