i checked imread function code but couldnt understand how it is calculating the data from given image.Please explain.
1 Answer
$\begingroup$
$\endgroup$
'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.