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

조회 수: 1 (최근 30일)
Manpreet Kaur
Manpreet Kaur 2018년 6월 28일
답변: Jonathon Gibson 2018년 6월 28일
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