How to get the number of pixels in an image? Following is my code, and I need to get the total number of pixels in Mat "m".
int main() { Mat m = imread("C:/Users/Public/Pictures/Sample Pictures/Penguins.jpg"); namedWindow("Image"); imshow("Image",m); waitKey(0); }