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

1 Ansicht (letzte 30 Tage)
Manpreet Kaur
Manpreet Kaur am 28 Jun. 2018
Beantwortet: Jonathon Gibson am 28 Jun. 2018
I want to compare algorithms for face setection for which i want to find the number of pixels in it

Akzeptierte Antwort

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

Weitere Antworten (0)

Kategorien

Mehr zu Images finden Sie in Help Center und File Exchange

Produkte

Community Treasure Hunt

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

Start Hunting!

Translated by