Ask Your Question

Revision history [back]

OpenCV Macro CV_BGR2RGBA Not Defined.

Hello OpenCV experts,

I was using the following function with headers:

```

include <opencv2 core="" core.hpp="">

include <opencv2 highgui="" highgui.hpp="">

include <opencv2 opencv.hpp="">

cv::cvtColor(imageBGR, imageRGBA, CV_BGR2RGBA); ```

However, when I compile, I got error:

"error: identifier "CV_BGR2RGBA" is undefined" Please let me know how to use this macro correctly. Thank you.

OpenCV Macro CV_BGR2RGBA Not Defined.

Hello OpenCV experts,

I was using the following function with headers:

```

include <opencv2 core="" core.hpp="">

include <opencv2 highgui="" highgui.hpp="">

include <opencv2 opencv.hpp="">

#include <opencv2/core/core.hpp>
#include <opencv2/highgui/highgui.hpp>
#include <opencv2/opencv.hpp>
cv::cvtColor(imageBGR, imageRGBA, CV_BGR2RGBA);
```

However, when I compile, I got error:

"error: identifier "CV_BGR2RGBA" is undefined" Please let me know how to use this macro correctly. Thank you.