As I can see from sources this include is not needed. All constants without CV_ prefix are defined in highgui.hpp