원시데이터 수집 시스템
선정목록으로

Periodic Artifact Reduction in Fourier transforms of Full Field Atomic Resolution Images

간접 관련 산업용 섬유 · (10) 아라미드 (6) PEM(고분자전해질막)(7) MEA(막전극접합체)(15) 디스플레이 패널재료

기본 정보

저자
  1. Hovden, Robert
  2. Jiang Yi
  3. Xin, Huolin L.
  4. Kourkoutis, Lena F.
DOI
10.48550/arxiv.2210.09024
저널
arXiv (Cornell University)
발행년도
2022
발행기관
Cornell University
피인용수
0
라이선스
cc-by
논문 유형
–
언어
–
원문 페이지
https://doi.org/10.48550/arxiv.2210.09024
토픽
Electron and X-Ray Spectroscopy Techniques
OpenAlex ID
W6891891232

평가 내용

관련도
간접 관련
사업분야
산업용 섬유 · (10) 아라미드
부 분야
(6) PEM(고분자전해질막), (7) MEA(막전극접합체), (15) 디스플레이 패널재료
R&D 측면
분석·모델링
확신도
0.70
근거 용어
STEM, Fourier transform, atomic resolution images, Periodic Plus Smooth Decomposition, diffraction pattern
판단 근거
이 논문은 전자현미경(STEM) 이미지 분석 시 발생하는 아티팩트를 제거하는 수학적 기법(P+S decomposition)을 다룹니다. 이는 아라미드 나노섬유(10)나 수소연료전지용 막(6, 7), 디스플레이 소재(15) 등 나노 단위의 결정 구조 및 계면 분석이 필수적인 코오롱인더스트리의 고부가가치 소재 R&D 분석 역량에 간접적으로 기여할 수 있습니다.
R&D 활용 포인트
고분자 나노섬유(아라미드 등)나 전해질 막의 결정 구조, 결함, 계면 특성을 전자현미경으로 분석할 때, 데이터 처리 알고리즘을 적용하여 분석의 정확도와 해상도를 높이는 데 활용 가능합니다.
평가 입력
본문 23,601자

초록

The discrete Fourier transform is among the most routine tools used in high-resolution scanning / transmission electron microscopy (S/TEM). However, when calculating a Fourier transform, periodic boundary conditions are imposed and sharp discontinuities between the edges of an image cause a cross patterned artifact along the reciprocal space axes. This artifact can interfere with the analysis of reciprocal lattice peaks of an atomic resolution image. Here we demonstrate that the recently developed Periodic Plus Smooth Decomposition technique provides a simple, efficient method for reliable removal of artifacts caused by edge discontinuities. In this method, edge artifacts are reduced by subtracting a smooth background that solves Poisson's equation with boundary conditions set by the image's edges. Unlike the traditional windowed Fourier transforms, Periodic Plus Smooth Decomposition maintains sharp reciprocal lattice peaks from the image's entire field of view.

본문 23,601자

