'=' : cannot convert from 'void *' to 'CvPoint *' 1> Conversion from 'void*' to pointer to non-'void' requires an explicit cast
m trying to execute the code which is in https://github.com/bengal/opencv-hand-detection but getting the error above.. m new to this.. please help me out..
line:87, error:'=' : cannot convert from 'void ' to 'CvPoint *' Conversion from 'void' to pointer to non-'void' requires an explicit cast
line:88, error:'=' : cannot convert from 'void ' to 'CvPoint *' Conversion from 'void' to pointer to non-'void' requires an explicit cast
line:167, error:'=' : cannot convert from 'void ' to 'CvConvexityDefect *' Conversion from 'void' to pointer to non-'void' requires an explicit cast
line:194, error:'sqrt' : ambiguous call to overloaded function c:\program files (x86)\microsoft visual studio 10.0\vc\include\math.h(589): could be 'long double sqrt(long double)' c:\program files (x86)\microsoft visual studio 10.0\vc\include\math.h(541): or 'float sqrt(float)' c:\program files (x86)\microsoft visual studio 10.0\vc\include\math.h(127): or 'double sqrt(double)' while trying to match the argument list '(int)'
line:218, error:'=' : cannot convert from 'void ' to 'CvPoint *' Conversion from 'void' to pointer to non-'void' requires an explicit cast
Any help would be greatly appreciated. Thanks in advance
312 lines of code, please specify, where it happens ;(
did you actually tried the suggested approach below? Because the explicit conversion will actually fix the problem ...
m new to this language m nt getting wats all this explicit conversion :'(
just place for each malloc in your code, the explicit rule that vladislav explained. It will solve the problem :) Not that hard right?
Yep i got it ;) but i have an exception too :( can u please try to solve this?? help me out na....
Unhandled exception at 0x754fc41f in meghana.exe: Microsoft C++ exception: cv::Exception at memory location 0x0033f288.. i dnt kno y m getting this
this is actually telling you are trying to reach for a location in memory that does not exist or that is locked for editing. If you use the C-like API, you need to pay large attention in using pointers and such!
so wat should i do now?
Examing the path of your pointers. Make a sketch of how your data is handled, and it will be clear where it goes wrong. Or switch towards C++ style API if you do not want to take care of this manually.
@roomini, if u solved the problem, can you help me out what you did?