필터 지우기
필터 지우기

how to get the mean of different images covered the same area?

조회 수: 1 (최근 30일)
mahesh chathuranga
mahesh chathuranga 2014년 3월 25일
답변: Image Analyst 2014년 3월 25일
i have 7 days precipitation data images(tif format)of same area.i want to get the average of this seven images.(pixel wise average) it means average image of this 7 images.how to do it?

답변 (1개)

Image Analyst
Image Analyst 2014년 3월 25일
Try this:
averageImage = (double(image1) + double(image2) + double(image3) + double(image4) + double(image5) + double(image6) + double(image7)) / 7;
Then to get the mean, it depends on how the area is defined. If it's a box, then you can use mean2().
meanValue = mean2(averageImage(row1:row2, col1:col2));
If it's a binary mask
meanValue = mean(averageImage(maskImage));

카테고리

Help CenterFile Exchange에서 Gravitation, Cosmology & Astrophysics에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by