Question: *** Matlab Code *** Write a program that will average a collection of images, compute the standard deviations at each pixel, and display the results

*** Matlab Code ***

*** Matlab Code *** Write a program that will average a collection

Write a program that will average a collection of images, compute the standard deviations at each pixel, and display the results The images below give some examples that were generated by averaging "100 unique commemorative photographs culled from the internet" by Jason Salavon. Your program will do something similar Little Leaguer Kids with Santa The Graduate Newlyweds From: 100 Special Moments, by Jason Salavon (2004) http://salavon.com/SpecialMoments/SpecialMoments.shtml There are two collects of images provided for this assignment: setl and set2. Notice that they are all the same size within a single set. Write code to do these things per set of images: Compute the average image in grayscale Compute the average image in color, by averaging per RGB channel Compute a matrix holding the grayscale images' standard deviation at each pixel (i.e., X(i.j) holds the standard deviation across all the images' gray pixel intensities at row i, column j) Display each of the above Apply these steps to the two sets, separately. In your write-up, briefly explain the results do they look the way they do? why Matlab tips Be sure to do the necessary typecasting (uint8 and double) when working with or displaying the images Some useful functions: dir, length, zeros, imshow, imread, rgb2gray, mean, std, figure, title, subplot The following code fragment can be used to loop through all the image files in one directory (here assuming your images are in a sub-directory named images, with jpg extension) filelist dir('images/.jpg); for i-1:length(filelist) imname-['images filelist(i).name] nextim imread(imname); End Write a program that will average a collection of images, compute the standard deviations at each pixel, and display the results The images below give some examples that were generated by averaging "100 unique commemorative photographs culled from the internet" by Jason Salavon. Your program will do something similar Little Leaguer Kids with Santa The Graduate Newlyweds From: 100 Special Moments, by Jason Salavon (2004) http://salavon.com/SpecialMoments/SpecialMoments.shtml There are two collects of images provided for this assignment: setl and set2. Notice that they are all the same size within a single set. Write code to do these things per set of images: Compute the average image in grayscale Compute the average image in color, by averaging per RGB channel Compute a matrix holding the grayscale images' standard deviation at each pixel (i.e., X(i.j) holds the standard deviation across all the images' gray pixel intensities at row i, column j) Display each of the above Apply these steps to the two sets, separately. In your write-up, briefly explain the results do they look the way they do? why Matlab tips Be sure to do the necessary typecasting (uint8 and double) when working with or displaying the images Some useful functions: dir, length, zeros, imshow, imread, rgb2gray, mean, std, figure, title, subplot The following code fragment can be used to loop through all the image files in one directory (here assuming your images are in a sub-directory named images, with jpg extension) filelist dir('images/.jpg); for i-1:length(filelist) imname-['images filelist(i).name] nextim imread(imname); End

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!