jloyd / javacv

Automatically exported from code.google.com/p/javacv
GNU General Public License v2.0
0 stars 0 forks source link

cvWarpPerspective(CvArr src, CvArr dst, CvMat map_matrix) won't compile #4

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Eclipse shows an error when trying to use cvWarpPerspective with the 
arguments (CvArr src, CvArr dst, CvMat map_matrix).

To be able to use this function, we have to use the following prototype: 
cvWarpPerspective(CvArr src, CvArr dst, CvMat map_matrix,
            int flags/*=CV_INTER_LINEAR+CV_WARP_FILL_OUTLIERS*/,
            CvScalar.ByValue fillval/*=cvScalarAll(0)*/)

Original issue reported on code.google.com by rizok...@gmail.com on 9 May 2010 at 4:57

GoogleCodeExporter commented 9 years ago
More details please....

Samuel

Original comment by samuel.a...@gmail.com on 10 May 2010 at 8:05

GoogleCodeExporter commented 9 years ago
Sorry I wasn't clear enough.
I'm trying to call cvWarpPerspective( IplImage, IplImage, CvMat ) but Eclipse 
won't 
let me do it:

"The method cvWarpPerspective(cxcore.CvArr, cxcore.CvArr, cxcore.CvMat, int, 
cxcore.CvScalar.ByValue) in the type cv is not applicable for the arguments 
(cxcore.IplImage, cxcore.IplImage, cxcore.CvMat)"

Instead I have to call it like this: cvWarpPerspective( img1, img2, mat, 
CV_INTER_LINEAR+CV_WARP_FILL_OUTLIERS, CvScalar.ZERO );

Original comment by rizok...@gmail.com on 10 May 2010 at 8:55

GoogleCodeExporter commented 9 years ago
Ah, I see. That is a known problem with the Eclipse incremental compiler.. I 
don't
use Eclipse myself, but there is a way to disable it and use the standard javac
compiler instead. (Or my recommendation: Use NetBeans)

Samuel

Original comment by samuel.a...@gmail.com on 10 May 2010 at 9:05

GoogleCodeExporter commented 9 years ago
thanks !

Original comment by rizok...@gmail.com on 10 May 2010 at 9:09