FInd a mean image with multiple images
4 views (last 30 days)
Show older comments
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?
0 Comments
Answers (0)
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!