Having a bit of trouble here with some code for working with images. I will first say that this does involve using OpenCV so if this is not the place for this issue do not hesitate to let me know.
Essentially what I am having trouble with doing is error checking a cv::Mat using a if statement. Here is my code:
==========
Basically what I did was convert a IplImage variable to cv::Mat. That was src to srcMat. That is going through with no trouble from what I can see as it builds just fine if I comment out the entire If statement. The issue is the if statement itself. How do I check to see if scrMat got its value or if it is NULL using a if statement? I have searched this to death and can not find this.