필터 지우기
필터 지우기

Count of total pixels and dimensions(rows and columns) of a picture?

조회 수: 8 (최근 30일)
How do I obtain the number of pixels and the dimensions of this picture?

채택된 답변

Davide Masiello
Davide Masiello 2022년 3월 16일
편집: Davide Masiello 2022년 3월 16일
grayImage = imread('retina.jpg');
numberOfPixels = numel(grayImage)
numberOfPixels = 1879445
[rows,cols] = size(grayImage)
rows = 1357
cols = 1385
  댓글 수: 3
Image Analyst
Image Analyst 2022년 3월 16일
image is a built-in function. It's best to choose another name, like grayImage.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Read, Write, and Modify Image에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by