I have a 256x256 2-dimensional array of floats that I am trying to pass into a function and g++ is giving me the error message: Cannot convert 'int (*)[256]' to 'int**'
. How can I resolve this?
void haar2D(int** imgArr);
int imageArray[256][256];
haar2D(imageArray);
I have tried changing the function parameter to types int[256][256]
and int*[256]
without successs.