IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Sep 14, 2004, 9:42:32 AM (22 years ago)
Author:
eugene
Message:

clarified the image offsets for pmFlatField ()
changed return value to bool.
added Change Log

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/doc/modules/ModulesSDRS.tex

    r1562 r1805  
    1 %%% $Id: ModulesSDRS.tex,v 1.14 2004-08-17 03:31:05 eugene Exp $
     1%%% $Id: ModulesSDRS.tex,v 1.15 2004-09-14 19:42:32 eugene Exp $
    22\documentclass[panstarrs]{panstarrs}
    33
     
    1010\project{Pan-STARRS Image Processing Pipeline}
    1111\organization{Institute for Astronomy}
    12 \version{00}
     12\version{01}
    1313\docnumber{PSDC-430-008}
    1414% note the use of the docnumber & version number:
     
    265265\subsection{Flat-fielding}
    266266
    267 Given an input image and a flat-field image, \code{pmFlatField}
    268 shall divide the input image by the flat-field image.  The API shall
    269 be the following:
    270 \begin{verbatim}
    271 psReadout *pmFlatField(psReadout *in, const psReadout *flat);
     267Given an input image and a flat-field image, \code{pmFlatField} shall
     268divide the input image by the flat-field image and return it in place,
     269updating the mask as appropriate.  The API shall be the following:
     270\begin{verbatim}
     271bool pmFlatField(psReadout *in, psReadout *mask, const psReadout *flat);
    272272\end{verbatim}
    273273
     
    275275\code{flat}, need not be the same size, since the input image may
    276276already have been trimmed (following overscan subtraction), but the
    277 function shall use the offsets in the image (\code{in->x0} and
    278 \code{in->y0}) to determine the appropriate offsets to obtain the
    279 correct pixel on the flat-field.  In the event that the \code{flat}
    280 image is too small (i.e., pixels on the input image refer to pixels
    281 outside the range of the \code{flat} image), the function shall
    282 generate an error.
     277function shall use the offsets of the readout (\code{in->col0,
     278in->row0}) and the image subarray (\code{in->image->x0,
     279in->image->y0}) to determine the appropriate offsets to obtain the
     280correct detector pixels in the flat-field image.  Note that the image
     281offset is relative to its parent, so this offset must be followed to
     282the top level image which is not a child of another image and the
     283offsets summed.  The detector pixel coordinates of pixel \code{x,y} in
     284a top-level image are thus \code{x + in->image->x0 + in->col0, y +
     285in->image->y0 + in->row0}. In the event that the \code{flat} image is
     286too small (i.e., pixels on the input image refer to pixels outside the
     287range of the \code{flat} image), the function shall generate an error.
    283288
    284289Pixels which are negative or zero in the \code{flat} shall be masked
     
    347352input image refer to pixels outside the range of the \code{mask}
    348353image), the function shall generate an error.
     354
     355\section{Revision Change Log}
     356\input{ChangeLogSDRS.tex}
    349357
    350358%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Note: See TracChangeset for help on using the changeset viewer.