Search code examples
c++opencviplimage

OpenCV's IplImage* as function parametr error


I am using OpenCV library and I want to clone picture in separate function, but I cannot send address to the function

IplImage* image = cvLoadImage( path, CV_LOAD_IMAGE_GRAYSCALE ); // loading is ok
showFoundPoints(image); // -> here it shows errors
...

//my function
int showFoundPoints(IplImage*image)
{...}

And I got this build error:
error: conversion from IplImage*' to non-scalar typestd::string' requested

I don't get why is there conversion. It looks very simple, but I really don't know what to do with this.
Thanks for help.


Solution

  • Is the definition of showFoundPoints consistent in the header and the source? It would seem you have it declared differently; one taking a std::string and the other not.