Changeset 3744
- Timestamp:
- Apr 21, 2005, 1:48:57 PM (21 years ago)
- Location:
- trunk/doc/pslib
- Files:
-
- 2 edited
-
ChangeLogSDRS.tex (modified) (2 diffs)
-
psLibSDRS.tex (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/doc/pslib/ChangeLogSDRS.tex
r3734 r3744 1 %%% $Id: ChangeLogSDRS.tex,v 1.8 6 2005-04-21 03:26:00price Exp $1 %%% $Id: ChangeLogSDRS.tex,v 1.87 2005-04-21 23:48:56 price Exp $ 2 2 3 3 \subsection{Changes from version 00 to version 01} … … 537 537 538 538 \item Add \code{PS_META_TIME} to \code{psMetadataType} 539 \item Changed \code{psPixels} to \code{psArray}sof \code{psPixelCoord}.540 \end{itemize} 539 \item Changed \code{psPixels} to vector-like array of \code{psPixelCoord}. 540 \end{itemize} -
trunk/doc/pslib/psLibSDRS.tex
r3734 r3744 1 %%% $Id: psLibSDRS.tex,v 1.20 3 2005-04-21 03:26:00price Exp $1 %%% $Id: psLibSDRS.tex,v 1.204 2005-04-21 23:48:57 price Exp $ 2 2 \documentclass[panstarrs,spec]{panstarrs} 3 3 … … 2857 2857 psImage *psImageTransform(psImage *output, psArray **blankPixels, const psImage *input, 2858 2858 const psImage *inputMask, int inputMaskVal, const psPlaneTransform *outToIn, 2859 const psRegion *region, const ps Array*pixels, psImageInterpolateMode mode,2859 const psRegion *region, const psPixels *pixels, psImageInterpolateMode mode, 2860 2860 double exposedValue); 2861 2861 \end{verbatim} … … 2882 2882 image does not correspond to a pixel in the input image (or all 2883 2883 appropriate pixels in the input image are masked), the value shall be 2884 set to \code{exposed}, and the appropriate \code{psPixelCoord} added2885 to the array of \code{blankPixels} for return to the user. This 2886 function must be capable of handling the following types for the 2887 \code{input} (with corresponding types for the \code{output}): 2888 \code{ psF32}, \code{psF64}.2884 set to \code{exposed}, and the pixel added to the appropriate list of 2885 pixels (\code{psPixels}) in the array of \code{blankPixels} for return 2886 to the user. This function must be capable of handling the following 2887 types for the \code{input} (with corresponding types for the 2888 \code{output}): \code{psF32}, \code{psF64}. 2889 2889 2890 2890 … … 3053 3053 int y; // y coordinate 3054 3054 } psPixelCoord; 3055 \end{verbatim} 3056 3057 \begin{verbatim} 3058 psImage *psPixelsToMask(psImage *out, const psArray *pixels, const psRegion *region, unsigned int maskVal); 3059 psArray *psMaskToPixels(psArray *out, const psImage *mask, unsigned int maskVal); 3055 3056 typedef struct { 3057 int n; // Number in use 3058 const int nalloc; // Number allocated 3059 psPixelCoord *data; // The pixel coordinates 3060 } psPixels; 3061 \end{verbatim} 3062 3063 \begin{verbatim} 3064 psImage *psPixelsToMask(psImage *out, const psPixels *pixels, const psRegion *region, unsigned int maskVal); 3065 psPixels *psMaskToPixels(psPixels *out, const psImage *mask, unsigned int maskVal); 3060 3066 \end{verbatim} 3061 3067 3062 3068 \code{psPixelsToMask} shall return an image of type U8 with the 3063 \code{pixels} (being a \code{psArray} of \code{psPixelCoord}s) lying3064 within the specified \code{region} set to the \code{maskVal}. The 3065 \code{out} image shall be modified if supplied, or allocated and 3066 returned if \code{NULL}. The size of the output image shall be 3067 \code{region->x1 - region->x0} by \code{region->y1 - region->y0}, with 3068 \code{out->x0 = region->x0} and \code{out->y0 = region->y0}. In the 3069 event that either of \code{pixels} or \code{region} are \code{NULL}, 3070 the function shall generate an errorand return \code{NULL}.3071 3072 \code{psMaskToPixels} shall return a \code{ps Array} containing one3073 \code{psPixelCoord} for each of the coordinates in the \code{mask} 3074 that match the \code{maskVal}. The \code{out} pixel list shall be 3075 modified if supplied, or allocated and returned if \code{NULL}. In 3076 hte event that \code{mask} is \code{NULL}, the function shall generate 3077 an error and return\code{NULL}.3078 3079 \begin{verbatim} 3080 ps Array *psPixelsConcatenate(psArray *out, const psArray*pixels);3081 \end{verbatim} 3082 3083 \code{psPixelsConcatenate} shall concatenate the array of3084 \code{ pixels} (consisting of \code{psPixelCoord}s) onto \code{out}.3085 In the event that \code{out} is \code{NULL}, a new \code{psArray}3086 s hall be allocated, and the contents of \code{pixels} simply copied3087 in. If \code{pixels} is \code{NULL}, the function shall generate an 3088 error and return \code{NULL}. The function shall take care to ensure3089 th at there are no duplicate pixels in \code{out} (since the order in3090 which the pixels are stored is not important, the values may be 3091 s orted, allowing the use of a faster algorithm than a linear scan).3069 \code{pixels} lying within the specified \code{region} set to the 3070 \code{maskVal}. The \code{out} image shall be modified if supplied, 3071 or allocated and returned if \code{NULL}. The size of the output 3072 image shall be \code{region->x1 - region->x0} by \code{region->y1 - 3073 region->y0}, with \code{out->x0 = region->x0} and \code{out->y0 = 3074 region->y0}. In the event that either of \code{pixels} or 3075 \code{region} are \code{NULL}, the function shall generate an error 3076 and return \code{NULL}. 3077 3078 \code{psMaskToPixels} shall return a \code{psPixels} containing the 3079 coordinates in the \code{mask} that match the \code{maskVal}. The 3080 \code{out} pixel list shall be modified if supplied, or allocated and 3081 returned if \code{NULL}. In hte event that \code{mask} is 3082 \code{NULL}, the function shall generate an error and return 3083 \code{NULL}. 3084 3085 \begin{verbatim} 3086 psPixels *psPixelsConcatenate(psPixels *out, const psPixels *pixels); 3087 \end{verbatim} 3088 3089 \code{psPixelsConcatenate} shall concatenate the \code{pixels} onto 3090 \code{out}. In the event that \code{out} is \code{NULL}, a new 3091 \code{psPixels} shall be allocated, and the contents of \code{pixels} 3092 simply copied in. If \code{pixels} is \code{NULL}, the function shall 3093 generate an error and return \code{NULL}. The function shall take 3094 care to ensure that there are no duplicate pixels in \code{out} (since 3095 the order in which the pixels are stored is not important, the values 3096 may be sorted, allowing the use of a faster algorithm than a linear 3097 scan). 3092 3098 3093 3099 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% … … 5143 5149 5144 5150 \begin{verbatim} 5145 psArray *psPixelsTransform(psArray *out, const psArray *input, const psPlaneTransform *inToOut); 5146 \end{verbatim} 5147 5148 \code{psPixelsTransform} shall generate an array of pixels 5149 (\code{psPixelCoord} in the output coordinate frame that overlap the 5150 \code{input} pixels (an array of \code{psPixelCoord}s) in the input 5151 psPixels *psPixelsTransform(psPixels *out, const psPixels *input, const psPlaneTransform *inToOut); 5152 \end{verbatim} 5153 5154 \code{psPixelsTransform} shall generate a list of pixels in the output 5155 coordinate frame that overlap the \code{input} pixels in the input 5151 5156 coordinate frame through the specified transformation, \code{inToOut}. 5152 5157 Note that this is more complicated than simply transforming the
Note:
See TracChangeset
for help on using the changeset viewer.
