4
I’m reading the tutorials on the website of lib Opencv and during reading I saw the declaration of a function with a variable in a format I’ve never seen. I wanted to know what it means, declare the variable in this way. Follow the function signature:
Mat& ScanImageAndReduceRandomAccess(Mat& I, const uchar * const table)
const uchar * const table
I know it’s a pointer to a unsigned char
, but I’ve never seen two const
being used this way! This is my question: What is he trying to say?
I removed the Opencv tag because you could have found it in any library anywhere. The fact that the signature is like this is not something particular or specific to Opencv.
– Victor Stafusa