Matlab (Tips for Image Noise Reduction)

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

Info iconThis 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
Background image of page 1

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

View Full DocumentRight Arrow Icon
Background 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

This note was uploaded on 04/10/2011 for the course ENGR 140 taught by Professor Black during the Spring '11 term at Auburn University.

Page1 / 2

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

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online