IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 2649


Ignore:
Timestamp:
Dec 7, 2004, 11:29:43 AM (22 years ago)
Author:
Paul Price
Message:

Added a mask to pmSubtractSky, and specified that binned pixels which
are clipped may be interpolated over, or simply ignored.

Location:
trunk/doc/modules
Files:
2 edited

Legend:

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

    r2601 r2649  
    1 %%% $Id: ChangeLogSDRS.tex,v 1.8 2004-12-02 22:21:15 price Exp $
     1%%% $Id: ChangeLogSDRS.tex,v 1.9 2004-12-07 21:29:38 price Exp $
    22
    33\subsection{Changes from version 00 to version 01}
     
    3333\begin{itemize}
    3434\item Fixed up specification of \code{fitSpec} for \code{pmSubtractSky}.
     35\item Added a \code{mask} to \code{pmSubtractSky}, and specified that binned pixels which are clipped may be interpolated over, or simply ignored.
    3536\end{itemize}
  • trunk/doc/modules/ModulesSDRS.tex

    r2638 r2649  
    1 %%% $Id: ModulesSDRS.tex,v 1.24 2004-12-06 20:13:57 price Exp $
     1%%% $Id: ModulesSDRS.tex,v 1.25 2004-12-07 21:29:43 price Exp $
    22\documentclass[panstarrs]{panstarrs}
    33
     
    870870the following:
    871871\begin{verbatim}
    872 psReadout *pmSubtractSky(psReadout *in, psPolynomial2D *poly, int binFactor,
    873                          psStats *stats, float clipSD);
     872psReadout *pmSubtractSky(psReadout *in, psPolynomial2D *poly, psImage *mask, psU8 maskVal,
     873                         int binFactor, psStats *stats, float clipSD);
    874874\end{verbatim}
    875875
     
    886886When fitting the polynomial, the function shall first bin the input
    887887image by \code{binFactor} in order to reduce the required processing
    888 time.  The statistic to use in this binning is specified by
    889 \code{stat}.  \code{stat} is of type \code{psStats} instead of simply
    890 \code{psStatsOptions} so that clipping levels may be specified, if
    891 desired.  In the event that multiple options are specified by
    892 \code{stats}, a warning shall be generated, and the option with the
    893 highest priority shall be used, according to the following priority
    894 order: \code{PS_STAT_SAMPLE_MEAN}, \code{PS_STAT_SAMPLE_MEDIAN},
    895 \code{PS_STAT_CLIPPED_MEAN}, \code{PS_STAT_ROBUST_MEAN},\
    896 \code{PS_STAT_ROBUST_MEDIAN}, \code{PS_STAT_ROBUST_MODE}.  If the
    897 \code{binFactor} is non-positive, or \code{stats} is \code{NULL} or
    898 fails to specify an option, a warning shall be generated, and the fit
    899 shall be performed on the entire image.
     888time.  In the binning, pixels in the \code{mask} (if non-\code{NULL})
     889which satisfy the \code{maskVal} shall be excluded.  The statistic to
     890use in this binning is specified by \code{stat}.  \code{stat} is of
     891type \code{psStats} instead of simply \code{psStatsOptions} so that
     892clipping levels may be specified, if desired.  In the event that
     893multiple options are specified by \code{stats}, a warning shall be
     894generated, and the option with the highest priority shall be used,
     895according to the following priority order: \code{PS_STAT_SAMPLE_MEAN},
     896\code{PS_STAT_SAMPLE_MEDIAN}, \code{PS_STAT_CLIPPED_MEAN},
     897\code{PS_STAT_ROBUST_MEAN}, \code{PS_STAT_ROBUST_MEDIAN},
     898\code{PS_STAT_ROBUST_MODE}.  If the \code{binFactor} is non-positive,
     899or \code{stats} is \code{NULL} or fails to specify an option, a
     900warning shall be generated, and the fit shall be performed on the
     901entire image.
    900902
    901903Binned pixels deviating more than \code{clipSD} standard deviations
    902904from the mean of the binned pixels shall be clipped in a single
    903 clipping iteration before polynomial fitting.  If the \code{clipSD} is
    904 non-positive, then the function shall generate a warning and not
    905 perform any clipping.
    906 
     905clipping iteration before polynomial fitting.  These pixels may be
     906interpolated over, or may be simply ignored in the fitting, according
     907to the choice of algorithm.  If the \code{clipSD} is non-positive,
     908then the function shall generate a warning and not perform any
     909clipping.
     910
     911The \code{mask} shall be of type \code{psU8}, and the input image,
     912\code{in}, shall be of type \code{psF32}.
    907913
    908914\section{Calibration}
Note: See TracChangeset for help on using the changeset viewer.