Changeset 4253
- Timestamp:
- Jun 14, 2005, 2:30:28 PM (21 years ago)
- Location:
- trunk/doc/pslib
- Files:
-
- 2 edited
-
ChangeLogSDRS.tex (modified) (2 diffs)
-
psLibSDRS.tex (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/doc/pslib/ChangeLogSDRS.tex
r4252 r4253 1 %%% $Id: ChangeLogSDRS.tex,v 1.1 39 2005-06-14 20:28:53 price Exp $1 %%% $Id: ChangeLogSDRS.tex,v 1.140 2005-06-15 00:30:28 eugene Exp $ 2 2 3 3 \subsection{Changes from version 00 to version 01} … … 710 710 appropriate. Noted that metadata functions must copy strings in to 711 711 a \code{psMetadataItem}. 712 \end{itemize} 712 \item added psRegionForSquare 713 \item added psImageMaskRegion, psImageKeepRegion 714 \item added psImageMaskCircle, psImageKeepCircle 715 \end{itemize} -
trunk/doc/pslib/psLibSDRS.tex
r4252 r4253 1 %%% $Id: psLibSDRS.tex,v 1.28 1 2005-06-14 20:28:53 price Exp $1 %%% $Id: psLibSDRS.tex,v 1.282 2005-06-15 00:30:28 eugene Exp $ 2 2 \documentclass[panstarrs,spec]{panstarrs} 3 3 … … 3212 3212 for the bounds of a specific image with \code{psRegionForImage}. The 3213 3213 output of this function is a region with negative upper limits 3214 replaced by their corrected value appropriate to the given image. 3214 replaced by their corrected value appropriate to the given image. In 3215 addition, the lower and upper limits are forced to lie within the 3216 bounds of the image. If the lower-limit coordinates are less than the 3217 lower bound of the image, they are limited to the lower bound of the 3218 image. Conversely, if the upper-limit coordinates are greater than 3219 the upper bound of the image, they are truncated to define only valid 3220 pixels. If the lower-limit coordinates are greater than the upper 3221 bounds of the image, or the upper-limit coorindates are less than the 3222 lower bounds of the image, the coordinates should saturate on those 3223 limits. The output of this function is always a valid region, though 3224 it may define an area of 0 pixels. 3225 3226 3227 \begin{prototype} 3228 psRegion psRegionForSquare(double x, double y, double radius); 3229 \end{prototype} 3230 This utility function defines a \code{psRegion} corresponding to the 3231 square with center at coordinate \code{x,y} and with code{radius}. 3232 The width of the square is thus \code{2radius + 1}. 3215 3233 3216 3234 \pagebreak … … 4941 4959 \code{NULL}. 4942 4960 4961 \begin{prototype} 4962 void psImageMaskRegion (psImage *image, psRegion region, bool logical_and, int maskValue); 4963 void psImageKeepRegion (psImage *image, psRegion region, bool logical_and, int maskValue); 4964 \end{prototype 4965 4966 These two complementary functions set bit specified bits 4967 (\code{maskValue}) in the mask \code{image} interior to or exterior to 4968 the specified \code{region}. The first function, 4969 \code{psImageMaskRegion}, sets the bits inside the region, ignoring 4970 pixels outside. The second, \code{psImageKeepRegion}, sets the bits 4971 outside the region, ignoring pixels inside. The pixel values are set 4972 by combining the existing pixel value and the given \code{maskValue} 4973 with a logical \code{and} if \code{logical_and} is set, otherwise it 4974 uses a logical \code{or}. 4975 4976 \begin{prototype} 4977 void psImageMaskCircle (psImage *image, double x, double y, double radius, bool logical_and, int maskValue); 4978 void psImageKeepCircle (psImage *image, double x, double y, double radius, bool logical_and, int maskValue); 4979 \end{prototype} 4980 4981 These two complementary functions set bit specified bits 4982 (\code{maskValue}) in the mask \code{image} interior to or exterior to 4983 the specified circle, defined by the center coordinates \code{x,y} and 4984 a \code{radius}. The first function, \code{psImageMaskCircle}, sets 4985 the bits inside the circle, ignoring pixels outside. The second, 4986 \code{psImageKeepCircle}, sets the bits outside the circle, ignoring 4987 pixels inside. The pixel values are set by combining the existing 4988 pixel value and the given \code{maskValue} with a logical \code{and} 4989 if \code{logical_and} is set, otherwise it uses a logical \code{or}. 4990 4943 4991 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 4944 4992
Note:
See TracChangeset
for help on using the changeset viewer.
