How to get average image on multiple frames in folder
조회 수: 11 (최근 30일)
이전 댓글 표시
devabhaktuni phaneendrababu
2013년 10월 1일
댓글: devabhaktuni phaneendrababu
2013년 10월 3일
Each image is 256 by 256 pixel size.The file I got from the experiments is a .dcm(dicom) int 16 data.the file contains 1000 frames .
댓글 수: 0
채택된 답변
Image Analyst
2013년 10월 2일
Read in each frame, cast it to double, and accumulate, then divide to get the average.
for k = 1 : numberOfFrames
% read in frame with domcomread()
if k == 1
sumFrame = double(thisFrame);
else
sumFrame = sumFrame + double(thisFrame);
end
end
averageFrame = sumFrame / numberOfFrames;
댓글 수: 1
추가 답변 (0개)
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!