IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jul 14, 2004, 1:22:49 PM (22 years ago)
Author:
desonia
Message:

Added psImageRebin functionality.

File:
1 edited

Legend:

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

    r1205 r1216  
    1010 *  @author Ross Harman, MHPCC
    1111 *
    12  *  @version $Revision: 1.1 $ $Name: not supported by cvs2svn $
    13  *  @date $Date: 2004-07-09 21:48:07 $
     12 *  @version $Revision: 1.2 $ $Name: not supported by cvs2svn $
     13 *  @date $Date: 2004-07-14 23:22:49 $
    1414 *
    1515 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
    1616 */
    17 # ifndef PS_IMAGE_MANIP_H
    18 # define PS_IMAGE_MANIP_H
     17#ifndef PS_IMAGE_MANIP_H
     18#define PS_IMAGE_MANIP_H
    1919
    2020#include "psImage.h"
     
    2323/// @{
    2424
    25 /** Clip image values outside of tange to given values
     25/** Clip image values outside of range to given values
    2626 *
    2727 *  All pixels with values less than min are set to the value vmin.  all pixels
     
    3333int psImageClip(
    3434    psImage* input,                 ///< the image to clip
    35     psF32 min,                      ///< the minimum image value allowed
    36     psF32 vmin,                     ///< the value pixels < min are set to
    37     psF32 max,                      ///< the maximum image value allowed
    38     psF32 vmax                      ///< the value pixels > max are set to
     35    psF64 min,                      ///< the minimum image value allowed
     36    psF64 vmin,                     ///< the value pixels < min are set to
     37    psF64 max,                      ///< the maximum image value allowed
     38    psF64 vmax                      ///< the value pixels > max are set to
     39);
     40
     41/** Clip image values outside of a specified complex region
     42 *
     43 *  All pixels outside of the rectangular region in complex space formed by
     44 *  the min and max input parameters are set to the value vmax (if either
     45 *  the real or imaginary portion exceeds the respective max values), or vmin.
     46 *  This function is defined for psC32, and psC64 imagery only.
     47 *
     48 *  @return int     The number of clipped pixels
     49 */
     50int psImageClipComplexRegion(
     51    psImage* input,                 ///< the image to clip
     52    psC64 min,                      ///< the minimum image value allowed
     53    psC64 vmin,                     ///< the value pixels < min are set to
     54    psC64 max,                      ///< the maximum image value allowed
     55    psC64 vmax                      ///< the value pixels > max are set to
    3956);
    4057
     
    4865int psImageClipNaN(
    4966    psImage* input,                 ///< the image to clip
    50     psF32 value                     ///< the value to set all NaN/Inf values to
     67    psF64 value                     ///< the value to set all NaN/Inf values to
    5168);
    5269
     
    7087);
    7188
     89/** Rebin image to new scale.
     90 *
     91 *  A new image is constructed in which the dimensions are reduced by a factor of
     92 *  1/scale.  The scale, always a positive number, is equal in each dimension and
     93 *  specified the number of pixels used to define a new pixel in the output image.
     94 *  The output image is generated from all input image pixels. This function is
     95 *  defined for psU8, psS8, psS16, psF32, psF64, psC32, and psC64.
     96 *
     97 *  @return psImage    new image formed by rebinning input image.
     98 */
     99psImage* psImageRebin(
     100    psImage* out,                   ///< an psImage to recycle.  If NULL, a new image is created
     101    const psImage* in,              ///< input image
     102    unsigned int scale,             ///< the scale to rebin for each dimension
     103    const psStats* stats            ///< the statistic to perform when rebinning.  Only one method should be set.
     104);
    72105
    73106#endif
     107
Note: See TracChangeset for help on using the changeset viewer.