IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jun 14, 2005, 3:19:11 PM (21 years ago)
Author:
Paul Price
Message:

Updated psImageMaskRegion/Circle and psImageKeepRegion/Circle.

File:
1 edited

Legend:

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

    r4260 r4261  
    1 %%% $Id: psLibSDRS.tex,v 1.287 2005-06-15 01:11:17 jhoblitt Exp $
     1%%% $Id: psLibSDRS.tex,v 1.288 2005-06-15 01:19:11 price Exp $
    22\documentclass[panstarrs,spec]{panstarrs}
    33
     
    50185018
    50195019\begin{prototype}
    5020 void psImageMaskRegion (psImage *image, psRegion region, bool logical_and, int maskValue);
    5021 void psImageKeepRegion (psImage *image, psRegion region, bool logical_and, int maskValue);
    5022 \end{prototype
     5020void psImageMaskRegion(psImage *image, psRegion region, const char *op, psMask maskValue);
     5021void psImageKeepRegion(psImage *image, psRegion region, const char *op, psMask maskValue);
     5022\end{prototype}
    50235023
    50245024These two complementary functions set bit specified bits
     
    50295029outside the region, ignoring pixels inside.  The pixel values are set
    50305030by combining the existing pixel value and the given \code{maskValue}
    5031 with a logical \code{and} if \code{logical_and} is set, otherwise it
    5032 uses a logical \code{or}.
    5033 
    5034 \begin{prototype}
    5035 void psImageMaskCircle (psImage *image, double x, double y, double radius, bool logical_and, int maskValue);
    5036 void psImageKeepCircle (psImage *image, double x, double y, double radius, bool logical_and, int maskValue);
     5031with a logical operation.  The allowed operations are \code{=},
     5032\code{AND}, \code{OR} and \code{XOR}.
     5033
     5034\begin{prototype}
     5035void psImageMaskCircle(psImage *image, double x, double y, double radius, const char *op,
     5036                       psMask maskValue);
     5037void psImageKeepCircle(psImage *image, double x, double y, double radius, const char *op,
     5038                       psMask maskValue);
    50375039\end{prototype}
    50385040
     
    50445046\code{psImageKeepCircle}, sets the bits outside the circle, ignoring
    50455047pixels inside.  The pixel values are set by combining the existing
    5046 pixel value and the given \code{maskValue} with a logical \code{and}
    5047 if \code{logical_and} is set, otherwise it uses a logical \code{or}.
     5048pixel value and the given \code{maskValue} with a logical operation.
     5049The allowed operations are \code{=}, \code{AND}, \code{OR} and
     5050\code{XOR}.
    50485051
    50495052%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Note: See TracChangeset for help on using the changeset viewer.