IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Feb 16, 2006, 8:57:51 AM (20 years ago)
Author:
eugene
Message:

changes leading to CDR

File:
1 edited

Legend:

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

    r6371 r6434  
    1 %%% $Id: psLibSDRS.tex,v 1.382 2006-02-08 03:26:01 jhoblitt Exp $
     1%%% $Id: psLibSDRS.tex,v 1.383 2006-02-16 18:57:51 eugene Exp $
    22\documentclass[panstarrs,spec]{panstarrs}
    33
     
    36903690limits.  The output of this function is always a valid region, though
    36913691it may define an area of 0 pixels.  If \code{image} is a subimage, the
    3692 region coordinates refer to the subimage pixel coordinates.
     3692input and output region coordinates refer to the parent pixel
     3693coordinates.  The only exception to this statement is that the
     3694negative limits should be applied to the upper limits of the subimage,
     3695not 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
     3698have 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}
    36933705
    36943706\begin{prototype}
     
    50835095\subsubsection{Image Structure Manipulation}
    50845096
     5097\tbd{clarify that subset and trim regions are in the *parent* coords}
     5098
    50855099\begin{prototype}
    50865100psImage *psImageSubset(psImage *image, psRegion region);
     
    50955109In the event that \code{x1} or \code{y1} are negative, they shall be
    50965110interpreted 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}.
     5111dimension.  If the input image is a subimage, the region coordinates
     5112refer to the \em{parent} pixel coordinates.  The entire subraster must
     5113be contained within the raster of the parent image.  Note that the
     5114\code{refCounter} for the parent should be incremented.  This function
     5115must 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
     5118psRegionForImage?}
    51025119
    51035120\begin{prototype}
     
    51325149
    51335150\subsubsection{Image Pixel Extractions}
     5151
     5152\tbd{clarify that subset and trim regions are in the *parent* coords}
    51345153
    51355154\begin{datatype}
     
    54185437region) results in a return value of -1.  The \code{region} refers to
    54195438the pixels of the \code{mask}; if \code{mask} is a subimage, the
    5420 region must be defined relative to those subimage pixels.
     5439region must be defined relative to the parent pixel coordinate.
    54215440
    54225441\begin{prototype}
Note: See TracChangeset for help on using the changeset viewer.