MATLAB: How can i find the number of pixels in any RGB image

image processingMATLAB

I want to compare algorithms for face setection for which i want to find the number of pixels in it

Best Answer

image = imread('image.jpg');
[height, width, channels] = size(image);
pixels = height * width