Filter löschen
Filter löschen

trying to average some tiff's images

6 Ansichten (letzte 30 Tage)
hasan alhussaini
hasan alhussaini am 6 Sep. 2017
Kommentiert: Image Analyst am 6 Sep. 2017
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?

Akzeptierte Antwort

Image Analyst
Image Analyst am 6 Sep. 2017
No, it's not correct. Not even very close. See my attached example. Adapt as needed.
  2 Kommentare
hasan alhussaini
hasan alhussaini am 6 Sep. 2017
you mean my code is wrong or KSSV?
Image Analyst
Image Analyst am 6 Sep. 2017
Your code is way wrong.

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (1)

Kategorien

Mehr zu Image Processing Toolbox finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by