IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jun 1, 2004, 10:00:08 AM (22 years ago)
Author:
desonia
Message:

added psImageClip* functions.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/image/psImage.h

    r816 r820  
    99 *  @author Ross Harman, MHPCC
    1010 *
    11  *  @version $Revision: 1.17 $ $Name: not supported by cvs2svn $
    12  *  @date $Date: 2004-05-29 01:42:12 $
     11 *  @version $Revision: 1.18 $ $Name: not supported by cvs2svn $
     12 *  @date $Date: 2004-06-01 20:00:08 $
    1313 *
    1414 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    8888/** Resize a given image to the given size/type.
    8989 *
    90  *  return psImage* Resized psImage.
     90 *  @return psImage* Resized psImage.
    9191 *
    9292 */
     
    127127/** Frees all children of a psImage.
    128128 *
    129  *  return int      Number of children freed.
     129 *  @return int      Number of children freed.
    130130 *
    131131 */
     
    137137/** Makes a copy of a psImage
    138138 *
    139  * return psImage*  Copy of the input psImage.  This may not be equal to the
     139 * @return psImage*  Copy of the input psImage.  This may not be equal to the
    140140 * output parameter
    141141 *
     
    152152);
    153153
     154/** Clip image values outside of tange to given values
     155 *
     156 *  All pixels with values less than min are set to the value vmin.  all pixels
     157 *  with values greater than max are set to the value vmax. This function is
     158 *  defined for psU8, psU16, psS8, psS16, psF32, psF64, psC32, and psC64.
     159 *
     160 *  @return int     The number of clipped pixels
     161 */
     162int psImageClip(
     163    psImage* input,                 ///< the image to clip
     164    psF32 min,                      ///< the minimum image value allowed
     165    psF32 vmin,                     ///< the value pixels < min are set to
     166    psF32 max,                      ///< the maximum image value allowed
     167    psF32 vmax                      ///< the value pixels > max are set to
     168);
     169
     170/** Clip NaN image pixels to given value.
     171 *
     172 *  Pixels with NaN, +Inf, or -Inf values are set to the specified value. This
     173 *  function is defined for psF32, psF64, psC32, and psC64.
     174 *
     175 *  @return int     The number of clipped pixels
     176 */
     177int psImageClipNaN(
     178    psImage* input,                 ///< the image to clip
     179    psF32 value                     ///< the value to set all NaN/Inf values to
     180);
     181
     182/** Overlay subregion of image with another image
     183 *
     184 *  Replace the pixels in the image which correspond to the pixels in OVERLAY
     185 *  with values derived from the IMAGE and OVERLAY based on the given operator
     186 *  OP.  Valid operators are "=" (set image value to OVERLAY value), "+" (add
     187 *  OVERLAY value to image value), "-" (subtract OVERLAY from image), "*"
     188 *  (multiply OVERLAY times image), "/" (divide image by OVERLAY).  This
     189 *  function is defined for psU8, psS8, psS16, psF32, psF64, psC32, and psC64.
     190 *
     191 *  @return int         0 if success, non-zero if failed.
     192 */
     193int psImageOverlaySection(
     194    psImage* image,                 ///< target image
     195    const psImage* overlay,         ///< the overlay image
     196    int col0,                       ///< the column to start overlay
     197    int row0,                       ///< the row to start overlay
     198    const char* op                  ///< the operation to perform for overlay
     199);
    154200
    155201#endif
Note: See TracChangeset for help on using the changeset viewer.