FInd a mean image with multiple images

4 Ansichten (letzte 30 Tage)
YJ
YJ am 26 Apr. 2014
I have set of images, about 200, on particular object which are in grey-scale.
200 images have same dimension of matrix but has different values in cells
Here, I want to get a single image that has a mean image of 200 images.
So is there a way to compute a single mean image for 200 images?
-that is, 200 images of pixels at certain cell are added up and deivded by 200. (each cell have average pixel value)
<<Note-nfile-nbsp-naems-nbsp-are-nbsp-B00001-nbsp---nbsp-B00200-nreadimx-nbsp-function-nbsp-load-nbsp-raw-nbsp-data-nbsp-from-nbsp-the-nbsp-images-nbsp-with-nbsp-additional-nbsp-information-nbsp-on-nbsp-images.>>
Here is a code that brings a single image (found this works)
img_path = 'E:\test\';
im7_files = dir([img_path '*.im7']);
A1 = readimx([img_path im7_files(1).name]);
figure;imagesc(double(A1.Data));colormap jet;colorbar;
Here is a code that I tried to compute single mean images with 200 images.
img_path = 'E:\test\';
im7_files = dir([img_path '*.im7']); %load all im7 files
for i = 1:length(im7_files);
A1 = readimx([img_path im7_files(i).name]); %read all im7 files
end
figure;imagesc(double(A1.Data));colormap jet;colorbar;
I am not sure the figure it pop out is mean image or not.. if it isn't how can I fix it?

Antworten (0)

Kategorien

Mehr zu Images 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