I searched around a bit on here but nobody seems to have the same error, I am trying to create a color detection camera on the raspberry pi, I used
https://github.com/robidouille/robidouille/tree/master/raspicam_cv
for the tutorial and got it working, but now when I have
IplImage* image = raspiCamCvQueryFrame(capture);
cv::cvtColor(cv::Mat(image), x, cv::COLOR_BGR2HSV);
it will compile, but when run it gives
Unrecognized or unsupported array type in function cvGetMat
Without the cv::Mat(image) I can't compile because of
Invalid initialization of reference of type "cv::InputArray" from expression of type "IplImage*"
IplImageis from the oldcvinterface whileMatis part of the new interface. Stick with one or the other. - rayryeng