I'm doing the following:
image = image.clone(); // ensure continuous memory
double *im = (double *) calloc(image.total() *image.elemSize(), sizeof (double));
im = (double *)image.data;
What I thought this was doing was giving me a pointer to the image data, however when i print out the memory in a debugger I get different values after I add the same offset to both (i.e. x/100 image.data+100 != x/100 im+100).
Is my pointing not doing what I think it is and if so why?