Академический Документы
Профессиональный Документы
Культура Документы
. 1
.... . .
This work is licensed under the Creative Commons Attribution-Noncommercial 2.5 License. To view a copy of this license, visit http://creativecommons.org/licenses/by-nc/2.5/ or send a letter to Creative Commons, 543 Howard Street, 5th Floor, San Francisco, California, 94105, USA.
Pratt Pratt& &Whitney WhitneyRocketdyne RocketdyneJ-2 J-2rocket rocketengines engines on Apollo 18s Saturn V second stage. on Apollo 18s Saturn V second stage.
Periodic Noise
original image
15 November 2011
image + noise
2
Pratt Pratt& &Whitney WhitneyRocketdyne RocketdyneJ-2 J-2rocket rocketengines engines on Apollo 18s Saturn V second stage. on Apollo 18s Saturn V second stage.
image + noise
15 November 2011 1999-2011 by Richard Alan Peters II
blurred image
3
original image
15 November 2011
image + noise
4
original image
15 November 2011
image + noise
5
noise mask
15 November 2011
Pratt Pratt& &Whitney WhitneyRocketdyne RocketdyneJ-2 J-2rocket rocketengines engines on Apollo 18s Saturn V second stage. on Apollo 18s Saturn V second stage.
original image
15 November 2011
Take the FFT of the input image. F = fft2(I). Display the log power spectrum of the fftshift-ed F. Find the locations, xi, of the spikes that correspond to the periodic distortion. Create a 1-band image, M, of class double the same size as I. Set all Ms pixels to 1.0. Let N(xi) be a neighborhood of xi with area sufficient to cover the spike at xi. For each xi do: for each yj N(xi), set M(yj) = 0. Blur M with a Gaussian whose is smaller than the radius of N(xi). Take the ifftshift of M.
10. For
each band, k, of the image let Gk = Fk .*M. 11. Then the noise-reduced image is: J = real(ifft2(G)).
15 November 2011 1999-2011 by Richard Alan Peters II 8
How to determine the frequency and period of a point in the log power spectrum of an image (ex.):
C
(0,0)
C/2 + 1
C/2 - 1 R/2 + 1
C/2 + 1
R R/2 - 1
original image
15 November 2011
R/2 + 1
quadrant partition of PS
1999-2011 by Richard Alan Peters II
How to determine the frequency and period of a point in the log power spectrum of an image (ex.):
339
(0,0)
170
169
170
241
480
original image
15 November 2011
239
241
quadrant partition of PS loc of (0,0) in fftshift(PS)
10
How to determine the frequency and period of a point in the log power spectrum of an image:
c1 r1 c2 -u
R/2 + 1
r2
-v
C/2 + 1
15 November 2011 1999-2011 by Richard Alan Peters II
u
11
How to determine the frequency and period of a point in the log power spectrum of an image:
-u
v = r2 R / 2 1 v = R / 2 + 1 r1 u = c2 C / 2 1
-v
u = C / 2 + 1 c1
wf =
( ) +( )
C u R v
wf =
1 wf
u
15 November 2011 1999-2011 by Richard Alan Peters II
vC wf = tan1 uR
12
u = C and v = u
R v
pixels.
of a digital image
wf = tan1 ( vC , uR )
and the wavelength is - direction
wf =
( ) +( )
C u R v
v R
.
(0,0)
cycles.
1999-2011 by Richard Alan Peters II
u direction
, and
wf = 1
15 November 2011
( ) ( )
C 2 R 2 + u v
13
How to to determine determine the the frequency frequency How plane location location of of a a sinusoid: sinusoid: plane
c
257
r
512
r = / cos( )
-64
c = / sin( ) -32
257
A cos 2 ( r sin + c cos ) +
32
64
512
15 November 2011 1999-2011 by Richard Alan Peters II
How to to determine determine the the frequency frequency How plane location location of of a a sinusoid: sinusoid: plane
=1 u=-256 u=-256 rr=1
u = R / r v = C / c
-8 8
u = 512/64 u= 512/64 = = 512/64 v v 512/64
v
(0,0) (257,257) (257,257) (0,0)
15 November 2011
Sinusoidal grating image with an even number or rows and an odd number of columns.
c r
c= 40 r -23
u = R / r v = C / c
(0,0) v
-19 19 22
15 November 2011
Merriam-Webster Dictionary: halftone 2 (1): a photoengraving made from an image photographed through a screen and then etched so that the details of the image are reproduced in dots.
15 November 2011
18
isthe thepointwise pointwiseproduct productof of is 2sinusoidal sinusoidalgratings gratingswith with 2 perpendicularorientations. orientations. perpendicular
15 November 2011
frequency
19
Theorientation orientationof ofthe the The screenis isthe theaverage averageof of screen thegrating gratingorientations. orientations. the
15 November 2011
frequency
20
Image from Adobe Photoshop CS2 documentation. 15 November 2011 1999-2011 by Richard Alan Peters II 21
Each Eachband bandhas has2 2perpendicular perpendicular sinusoids + a DC component sinusoids + a DC component
Power Spectra
15 November 2011 1999-2011 by Richard Alan Peters II 22
105
75
yellow
black
90
45
When Whenthe the4 4are aresummed, summed,the the result is a rosette image. result is a rosette image.
105
75
yellow
black
90
45
To Toprint printan animage, image,it itis is separated into 4 color separated into 4 colorbands bands
That Thatis, is,an anintensity intensityimage imageis is created for each of the four created for each of the four color colorbands. bands.
15 November 2011
25
each eachof ofwhich whichis ismultiplied multipliedby by aacorresponding screen. corresponding screen.
Yellow
Black
each eachscreened screenedimage imageis isprinted printedin in its own color on the same page. its own color on the same page.
15 November 2011
26
To Toprint printan animage, image,it itis is separated into 4 color separated into 4 colorbands bands
Here Herethe thebands bandstinted tintedin intheir their corresponding colors. corresponding colors.
15 November 2011
27
each eachof ofwhich whichis ismultiplied multipliedby by aacorresponding screen corresponding screen
Here Herethe thescreens screenstinted tintedin in their corresponding colors. their corresponding colors.
15 November 2011
28
to toget getdot dotpatterns patternsfor forprinting. printing. The 4 are printed over each The 4 are printed over eachother other to get the final result. to get the final result.
15 November 2011
29
Halftone Dots
Detail: Circular patterns, the rosettes, are the result of the halftone dots.
30
original
15 November 2011
31
Eachpair pairof ofpeaks peaks Each correspondsto toaa corresponds sinusoidalsub-pattern sub-pattern sinusoidal inthe theHTD HTDpattern. pattern. in
original
15 November 2011
32
blurred image =1
15 November 2011
33
blurred image =2
15 November 2011
34
blurred image =4
15 November 2011
35
blurred image =8
15 November 2011
36
original
difference
middle gray = 0, normalized
blurred = 1
15 November 2011
37
blurred = 2
difference
middle gray = 0, normalized
original
15 November 2011
38
original
difference
middle gray = 0, normalized
blurred = 4
15 November 2011
39
blurred = 8
difference
middle gray = 0, normalized
original
15 November 2011
40
15 November 2011
1. Read in image; 2. Compute power spectrum; 3. Locate HTD frequency components; 4. Mark locs on a mask; 5. Enlarge points to regions; 6. Blur the mask; 7. Multiply FT of image by mask; 8. Take inverse FT of result; 15 November 2011 1999-2011 by Richard Alan Peters II 42
original
15 November 2011
43
Notch Filtering
Sincenot notmuch muchdistortion distortionwas was Since removed,these thesemust mustbe besubharmonics subharmonics removed, ofthe thetrue truedot dotfrequencies frequencies of
frequency masked 1
15 November 2011
44
Notch Filtering
Theouter outerring ringare arethe theactual actualHTD HTD The frequencies. Can Canwe wedo doany anybetter? better? frequencies.
frequency masked 2
15 November 2011
45
Notch Filtering
Notmuch. much.The Theharmonics harmonicscontribute contribute Not littleenergy energyto tothe theimage. image. little
frequency masked 3
15 November 2011
46
original
difference
middle gray = 0, normalized
frequency masked 1
15 November 2011
47
frequency masked 2
difference
middle gray = 0, normalized
original
15 November 2011
48
original
difference
middle gray = 0, normalized
frequency masked 3
15 November 2011
49
frequency masked 1
difference
middle gray = 0, normalized
frequency masked 2
15 November 2011
50
frequency masked 2
difference
middle gray = 0, normalized
frequency masked 3
15 November 2011
51