openCV

Hello,
Im new to openCV and im trying to load image and create a pointer to the image data.

i wrote the next code:

src1 = cv::imread("test2.jpg");
float *ptrF2 = (float*)(src1.data);

and its doesnt work,
Thanks!
Topic archived. No new replies allowed.