본문 펼치기
# PERIODIC ARTIFACT REDUCTION IN FOURIER TRANSFORMS ### OF FULL FIELD ATOMIC RESOLUTION IMAGES Robert Hovden <sup>1</sup>, Yi Jiang <sup>2</sup>, Huolin L. Xin <sup>3</sup>, Lena F. Kourkoutis <sup>1,4</sup> _1 School of Applied and Engineering Physics, Cornell University, Ithaca, NY 14853_ _2 Department of Physics, Cornell University, Ithaca, NY 14853_ _3_ _<mark>Center for Functional Nanomaterials, Brookhaven National Laboratory, Upton, New York</mark>_ _<mark>11973</mark>_ _4_ _<mark>Kavli Institute at Cornell for Nanoscale Science, Ithaca, NY 14853</mark>_ ## PUBLISHED IN: Microscopy and Microanalysis, 21 (2), 436-441 (2015) doi:10.1017/S1431927614014639 ### Running Head : Artifact Reduction in DFT of Atomic Images Corresponding Author Robert Hovden 271 Clark Hall, Cornell University, Ithaca, NY 14853 Tel: 607 255-0654 Fax: 607 255-7658 E-mail: rmh244@cornell.edu Key Words: STEM, Fourier transform, data processing, atomic imaging, diffraction, aberration correction ### ABSTRACT The discrete Fourier transform is among the most routine tools used in high-resolution scanning / transmission electron microscopy (S/TEM). However, when calculating a Fourier transform, periodic boundary conditions are imposed and sharp discontinuities between the edges of an image cause a cross patterned artifact along the reciprocal space axes. This artifact can interfere with the analysis of reciprocal lattice peaks of an atomic resolution image. Here we demonstrate that the recently developed Periodic Plus Smooth Decomposition technique provides a simple, efficient method for reliable removal of artifacts caused by edge discontinuities. In this method, edge artifacts are reduced by subtracting a smooth background that solves Poisson’s equation with boundary conditions set by the image’s edges. Unlike the traditional windowed Fourier transforms, Periodic Plus Smooth Decomposition maintains sharp reciprocal lattice peaks from the image’s entire field of view. ### INTRODUCTION Modern electron microscopists have the luxury of studying the atomic structure of materials directly through real space imaging. With resolving power that distinguishes atomic columns in a crystal, one can count the atoms across a grain boundary, identify the structure of interfaces, and locate individual defects and dopants (Wall et al., 1974; Cowley & Smith, 1987; Batson et al., 2002; Voyles et al., 2003; Muller, 2009). However, real-space analysis of crystals is not always sufficient and the discrete Fourier transform (DFT) of atomic resolution images is routinely used to mimic a diffraction pattern—with reciprocal lattice spots reflecting the symmetry and spacing of a specimen’s crystal structure (Rust, 1974; Hashimoto et al., 1980). In a diffraction experiment, electrons scattered through a crystal are recorded in the diffraction plane (Thomson & Reid, 1927). This diffractogram reveals the Fourier transform magnitude of the electron potential as | _F_ { _V_ ( _r_ )}| <sup>2</sup> . On the other hand, a high-angle annular dark field scanning transmission electron micrograph (HAADF STEM) to a first approximation measures the real space atomic potentials, | _V(_ r _)_ | <sup>2</sup>, (under an incoherent linear imaging model). Its Fourier transform, _F_ {| _V_ ( _r_ )| <sup>2</sup> }, therefore, reflects the structure of a diffraction pattern but may permit additional peaks. Referring to the Fourier transform as a diffractogram can be misleading—or more insidiously, miseducating. Moreover, taking the Fourier transform of a digital image introduces artifacts that can impede interpretability of the spectrum. The most noticeable artifacts present in the power spectrum of an electron micrograph are obtrusive cross pattern streaks running vertically and horizontally through the center of the 2D Fourier transform. These originate from the periodic boundary conditions imposed by the DFT. Imagine wrapping the edges of the image—top to bottom; left to right (as illustrated in Figure 1). The mismatch in intensity where the boundaries meet are sharp and discontinuous; spanning low to high frequencies in reciprocal space along the two principle axes directions (Moisan, 2010; Wilbraham, 1848; Gibbs, 1899). This is known as the Gibbs-Wilbraham Phenomenon and appears as lines extending from the origin of a 2D Fourier Transform (Figure 1c) (Thomson & Reid, 1927; E Hewitt & R E Hewitt, 1979). Additional streaks around high intensity regions such as reciprocal lattice peaks are due to scan noise in the HAADF STEM image and are readily distinguished from the cross pattern artifacts. Scan noise causes streaks in a single direction perpendicular to the fast scan axis, originating from the Bragg spots of an atomic resolution image. These artifacts can be reduced by optimizing the microscope’s environment, improving the scan electronics, averaging an image series, or with post processing approaches—as discussed by previous investigators (Kirkland & Thomas, 1996; Muller et al., 2006; Jones & Nellist, 2013; Yankovich et al., 2014; Sang & LeBeau, 2014; Braidy et al., 2012). In this communication, we demonstrate a substantial reduction of the central cross pattern artifact caused by periodic boundaries through implementation of the Periodic Plus Smooth Decomposition (P+S) method. Developed by Moisan (Moisan, 2010) and inspired from previous work (Beaudoin & Beauchemin, 2002; Saito & Remy, 2006), the P+S technique decomposes the original image into a continuous periodic image and a smoothly varying background. The smooth background is obtained by solving Poisson’s equation with boundary conditions set by the discontinuities at the image’s edges. The periodic image is then obtained by subtracting the smooth varying background and has a Fourier transform that reflects the original image’s DFT, but without the cross pattern artifact. Altering only the low frequencies, this approach provides an accurate estimation of the Fourier spectrum in regions were atomic lattice Fourier peaks occur—with contributions from the entire image field. Traditional approaches, such as windowed Fourier Transforms heavily weight information at the center of an image and can miss important structure residing near the edges. ### RESULTS _Traditional Approaches to Periodic Edge Artifact Reduction_ One approach to obtaining continuity at the periodic boundaries is to symmetrize the image. Mirroring an image about the _x,y_ directions ensures continuous boundary conditions and greatly reduces the cross pattern artifact in the DFT (Fig. 2b,g). However, this process adds symmetries that do not exist in the original image. As seen in the DFT of the symmetrized image (Figure 2g), additional lattice spots appear that do not reflect the actual specimen. For the analysis of polycrystalline samples, where the radially integrated DFT intensity is of interest, symmetrizing may still be beneficial. Note that because the image size quadruples, there is a computational penalty—albeit manageable. A more common technique used in periodic artifact reduction is a windowed Fourier transform. The window is typically a smooth and continuous damping function with a central maximum that decays to zero (or nearly zero) at the edges of the image—as shown in Figure 2c,d. This not only removes the edge discontinuities—thus reducing the cross pattern artifacts—but also reduces the background level (side lobes) around each Fourier peak (Figure 2h,i). A multitude of window functions, each named to honor their inventor, have been devised to achieve different advantages (Harris, 1978). Figures 2c,h show the effect of applying a Hann window, a popular general use function, built from a raised cosine function that emphasizes a large central region of the image. As the window function becomes more spatially confined in real space, it degrades the resolution in reciprocal space. For atomic resolution images, this causes the diffraction peaks to become blurred. For closely spaced peaks—like those produced from the NiO [111] twin boundary in Figure 2—the intensity can smear into a single peak. Figure 2d shows a very tight window (flat top Fig. 2i) that causes the pairs of peaks in the DFT (clearly seen in Fig 2f or j) to become difficult or impossible to distinguish. A more deceptive consequence of using windowing for artifact reduction is the unequal weighting it places on the image. Regions toward the center of the image contribute strongly to the Fourier spectrum and information toward the edges of the field of view becomes negligible. As a result, crystallographic information that does not lie at the center of the image can be easily missed. Figure 3 shows a layered LaVO3/SrTiO3 material. One of the LaVO3 layers exhibits a super-lattice structure. From the real-space image (Figure 3a), this super-lattice structure is difficult to detect, but it clearly appears as additional peaks in the Fourier transform (Figure 3d). However, this structure would be missed entirely in the windowed transform (Figure 3e)—even when applying the relatively large Hann window. _Periodic Plus Smooth Decomposition_ Recently, Moisan (Moisan, 2010) proposed a decomposition method that removes the boundary artifacts (Figure 2j) while preserving all the diffraction peaks from the entire image field of view (Figure 3f). Here, an image ( _u_ ) is decomposed into a sum of a “periodic” component ( _p_ ) and a “smooth” component ( _s_ ), that is, _u_ = _p_ + _s_ . Mathematically, the smooth component ( _s_ ) is obtained by solving Poisson's equation ∇ <sup>!</sup> ?= ?, where ? is a boundary discontinuity image that captures the intensity gaps across the edges of the original image. In general, Poisson’s equation has a unique solution with slow spatial variation (Figure 4c). By subtracting _s_ from the original image, the periodic edge discontinuities are removed and the information at higher frequencies is preserved. The smooth component ( _s_ ) is computed directly from the “boundary” image. For an M by N image ?(?, ?), the “boundary” image is defined as ?= ?" + ?!, where ?? ?= 0 ?? ?= ?−1 ?" =, <sup>?(?−1 −?, ?) −?(?, ?)</sup>, 0 ???? ?? ?= 0 ?? ?= ?−1 ?! =, <sup>?(?, ?−1 −?) −?(?, ?)</sup> . 0 ???? Poisson's equation can be readily solved from the DFT of the “boundary” image, ? <sup>:</sup> ;?#, ?$=, (see Methods): ? <sup>:</sup> ;?#, ?$= ?̂;?#, ?$= = <sup><u>$</u></sup> −4 <u>?</u> 2cos <sup><u>2??#</u></sup> +2cos <sup><u>2??$</u></sup> <u>?</u> <u>?</u> ∀;?#, ?$= ∈Ω \(0,0), where Ω = {0, …, ?−1} × {0, …, ?−1} and ?̂;?#, ?$= is the DFT of the smooth component. Additionally, the P+S method imposes the constraint ?̂(0,0) = 0 so that the mean intensity of the periodic component is equivalent to the original image. The boundary artifact free DFT can be simply computed by ?̂;?#, ?$= = ?N;?#, ?$= −?̂;?#, ?$=, as illustrated in Figure 2j, 3f, and 4e. Hence, the effective computation cost of performing a P+S Fourier transform is one additional DFT. As an illustration, Figure 4a shows a STEM image of CdSe nanoparticles. After decomposition, the periodic component (Figure 4b) is continuous across the edges and its Fourier spectrum (Figure 4e) is visually identical to the original image (Figure 4d) with the cross artifacts removed—artifacts that now reside in the smooth component (Figure 4c,f). Since the Fourier transform is a linear operator, the Fourier transform of the smooth component (Figure 4f) illustrates exactly the intensity that has been removed from the image DFT (Figure 4d). The Periodic Plus Smooth Decomposition is also beneficial to high resolution transmission electron microscopy (HRTEM) (Figure 5). However, HRTEM transfers little information at low frequencies thus discontinuities in the periodic boundaries—and the artifacts produced thereof—are often less prominent than in STEM. The CdSe nanoparticle in Figure 4 originally appeared in H. Zhang et al (Zhang et al., 2011). ### METHODS: In P+S decomposition, the smooth component(s) is computed by solving Poisson's equation ### ∇ ! ?= ?? ?2?2 ### ?? ?2?2 + ?? ?2?2 ### ?? ?2?2 = ?. The discrete form of the differential equation is ### ?(?+ 1, ?) −?(?−1, ?) + ?(?, ?+ 1) −?(?, ?−1) −4?(?, ?) = ?(?, ?). Taking the DFT on both sides and invoking the shift theorem, one obtains ### O? % !&'( ) ! + ? <u>!&'(!</u> <u>!&'(!</u> ### ) + ? %!&'( * " ### * " + ? !&'(" <u>*</u> ### −4P ?̂;?#, ?$= = ? : ;?#, ?$=, where ?̂;?#, ?$= and ? <sup>:</sup> ;?#, ?$= are the DFT of ?(?, ?) and ?(?, ?), respectively. Thus, for all ;?#, ?$= ∈{0, …, ?−1} × {0, …, ?−1} \(0,0), ? <sup>:</sup> ;?#, ?$= ?̂;?#, ?$= = <sup><u>$</u></sup> −4 <u>?</u> 2cos <sup><u>2??#</u></sup> +2cos <sup><u>2??$</u></sup> <u>?</u> <u>?</u> The P+S decomposition and the other methods in this manuscript are implemented in Python and available in the Supplemental Material. ### CONCLUSION Here, we demonstrated that Periodic Plus Smooth Decomposition is a promising technique for Fourier analysis of atomic resolution images by effectively removing the periodic boundary artifact implicit to a standard DFT. The traditional approach requires application of a damping window to the image that degrades resolution in Fourier space and, more critically, can omit useful information toward the edges of the field of view. Periodic Plus Smooth Decomposition utilizes Poisson’s equation with boundary conditions set by the discontinuities at the edges of the image to find a smooth, slowly varying background. By separating this smooth background from the original image, Periodic Plus Smooth Decomposition provides a Fourier transform of the entire image, at full spectral resolution, and free from the cross pattern artifact caused by boundary discontinuities. This technique provides a valuable tool to aid routine Fourier analysis of high-resolution electron micrographs. Acknowledgements This work was supported in part by the Cornell Center for Materials Research with funding from the NSF MRSEC program (DMR-1120296). H.L.X. is supported by the Center for Functional Nanomaterials, Brookhaven National Laboratory, which is supported by the U.S. DOE, Office of Basic Energy Sciences, under Contract No. DE-AC02-98CH10886. Y.J. is supported by DOE grant DE-FG02-11ER16210. We thank T. Higuchi, H. Y. Hwang at Stanford University for providing the sample used in Fig. 3. ### REFERENCES BATSON, P. E., DELLBY, N. & KRIVANEK, O. L. (2002). Sub-ångstrom resolution using aberration corrected electron optics. _Nature_ 418, 617–620. BEAUDOIN, N. & BEAUCHEMIN, S. S. (2002). An accurate discrete Fourier transform for image processing. _Pattern Recognition, 2002. Proceedings. 16th International Conference on_ 3, 935–939. BRAIDY, N., LE BOUAR, Y., LAZAR, S. & RICOLLEAU, C. (2012). Correcting scanning instabilities from images of periodic structures. _Ultramicroscopy_ 118, 67–76. COWLEY, J. M. & SMITH, D. J. (1987). The present and future of high-resolution electron microscopy. _Acta Crystallographica Section A Foundations of Crystallography_ 43, 737– 751. GIBBS, J. W. (1899). Fourier's Series. _Nature_ 59, 606–606. HARRIS, F. J. (1978). On the use of windows for harmonic analysis with the discrete Fourier transform. _Proceedings of the IEEE_ 66, 51–83. HASHIMOTO, H., YOKOTA, Y., TAKAI, Y., TOMITA, M., KORI, T., FUJINO, M. & ENDOH, H. (1980). Dynamic and simultaneous observation of electron microscopic image and diffraction patterns of crystal lattice structure. _Proc. 7th European Congr. on Electron Microscopy,_ _The Hague_ 268. HEWITT, E. & HEWITT, R. E. (1979). The Gibbs-Wilbraham phenomenon: an episode in Fourier analysis. _Archive for History of Exact Sciences_ 21, 129. JONES, L. & NELLIST, P. D. (2013). Identifying and Correcting Scan Noise and Drift in the Scanning Transmission Electron Microscope. _Microscopy and Microanalysis Meeting_ 19, 1050–1060. KIRKLAND, E. J. & THOMAS, M. G. (1996). A high efficiency annular dark field detector for STEM. _Ultramicroscopy_ 62, 79–88. MOISAN, L. (2010). Periodic Plus Smooth Image Decomposition. _Journal of Mathematical_ _Imaging and Vision_ 39, 161–179. MULLER, D. A. (2009). Structure and bonding at the atomic scale by scanning transmission electron microscopy. _Nature Materials_ 8, 263–270. MULLER, D. A., KIRKLAND, E. J., THOMAS, M. G., GRAZUL, J. L., FITTING, L. & WEYLAND, M. (2006). Room design for high-performance electron microscopy. _Ultramicroscopy_ 106, 1033– 1040. RUST, H. P. (1974). Real Time Fourier Analysis by Electronic Means. _Proc Eighth Int Congr_ _Electron Microscopy (Canberra)_ . SAITO, N. & REMY, J.-F. (2006). The polyharmonic local sine transform: A new tool for local image analysis and synthesis without edge effect. _Applied and Computational Harmonic_ _Analysis_ 20, 41–73. SANG, X. & LEBEAU, J. M. (2014). Revolving scanning transmission electron microscopy: Correcting sample drift distortion without prior knowledge. _Ultramicroscopy_ 138, 28– 35. THOMSON, G. P. & REID, A. (1927). Diffraction of Cathode Rays by a Thin Film. _Nature_ 119, 890–890. VOYLES, P. M., GRAZUL, J. L. & MULLER, D. A. (2003). Imaging individual atoms inside crystals with ADF-STEM. _Ultramicroscopy_ 96, 251–273. WALL, J., LANGMORE, J., ISAACSON, M. & CREWE, A. V. (1974). Scanning transmission electron microscopy at high resolution. _Proceedings of the National Academy of Sciences_ 71, 1–5. WILBRAHAM, H. (1848). On A Certain Periodic Function. _The Cambridge and Dublin_ _Mathematical Journal_ 3, 198–201. YANKOVICH, A. B., BERKELS, B., DAHMEN, W., BINEV, P., SANCHEZ, S. I., BRADLEY, S. A., LI, A., SZLUFARSKA, I. & VOYLES, P. M. (2014). Picometre-precision analysis of scanning transmission electron microscopy images of platinum nanocatalysts. _Nature_ _Communications_ 5 . ZHANG, H., HA, D.-H., HOVDEN, R., KOURKOUTIS, L. F. & ROBINSON, R. D. (2011). Controlled synthesis of uniform cobalt phosphide hyperbranched nanocrystals using tri-noctylphosphine oxide as a phosphorus source. _Nano letters_ 11, 188–197. ### FIGURE CAPTIONS a. HAADF-STEM image b. Visualization of c. Fourier Transform Periodic Boundaries Figure 1 | Schematic illustration of the periodic boundary condition imposed by the discrete Fourier transform of an image (a) along the vertical and horizontal directions (b). Discontinuities at the boundaries cause cross pattern artifacts in the Fourier transform (c). Scale bar 2 nm. a. b. c. d. e. 2nm Unprocessed Symmetrized Hann Window Flat Top Window Periodic Decomp. f. g. h. i. j. Figure 2 | Comparison of approaches to reduce periodic boundary artifacts in the discrete Fourier transforms (DFT) of a HAADF-STEM image. A twin boundary in the NiO [111] gives rise to six pairs of Bragg peaks. The DFT of an unprocessed image (a.) contains vertical and horizontal boundary artifacts (f.). Symmetrizing the image (b.) removes these artifacts, but additional Bragg spots appear (g.). A Hann window (c.) is effective at removing the boundary artifacts (h.) but emphasizes only the central region of the image (c.). If the window is too tight, like that of the Flat Top (d.) the Bragg peak pairs blur together and become indistinguishable (i.). The boundary artifacts can be effectively removed using Periodic Plus Smooth Decomposition (j.) while preserving the image’s entire field of view (e.) and resolution in reciprocal space (j.). Scale bars are 2nm and the {220}; Fourier peaks reflect a 0.68 Å <sup>-1</sup> spacing; DFT images are log-absolute intensities. ### a. b. c. 30 Å Unprocessed Hann Window Periodic Decomp ### d. super- e. f. spots lattice missing spots superlattice spots Figure 3 | Layered LaVO3/SrTiO3 material with one LaVO3 layer containing a super-lattice (a.) that appears as additional peaks in the Fourier transform (d.). A windowed Fourier transform heavily weights contributions at the center of the image (b.) and consequently misses the super-lattice peaks that originate from the edge regions of the image (e.). The Periodic Plus Smooth Decomposition utilizes the entire field of view (c.), thus, preserving the atomic superlattice structure in the DFT (f.). DFT images (d-f.) are log intensity and cropped—the superlattice spots occur at 0.23 Å <sup>-1</sup> . Sample was grown by T. Higuchi, H. Y. Hwang, Stanford University. STEM Image Periodic Component Smooth Component a. b. c. 2nm = + d. DFT e. Moisan DFT f. DFT of Smooth Comp. = + Figure 4 | Periodic Plus Smooth Decomposition of a CdSe [111] nanoparticle resting between two other particles. The STEM image contains strong discontinuities in the periodic boundaries manifesting as cross pattern artifacts in the DFT (d.). The P+S decomposition creates continuity in the periodic boundaries (b.) by removing a smooth background component (c.) from the image. This removes the boundary artifacts in the DFT (e.). The DFT of background component (f.) shows exactly what has been removed from the DFT of the original image (d.) to create the artifact free DFT (e.). DFT images are log-absolute intensities; scan direction is rotated 26.5° clockwise from horizontal. HRTEM Image Periodic Component Smooth Component a. 2 nm b. c. = + d. DFT e. Moisan DFT f. DFT of Smooth Comp. = + Figure 5 | Periodic Plus Smooth Decomposition of a semiconductor high-k oxide on a silicon substrate (viewed along the Si [110] direction) imaged by HRTEM. The HRTEM image transfers little information at low frequencies; however, small discontinuities in the periodic boundaries at the image edges are still present and manifest as a cross pattern artifact in the DFT (d.). The P+S decomposition removes the boundary artifacts in the DFT (e.). The DFT of background component (f.) shows the artifact removed from the original DFT (d.) DFT images are log-absolute intensities; DFT images have been cropped and contain insets of lowest frequencies where artifacts are most noticeable. ### SUPPLEMENTAL MATERIAL FOURIER TRANSFORM OF SYMMETRIZED IMAGE IN PYTHON (2D) from pylab import * #This function returns the Symmetrized Image FFT def symfft2(im): symim = zeros( [2*size(im,0), 2*size(im,1)] ) symim[0:size(im,0),0:size(im,1)] = im symim[0:size(im,0),size(im,1):2*size(im,1)] = fliplr(im) symim[size(im,0):2*size(im,0),0:size(im,1)] = flipud(im) symim[size(im,0):2*size(im,0),size(im,1):2*size(im,1)] = flipud(fliplr(im)) return( fft2(symim) ) ### WINDOWED FOURIER TRANSFORM IN PYTHON (2D) from pylab import * #This function returns the Hann Windowed Fourier Transform def hannfft(im): window = outer( hanning(size(im,0)), hanning(size(im,1)) winim = window * im return( fft2(winim) ) ### PERIODIC PLUS SMOOTH DECOMPOSITION IN PYTHON (2D) from pylab import * #This function returns the reciprocal space P and S components def mfft2(im): [rows,cols] = shape(im) #Compute boundary conditions s = zeros( shape(im) ) s[0,0:] = im[0,0:] - im[rows-1,0:] s[rows-1,0:] = -s[0,0:] s[0:,0] = s[0:,0] + im[0:,0] - im[:,cols-1] s[0:,cols-1] = s[0:,cols-1] - im[0:,0] + im[:,cols-1] #Create grid for computing Poisson solution [cx, cy] = meshgrid(2*pi*arange(0,cols)/cols, 2*pi*arange(0,rows)/rows) #Generate smooth component from Poisson Eq with boundary condition D = (2*(2 - cos(cx) - cos(cy))) D[0,0] = inf # Enforce 0 mean & handle div by zero S = fft2(s)/D P = fft2(im) - S # FFT of periodic component return(P,S)

섹션 본문

섹션 본문이 없습니다.

참고문헌

참고문헌 정보가 없습니다.