Changeset 6434 for trunk/doc/pslib/psLibSDRS.tex
- Timestamp:
- Feb 16, 2006, 8:57:51 AM (20 years ago)
- File:
-
- 1 edited
-
trunk/doc/pslib/psLibSDRS.tex (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/doc/pslib/psLibSDRS.tex
r6371 r6434 1 %%% $Id: psLibSDRS.tex,v 1.38 2 2006-02-08 03:26:01 jhoblittExp $1 %%% $Id: psLibSDRS.tex,v 1.383 2006-02-16 18:57:51 eugene Exp $ 2 2 \documentclass[panstarrs,spec]{panstarrs} 3 3 … … 3690 3690 limits. The output of this function is always a valid region, though 3691 3691 it may define an area of 0 pixels. If \code{image} is a subimage, the 3692 region coordinates refer to the subimage pixel coordinates. 3692 input and output region coordinates refer to the parent pixel 3693 coordinates. The only exception to this statement is that the 3694 negative limits should be applied to the upper limits of the subimage, 3695 not the parent. Thus, if we have an input subimage with 3696 \code{col0,row0} of (10,20), and \code{numCols,numRows} of 1000,1000 3697 (implying parent image dimensions of at least 1010,1020), we would 3698 have the following conversions: 3699 \begin{verbatim} 3700 (50:100,50:100) -> (50:100,50:100) : no change (region within image) 3701 (0:0,0:0) -> (10:1010,20:1020) : upper and lower limits constrained 3702 (5:-5,5:-5) -> (10:1005,20:1015) 3703 (5:1020,5:1020) -> (10:1010,20:1020) 3704 \end{verbatim} 3693 3705 3694 3706 \begin{prototype} … … 5083 5095 \subsubsection{Image Structure Manipulation} 5084 5096 5097 \tbd{clarify that subset and trim regions are in the *parent* coords} 5098 5085 5099 \begin{prototype} 5086 5100 psImage *psImageSubset(psImage *image, psRegion region); … … 5095 5109 In the event that \code{x1} or \code{y1} are negative, they shall be 5096 5110 interpreted as being relative to the size of the parent image in that 5097 dimension. The entire subraster must be contained within the raster 5098 of the parent image. Note that the \code{refCounter} for the parent 5099 should be incremented. This function must be defined for the 5100 following types: \code{psU8}, \code{psU16}, \code{psS8}, \code{psS16}, 5101 \code{psF32}, \code{psF64}, \code{psC32}, \code{psC64}. 5111 dimension. If the input image is a subimage, the region coordinates 5112 refer to the \em{parent} pixel coordinates. The entire subraster must 5113 be contained within the raster of the parent image. Note that the 5114 \code{refCounter} for the parent should be incremented. This function 5115 must be defined for the following types: \code{psU8}, \code{psU16}, 5116 \code{psS8}, \code{psS16}, \code{psF32}, \code{psF64}, \code{psC32}, 5117 \code{psC64}. \tbd{allow this function to saturate on the edges like 5118 psRegionForImage?} 5102 5119 5103 5120 \begin{prototype} … … 5132 5149 5133 5150 \subsubsection{Image Pixel Extractions} 5151 5152 \tbd{clarify that subset and trim regions are in the *parent* coords} 5134 5153 5135 5154 \begin{datatype} … … 5418 5437 region) results in a return value of -1. The \code{region} refers to 5419 5438 the pixels of the \code{mask}; if \code{mask} is a subimage, the 5420 region must be defined relative to th ose subimage pixels.5439 region must be defined relative to the parent pixel coordinate. 5421 5440 5422 5441 \begin{prototype}
Note:
See TracChangeset
for help on using the changeset viewer.
