How to get average image on multiple frames in folder

3 ビュー (過去 30 日間)
devabhaktuni phaneendrababu
devabhaktuni phaneendrababu 2013 年 10 月 1 日
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 .

採用された回答

Image Analyst
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 件のコメント
devabhaktuni phaneendrababu
devabhaktuni phaneendrababu 2013 年 10 月 3 日
編集済み: devabhaktuni phaneendrababu 2013 年 10 月 3 日
thanks its working

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeConvert Image Type についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by