필터 지우기
필터 지우기

trying to average some tiff's images

조회 수: 6 (최근 30일)
hasan alhussaini
hasan alhussaini 2017년 9월 6일
댓글: Image Analyst 2017년 9월 6일
Hi i'm trying to average 5 tiff images, i'm not sure if im doing it correctly?
A=5
ysize= 2368;
xsize= 2240;
dark = zeros(ysize,xsize);
[darklist,~] = uigetfile({'*.jpg;*.tif;*.png;*.gif','All Image Files';...
'*.*','All Files'},'Select the dark image(s)','MultiSelect', 'on');
for k = 1:A
if(~iscell(darklist))
imtemp = imread(darklist);
else
dark = imread(darklist{k});
doubletemp=double(imtemp);
end
averagedark = (doubletemp+dark)./A;
% ;Average dark images
end
is this correct? they are CT images, and each image took is around 20 frames.. if that can be of any use?

채택된 답변

Image Analyst
Image Analyst 2017년 9월 6일
No, it's not correct. Not even very close. See my attached example. Adapt as needed.
  댓글 수: 2
hasan alhussaini
hasan alhussaini 2017년 9월 6일
you mean my code is wrong or KSSV?
Image Analyst
Image Analyst 2017년 9월 6일
Your code is way wrong.

댓글을 달려면 로그인하십시오.

추가 답변 (1개)

카테고리

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