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

1 次查看(过去 30 天)
I want to compare algorithms for face setection for which i want to find the number of pixels in it

采纳的回答

Jonathon Gibson
Jonathon Gibson 2018-6-28
image = imread('image.jpg');
[height, width, channels] = size(image);
pixels = height * width

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Images 的更多信息

产品

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by