Ask Your Question

Revision history [back]

You need to be carefull when switching in between 2.4 versions and 3.0 version, since variables all got different names. Namely looking at image = imread("C:\\Desktop\\Lighthouse.jpg", IMREAD_COLOR); you should be aware that:

  • For the 2.4 repo's it needs to be image = imread("C:\\Desktop\\Lighthouse.jpg", CV_IMREAD_COLOR); with the CV prefix. This did change around 2.4.10 or 2.4.11 where the newer variables where introduced.
  • For the 3.0 repos you need indeed image = imread("C:\\Desktop\\Lighthouse.jpg", IMREAD_COLOR);

Can you see if this works?