필터 지우기
필터 지우기

How i can calculate row wise avg of an image??

조회 수: 4 (최근 30일)
Sohel Ahammed
Sohel Ahammed 2015년 6월 30일
댓글: Thorsten 2015년 6월 30일
temp1 = double(imread('im1.JPG')); %img1.jpg is a 240*20 pixels in size;
%expected output 240 rows with single column with avg or mean ;
output= mean(temp1,240)

채택된 답변

Thorsten
Thorsten 2015년 6월 30일
output = mean(temp1, 2);
  댓글 수: 4
Thorsten
Thorsten 2015년 6월 30일
I interpreted 240*20 as row x column; if it is x * y, you can use Stephen's code or simply
output = mean(temp1);

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

추가 답변 (0개)

태그

아직 태그를 입력하지 않았습니다.

Community Treasure Hunt

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

Start Hunting!

Translated by