필터 지우기
필터 지우기

Averaging Several Frames, Same Resolution / Same Sized Output

조회 수: 4 (최근 30일)
ES
ES 2020년 3월 24일
답변: Rashedur Rahman 2020년 3월 26일
I'm looking to average several single frames extracted from a video sequence (in tif format). They are all the same size and have the same pixel resolution.
I would like the output to have the same resolution, dimensions, and file format as the input frames. Can anybody help?

답변 (1개)

Rashedur Rahman
Rashedur Rahman 2020년 3월 26일
You can simply use smilar code as following
%assuming that the images are RGB
ImageArray(:,:,:,1) = Image1;
ImageArray(:,:,:,2) = Image2;
MeanImage = mean(ImageArray,4);

Community Treasure Hunt

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

Start Hunting!

Translated by