0
$\begingroup$

i checked imread function code but couldnt understand how it is calculating the data from given image.Please explain.

$\endgroup$
2
$\begingroup$

'imread' function just read the RGB(in case of color image) or black/white(in case of black and white image) value of each pixel in image and shows it in a matrix format.
it is not 'calculating' these values its just reading them from the image/path you provide to imread function.

$\endgroup$

Not the answer you're looking for? Browse other questions tagged or ask your own question.