<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN"> <!--Converted with LaTeX2HTML 98.1p1 release (March 2nd, 1998) originally by Nikos Drakos (nikos@cbl.leeds.ac.uk), CBLU, University of Leeds * revised and updated by: Marcus Hennecke, Ross Moore, Herb Swan * with significant contributions from: Jens Lippmann, Marek Rouchal, Martin Wilck and others --> <HTML> <HEAD> <TITLE>Transformations</TITLE> <META NAME="description" CONTENT="Transformations"> <META NAME="keywords" CONTENT="vol2"> <META NAME="resource-type" CONTENT="document"> <META NAME="distribution" CONTENT="global"> <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1"> <LINK REL="STYLESHEET" HREF="vol2.css"> <LINK REL="next" HREF="node23.html"> <LINK REL="previous" HREF="node21.html"> <LINK REL="up" HREF="node19.html"> <LINK REL="next" HREF="node23.html"> </HEAD> <BODY > <!--Navigation Panel--> <A NAME="tex2html1720" HREF="node23.html"> <IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next" SRC="icons.gif/next_motif.gif"></A> <A NAME="tex2html1717" HREF="node19.html"> <IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up" SRC="icons.gif/up_motif.gif"></A> <A NAME="tex2html1711" HREF="node21.html"> <IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous" SRC="icons.gif/previous_motif.gif"></A> <A NAME="tex2html1719" HREF="node1.html"> <IMG WIDTH="65" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="contents" SRC="icons.gif/contents_motif.gif"></A> <BR> <B> Next:</B> <A NAME="tex2html1721" HREF="node23.html">Image Restoration</A> <B> Up:</B> <A NAME="tex2html1718" HREF="node19.html">Image Manipulations</A> <B> Previous:</B> <A NAME="tex2html1712" HREF="node21.html">Background Estimates</A> <BR> <BR> <!--End of Navigation Panel--> <H2><A NAME="SECTION00533000000000000000"> </A> <A NAME="trans"> </A> <BR> Transformations </H2> Depending on the further reductions the data may be transformed into the coordinate system which is most relevant for the physical interpretation. This will typically be used when certain characteristics of the data will appear as a linear relation in the new coordinates. These transformations involve non-linear rebinning as discussed in Section <A HREF="node18.html#geo-cor">2.2.3</A>. To conserve flux in the new system, the pixel values must be corrected by the Jacobian determinant <IMG WIDTH="18" HEIGHT="22" ALIGN="BOTTOM" BORDER="0" SRC="img93.gif" ALT="$\bf J$"> in Equation <A HREF="node18.html#eq:jacobian">2.15</A>. <P> For spectra a transformation from wavelength to frequency is used to identify spectral regions which follow a power law. This transformation is given by <BR><P></P> <DIV ALIGN="CENTER"> <!-- MATH: \begin{equation} \nu = c / \lambda ,\,\,\,\, {\bf J} = -c/\lambda^2 \end{equation} --> <TABLE WIDTH="100%" ALIGN="CENTER"> <TR VALIGN="MIDDLE"><TD ALIGN="CENTER" NOWRAP><A NAME="eq:freq-trans"> </A><IMG WIDTH="198" HEIGHT="40" SRC="img94.gif" ALT="\begin{displaymath}\nu = c / \lambda ,\,\,\,\, {\bf J} = -c/\lambda^2 \end{displaymath}"></TD> <TD WIDTH=10 ALIGN="RIGHT"> (2.21)</TD></TR> </TABLE> </DIV> <BR CLEAR="ALL"><P></P> where <IMG WIDTH="17" HEIGHT="21" ALIGN="BOTTOM" BORDER="0" SRC="img95.gif" ALT="$\nu$"> is the frequency and <IMG WIDTH="19" HEIGHT="22" ALIGN="BOTTOM" BORDER="0" SRC="img96.gif" ALT="$\lambda$"> is wavelength. The intensities <I>I</I> are translated to a logarithmic scale (e.g. magnitudes <!-- MATH: ${\cal M} = -2.5 \log(I)$ --> <IMG WIDTH="165" HEIGHT="44" ALIGN="MIDDLE" BORDER="0" SRC="img97.gif" ALT="${\cal M} = -2.5 \log(I)$">) so that a power law spectrum appears linear. <P> In the classification of galaxies, ellipticals can be distinguished on their radial surface brightness profile which can be approximated by <!-- MATH: $\log(I) \propto r^{1/4}$ --> <IMG WIDTH="128" HEIGHT="51" ALIGN="MIDDLE" BORDER="0" SRC="img98.gif" ALT="$\log(I) \propto r^{1/4}$">. This gives the transformation formula <BR><P></P> <DIV ALIGN="CENTER"> <!-- MATH: \begin{equation} x = r^{1/4} ,\,\,\,\, {\bf J} = r^{-3/4}. \end{equation} --> <TABLE WIDTH="100%" ALIGN="CENTER"> <TR VALIGN="MIDDLE"><TD ALIGN="CENTER" NOWRAP><A NAME="eq:rquar-trans"> </A><IMG WIDTH="199" HEIGHT="39" SRC="img99.gif" ALT="\begin{displaymath}x = r^{1/4} ,\,\,\,\, {\bf J} = r^{-3/4}. \end{displaymath}"></TD> <TD WIDTH=10 ALIGN="RIGHT"> (2.22)</TD></TR> </TABLE> </DIV> <BR CLEAR="ALL"><P></P> Since the intensity profile only should be resampled, the flux correction is not applied in this case. A logarithmic scale is also used here to achieve a linear relation. An example is given in Figure <A HREF="node22.html#fig:trans-rq">2.9</A>. <BR> <DIV ALIGN="CENTER"><A NAME="fig:trans-rq"> </A><A NAME="922"> </A> <TABLE WIDTH="50%"> <CAPTION><STRONG>Figure 2.9:</STRONG> The radial profile of an elliptical galaxy shown with linear steps (A) and rebinned to <I>r</I><SUP>1/4</SUP> increments (B).</CAPTION> <TR><TD><IMG WIDTH="737" HEIGHT="280" SRC="img100.gif" ALT="\begin{figure}\psrotatefirst \psfig{figure=fig9_radial.eps,angle=180,% width=20cm,clip=} \end{figure}"></TD></TR> </TABLE> </DIV> <BR> <P> Whereas the transforms mentioned above only perform a non-linear rebinning of the data, the Fourier transform converts a spatial image into the frequency domain. This transform has two main applications namely analysis of periodic phenomena and convolution due to its special properties. The transform can be given as <BR><P></P> <DIV ALIGN="CENTER"> <!-- MATH: \begin{equation} {\cal F} (u,v) = \frac{1}{N} \sum_{j=0}^{N-1} \sum_{k=0}^{N-1} F(j,k) \exp \left[ \frac{-2\pi i}{N} (uj + vk) \right] \end{equation} --> <TABLE WIDTH="100%" ALIGN="CENTER"> <TR VALIGN="MIDDLE"><TD ALIGN="CENTER" NOWRAP><A NAME="eq:fourier"> </A><IMG WIDTH="472" HEIGHT="77" SRC="img101.gif" ALT="\begin{displaymath}{\cal F} (u,v) = \frac{1}{N} \sum_{j=0}^{N-1} \sum_{k=0}^{N-1} F(j,k) \exp \left[ \frac{-2\pi i}{N} (uj + vk) \right] \end{displaymath}"></TD> <TD WIDTH=10 ALIGN="RIGHT"> (2.23)</TD></TR> </TABLE> </DIV> <BR CLEAR="ALL"><P></P> where (<I>u</I>,<I>v</I>) are the spatial frequencies and <I>i</I> denotes the imaginary part. The corresponding inverse transform is then <BR><P></P> <DIV ALIGN="CENTER"> <!-- MATH: \begin{equation} F (j,k) = \frac{1}{N} \sum_{j=0}^{N-1} \sum_{k=0}^{N-1} {\cal F} (u,v) \exp \left[ \frac{2\pi i}{N} (uj + vk) \right] . \end{equation} --> <TABLE WIDTH="100%" ALIGN="CENTER"> <TR VALIGN="MIDDLE"><TD ALIGN="CENTER" NOWRAP><A NAME="eq:fourier-inv"> </A><IMG WIDTH="468" HEIGHT="77" SRC="img102.gif" ALT="\begin{displaymath}F (j,k) = \frac{1}{N} \sum_{j=0}^{N-1} \sum_{k=0}^{N-1} {\cal F} (u,v) \exp \left[ \frac{2\pi i}{N} (uj + vk) \right] . \end{displaymath}"></TD> <TD WIDTH=10 ALIGN="RIGHT"> (2.24)</TD></TR> </TABLE> </DIV> <BR CLEAR="ALL"><P></P> Special numeric techniques, called Fast Fourier Transforms or FFT, can significantly decrease the time needed to compute these transforms. They are optimized for images with a size equal to a power of 2 (see e.g. Hunt 1969) but can also be used in other cases. <P> To analysis the periodic occurrence of features in time series, spectra, or images the amplitude of the Fourier transform or the power spectrum is used. The power spectrum <IMG WIDTH="29" HEIGHT="21" ALIGN="BOTTOM" BORDER="0" SRC="img103.gif" ALT="$\cal W$"> of the function <I>F</I> is given by <BR><P></P> <DIV ALIGN="CENTER"> <!-- MATH: \begin{equation} {\cal W} (u,v) = | {\cal F} (u,v) |^2. \end{equation} --> <TABLE WIDTH="100%" ALIGN="CENTER"> <TR VALIGN="MIDDLE"><TD ALIGN="CENTER" NOWRAP><A NAME="eq:power-spec"> </A><IMG WIDTH="197" HEIGHT="40" SRC="img104.gif" ALT="\begin{displaymath}{\cal W} (u,v) = \vert {\cal F} (u,v) \vert^2. \end{displaymath}"></TD> <TD WIDTH=10 ALIGN="RIGHT"> (2.25)</TD></TR> </TABLE> </DIV> <BR CLEAR="ALL"><P></P> Peaks in <IMG WIDTH="29" HEIGHT="21" ALIGN="BOTTOM" BORDER="0" SRC="img105.gif" ALT="$\cal W$"> indicate the presence of specific frequencies while the continuum originates from a combination of objects and noise. Since the Fourier transform assumes the image to occur periodically, discontinuities at the edges of the image will produce artificial contributions to the power spectrum. Thus, care should be taken to remove systematic background variations to avoid this happening. As an example of using Fourier transforms to extract information from a frame, an azimuthal intensity profile of the spiral galaxy A0526-16 is shown in Figure <A HREF="node22.html#fig:fourier">2.10</A>. <BR> <DIV ALIGN="CENTER"><A NAME="fig:fourier"> </A><A NAME="766"> </A> <TABLE WIDTH="50%"> <CAPTION><STRONG>Figure 2.10:</STRONG> Azimuthal profile in the inner parts of a spiral galaxy A0526-16 across the spiral arms (A). The amplitude of the Fourier transform (B) of this profile shows the strong even frequencies.</CAPTION> <TR><TD><IMG WIDTH="1106" HEIGHT="354" SRC="img106.gif" ALT="\begin{figure}\psfig{figure=fig10_azimutal.eps,width=15cm,clip=} \end{figure}"></TD></TR> </TABLE> </DIV> <BR> The radius was chosen so that the profile intersects the spiral pattern in the inner parts of the galaxy. In the amplitude plot of the Fourier transform, it can be seen that the spiral pattern mainly contains even frequency components. The 4<SUP><I>th</I></SUP> and 6<SUP><I>th</I></SUP>harmonic indicates that the wave is asymmetric due to non-linear effects in the spiral density wave. <P> It is possible to use the transformation for convolutions because this operation corresponds to a multiplication in the frequency domain : <BR><P></P> <DIV ALIGN="CENTER"> <!-- MATH: \begin{equation} {\cal O_F} [ F(j,k) \otimes H(j,k) ] = {\cal F}(u,v)\,{\cal H}(u,v) \end{equation} --> <TABLE WIDTH="100%" ALIGN="CENTER"> <TR VALIGN="MIDDLE"><TD ALIGN="CENTER" NOWRAP><A NAME="eq:fourier-conv"> </A><IMG WIDTH="371" HEIGHT="40" SRC="img107.gif" ALT="\begin{displaymath}{\cal O_F} [ F(j,k) \otimes H(j,k) ] = {\cal F}(u,v)\,{\cal H}(u,v) \end{displaymath}"></TD> <TD WIDTH=10 ALIGN="RIGHT"> (2.26)</TD></TR> </TABLE> </DIV> <BR CLEAR="ALL"><P></P> where <IMG WIDTH="38" HEIGHT="41" ALIGN="MIDDLE" BORDER="0" SRC="img108.gif" ALT="$\cal O_F$"> and <IMG WIDTH="22" HEIGHT="39" ALIGN="MIDDLE" BORDER="0" SRC="img109.gif" ALT="$\otimes$"> denote the Fourier transform and convolution operators, respectively. Especially when the convolution matrix is large it is more efficient to perform the operation in frequency than in spatial domain. <P> <HR> <!--Navigation Panel--> <A NAME="tex2html1720" HREF="node23.html"> <IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next" SRC="icons.gif/next_motif.gif"></A> <A NAME="tex2html1717" HREF="node19.html"> <IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up" SRC="icons.gif/up_motif.gif"></A> <A NAME="tex2html1711" HREF="node21.html"> <IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous" SRC="icons.gif/previous_motif.gif"></A> <A NAME="tex2html1719" HREF="node1.html"> <IMG WIDTH="65" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="contents" SRC="icons.gif/contents_motif.gif"></A> <BR> <B> Next:</B> <A NAME="tex2html1721" HREF="node23.html">Image Restoration</A> <B> Up:</B> <A NAME="tex2html1718" HREF="node19.html">Image Manipulations</A> <B> Previous:</B> <A NAME="tex2html1712" HREF="node21.html">Background Estimates</A> <!--End of Navigation Panel--> <ADDRESS> <I>Petra Nass</I> <BR><I>1999-06-15</I> </ADDRESS> </BODY> </HTML>