i want to read grey level values of an image in binary form using fread, inorder to implement this i have used double pointer concept for storing two-dimensional array of pixels...when i executed the below statements in 'c' i got the output as "1390null pointer assignment"
fread(&in[0][0], sizeof(unsigned char), 1, fpi);
a = (int)in[0][0];
printf("%d", &a);
here in[0][0] is the first pixel and the grey level value is assigned to an integer 'a'
i did this inorder to debug the program as it was not giving desired output image.
fread(&in[0][0], sizeof(unsigned char), 1, fpi);
a = (int)in[0][0];
printf("%d", &a);
here in[0][0] is the first pixel and the grey level value is assigned to an integer 'a'
i did this inorder to debug the program as it was not giving desired output image.