Changeset 1657
- Timestamp:
- Aug 30, 2004, 11:39:23 AM (22 years ago)
- File:
-
- 1 edited
-
trunk/doc/pslib/psLibSDRS.tex (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/doc/pslib/psLibSDRS.tex
r1649 r1657 1 %%% $Id: psLibSDRS.tex,v 1.9 1 2004-08-27 23:35:34price Exp $1 %%% $Id: psLibSDRS.tex,v 1.92 2004-08-30 21:39:23 price Exp $ 2 2 \documentclass[panstarrs,spec]{panstarrs} 3 3 … … 2944 2944 to \code{float}; these pointers point into the \code{psImage} data, 2945 2945 offset by the desired column offset. \code{kernel} point into the 2946 \code{kernelRows}, offset by the desired row offset. For example: 2947 2948 \begin{verbatim} 2949 kernelRows = psAlloc(myImage->nRows * sizeof(float)); 2950 for (int i = 0; i < myImage->nRows; i++) { 2951 kernelRows[i] = &rows[i][columnOffset]; 2952 } 2953 kernel = &kernelRows[rowOffset]; 2954 \end{verbatim} 2955 2956 This construction allows the \code{kernel} member to use negative 2957 indices, while preserving the location of \code{psMemBlock}s relative 2958 to allocated memory. 2946 \code{kernelRows}, offset by the desired row offset. This 2947 construction allows the \code{kernel} member to use negative indices, 2948 while preserving the location of \code{psMemBlock}s relative to 2949 allocated memory. 2959 2950 2960 2951 The maximum extent of the kernel shifts shall be defined by the
Note:
See TracChangeset
for help on using the changeset viewer.
