Hey! i implement this code to my app and i start getting the error in the bottom any ideas?
I think is the convertToGrayscalePlanarImages function.
photoCV.convertToGrayscalePlanarImages(r, g, b);
r.brightnessContrast(brillo, contraste);
g.brightnessContrast(brillo, contraste);
b.brightnessContrast(brillo, contraste);
photoCV.setFromGrayscalePlanarImages(r, g, b);
OpenCV Error: Null pointer (Null pointer to image) in cvGetImageROI, file /Users/danielrosser/Documents/openFrameworks/scripts/apothecary/build/OpenCV/modules/core/src/array.cpp, line 3057
libc++abi.dylib: terminating with uncaught exception of type cv::Exception: /Users/danielrosser/Documents/openFrameworks/scripts/apothecary/build/OpenCV/modules/core/src/array.cpp:3057: error: (-27) Null pointer to image in function cvGetImageROI