IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 3172


Ignore:
Timestamp:
Feb 9, 2005, 11:54:44 AM (21 years ago)
Author:
Paul Price
Message:

Added PS_RESAMPLE_LANCZOS, dropped PS_RESAMPLE_LAGRANGE.

Location:
trunk/doc/pslib
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/doc/pslib/ChangeLogADD.tex

    r3094 r3172  
    2424\begin{itemize}
    2525\item Added section on inverse and combined transformations.
     26\item Added \code{PS_RESAMPLE_LANCZOS[234]}, dropped
     27  \code{PS_RESAMPLE_LAGRANGE}.
    2628\end{itemize}
  • trunk/doc/pslib/psLibADD.tex

    r3094 r3172  
    1 %%% $Id: psLibADD.tex,v 1.58 2005-01-26 01:09:07 price Exp $
     1%%% $Id: psLibADD.tex,v 1.59 2005-02-09 21:54:44 price Exp $
    22\documentclass[panstarrs]{panstarrs}
    33
     
    11041104(5,5).
    11051105
    1106 \subparagraph{Sinc Interpolation ({\tt PS\_RESAMPLE\_SINC})}
    1107 
    1108 \subparagraph{Lagrange Interpolation ({\tt PS\_RESAMPLE\_LAGRANGE})}
     1106\subparagraph{Sinc Interpolation ({\tt PS\_RESAMPLE\_LANCZOS[234]})}
     1107
     1108Because it would be slow to specify the size of the kernel
     1109dynamically, we specify three hard-coded kernel sizes: 4, 6 and 8
     1110pixels in each dimension (a kernel of size 2 pixels in each dimension
     1111is handled by the bilinear interpolation).  These correspond to the
     1112options \code{PS_RESAMPLE_LANCZOS2}, \code{PS_RESAMPLE_LANCZOS3} and
     1113\code{PS_RESAMPLE_LANCZOS4}, respectively.
     1114
     1115Given a position on the input image, $(x_0,y_0)$, a kernel is derived
     1116according to pixels local to the position:
     1117\begin{equation}
     1118  h(x,y) = {\rm sinc}(\pi \delta x) {\rm sinc}(\pi \delta x / N) \rm{sinc}(\pi \delta y) \rm{sinc}(\pi \delta y / N)
     1119\end{equation}
     1120where
     1121\begin{eqnarray}
     1122  \delta x & = & x - x_0 \\
     1123  \delta y & = & y - y_0 \\
     1124  {\rm sinc}(z) & = & \sin(z)/z
     1125\end{eqnarray}
     1126and $N$ corresponds to the choice of kernel size.  For $N = 2$, the
     1127kernel size is 4 pixels in each dimension (i.e., $-2 < \delta x \le
     11282$).  For $N = 3$, the kernel size is 6 pixels in each dimension
     1129(i.e., $-3 < \delta x \le 3$).  For $N = 4$, the kernel size is 8
     1130pixels in each dimension (i.e., $-4 < \delta x \le 4$).
     1131
     1132The interpolated value at the given position, $(x_0,y_0)$, is then
     1133simply the dot product of the kernel and the fluxes:
     1134\begin{equation}
     1135  f(x_0,y_0) = \sum_R f(x,y) h(x,y)
     1136\end{equation}
     1137where $R$ is the region defined by the kernel size, and $f(x,y)$ is
     1138the flux at the pixel position.
     1139
     1140For further information, see the
     1141\href{http://terapix.iap.fr/IMG/pdf/swarp.pdf}{SWarp manual}.
    11091142
    11101143\paragraph{Image Cuts and Slices}
     
    17011734\subsection{Missing and Todo}
    17021735
    1703 \tbd{define SINC, LAGRANGE interpolation}
    1704 
    17051736\tbd{define sunrise, sunset, sun position}
    17061737
Note: See TracChangeset for help on using the changeset viewer.