Changeset 3172
- Timestamp:
- Feb 9, 2005, 11:54:44 AM (21 years ago)
- Location:
- trunk/doc/pslib
- Files:
-
- 2 edited
-
ChangeLogADD.tex (modified) (1 diff)
-
psLibADD.tex (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/doc/pslib/ChangeLogADD.tex
r3094 r3172 24 24 \begin{itemize} 25 25 \item Added section on inverse and combined transformations. 26 \item Added \code{PS_RESAMPLE_LANCZOS[234]}, dropped 27 \code{PS_RESAMPLE_LAGRANGE}. 26 28 \end{itemize} -
trunk/doc/pslib/psLibADD.tex
r3094 r3172 1 %%% $Id: psLibADD.tex,v 1.5 8 2005-01-26 01:09:07price Exp $1 %%% $Id: psLibADD.tex,v 1.59 2005-02-09 21:54:44 price Exp $ 2 2 \documentclass[panstarrs]{panstarrs} 3 3 … … 1104 1104 (5,5). 1105 1105 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 1108 Because it would be slow to specify the size of the kernel 1109 dynamically, we specify three hard-coded kernel sizes: 4, 6 and 8 1110 pixels in each dimension (a kernel of size 2 pixels in each dimension 1111 is handled by the bilinear interpolation). These correspond to the 1112 options \code{PS_RESAMPLE_LANCZOS2}, \code{PS_RESAMPLE_LANCZOS3} and 1113 \code{PS_RESAMPLE_LANCZOS4}, respectively. 1114 1115 Given a position on the input image, $(x_0,y_0)$, a kernel is derived 1116 according 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} 1120 where 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} 1126 and $N$ corresponds to the choice of kernel size. For $N = 2$, the 1127 kernel size is 4 pixels in each dimension (i.e., $-2 < \delta x \le 1128 2$). 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 1130 pixels in each dimension (i.e., $-4 < \delta x \le 4$). 1131 1132 The interpolated value at the given position, $(x_0,y_0)$, is then 1133 simply 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} 1137 where $R$ is the region defined by the kernel size, and $f(x,y)$ is 1138 the flux at the pixel position. 1139 1140 For further information, see the 1141 \href{http://terapix.iap.fr/IMG/pdf/swarp.pdf}{SWarp manual}. 1109 1142 1110 1143 \paragraph{Image Cuts and Slices} … … 1701 1734 \subsection{Missing and Todo} 1702 1735 1703 \tbd{define SINC, LAGRANGE interpolation}1704 1705 1736 \tbd{define sunrise, sunset, sun position} 1706 1737
Note:
See TracChangeset
for help on using the changeset viewer.
