Matlab (Tips for Image Noise Reduction)

Matlab (Tips for Image Noise Reduction) - file and insert...

Info icon This preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
Tips for Image Averaging Assignment 1. To display an image arrayname , use either imshow( arrayname ,[]) or imtool( arrayname , []) If the image arrayname is an array of n 2-D images, to display a single 2-D image, for example the 5 th image: imshow( arrayname (:,:,5),[]) or imtool( arrayname (:,:,5),[]) The empty square brackets optimize the display of the grayscale display of the image. 2. figure( n ) opens a new figure window, numbered Figure n. For example, figure(3) opens a new figure window labeled Figure 3. The next imshow command will write to this window. Imtool always opens a new window. 3. close all closes all figure windows. Imtool windows must be closed individually. 4. To paste a figure into your document, click on Edit on the figure window toolbar, then choose Copy Figure. Paste to your document. You could also save the figure as a .bmp
Image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: file and insert it into your document. If the figure is in an imtool window, first choose File then Print to Figure, then Edit and Copy Figure from the Figure window that pops up. 5. To execute a series of commands repeatedly, use a "for" loop: for i = 1:16, figure(i) imshow(noisy(:,:,i),) end 6. To calculate the standard deviation of the values in a range of a matrix, you can use my function calcstd. For example, to find the standard deviation of the intensities in columns 5 through 20 of rows 2 through 8 of the matrix noisy(:,:, 3): calcstd(noisy(2:8, 5:20, 3)) Remember that the rows are the "y" values in imtool and the columns are the "x" values. If the image matrix is 2-D, use the following: calcstd(averaged(2:8, 5:20))...
View Full Document

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern