Advertisement
Guest User

Untitled

a guest
Feb 26th, 2017
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. IplImage* mCVImageColor = cvCreateImageHeader(cvSize(640,480), IPL_DEPTH_8U, 4);
  2. /*Doing something*/
  3. IplImage* imgHSV = cvCreateImage(cvGetSize(mCVImageColor), IPL_DEPTH_8U, 4);
  4. cvCvtColor(mCVImageColor, imgHSV, CV_BGR2HSV); //This line throws exception
  5.  
  6. cvCvtColor(mCVImageColor, imgHSV, CV_BGRA2HSV);
  7.  
  8. cvtColor(inputMat, outputMat, CV_BGRA2BGR);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement