Answered step by step
Verified Expert Solution
Question
1 Approved Answer
*** 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 ***
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); EndStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started