Error: cannot convert ‘cv::Mat::channels’ from type ‘int (cv::Mat::)() const’ to type ‘int’

Hi,

./src/image_opencv.cpp:46:12: error: cannot convert ‘cv::Mat::channels’ from type ‘int (cv::Mat::)() const’ to type ‘int’

Based on the error message, the image is a const variable.
This indicates the variable is immutable.

Thanks.