필터 지우기
필터 지우기

how to find average pixels value from matrix 3*3

조회 수: 1 (최근 30일)
asthana
asthana 2014년 5월 4일
답변: Youssef Khmou 2014년 5월 4일
hello i have the 3*3 matrix now i want to find the average value of it. the image is in gray color. so how to do same...

답변 (2개)

Image Analyst
Image Analyst 2014년 5월 4일
For one array:
meanValue = mean2(array3by3);
To do it for every pixel in an entire image:
meanImage = imfilter(grayImage, ones(3)/9);
This produces an output image where every pixel is the average of the 9 pixels at the same location in the input image.

Youssef  Khmou
Youssef Khmou 2014년 5월 4일
try :
H=mean(M(:));

카테고리

Help CenterFile Exchange에서 Image Processing Toolbox에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by