Changeset 1442 for trunk/psLib/src/image/psImageStats.h
- Timestamp:
- Aug 9, 2004, 3:05:53 PM (22 years ago)
- File:
-
- 1 edited
-
trunk/psLib/src/image/psImageStats.h (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/image/psImageStats.h
r1441 r1442 1 2 1 /** @file psImageStats.h 3 2 * \brief Routines for calculating statistics on images. … … 10 9 * @author George Gusciora, MHPCC 11 10 * 12 * @version $Revision: 1.1 4$ $Name: not supported by cvs2svn $13 * @date $Date: 2004-08- 09 23:40:55$11 * @version $Revision: 1.15 $ $Name: not supported by cvs2svn $ 12 * @date $Date: 2004-08-10 01:05:53 $ 14 13 * 15 14 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 27 26 /// @{ 28 27 29 /// This routine must determine the various statistics for the image. 30 psStats* psImageStats(psStats* stats, ///< defines statistics to be calculated 31 psImage* in, ///< image (or subimage) to calculate stats 32 psImage* mask, ///< mask data for image (NULL ok) 33 int maskVal); ///< mask Mask for mask 28 /** This routine must determine the various statistics for the image. 29 * 30 * Determine statistics for image (or subimage). The statistics to be 31 * determined are specified by stats. The mask allows pixels to be excluded 32 * if their corresponding mask pixel value matches the value of maskVal. 33 * This function must be defined for the following types: psS8, psU16, psF32, 34 * psF64. 35 * 36 * @return psStats* the resulting statistics result(s) 37 */ 38 psStats* psImageStats( 39 psStats* stats, ///< defines statistics to be calculated 40 psImage* in, ///< image (or subimage) to calculate stats 41 psImage* mask, ///< mask data for image (NULL ok) 42 int maskVal ///< mask Mask for mask 43 ); 34 44 35 psHistogram* psImageHistogram(psHistogram* out, ///< input histogram description & target 36 psImage* in, ///< Image data to be histogramed. 37 psImage* mask, ///< mask data for image (NULL ok) 38 unsigned int maskVal); ///< mask Mask for mask 45 /** Construct a histogram from an image (or subimage). 46 * 47 * The histogram to generate is specified by psHistogram hist (see section 48 * 4.3.2 in SDRS). This function must be defined for the following types: 49 * psS8, psU16, psF32, psF64. 50 * 51 * @return psHistogram* the resulting histogram 52 */ 53 psHistogram* psImageHistogram( 54 psHistogram* out, ///< input histogram description & target 55 psImage* in, ///< Image data to be histogramed. 56 psImage* mask, ///< mask data for image (NULL ok) 57 unsigned int maskVal ///< mask Mask for mask 58 ); 39 59 40 /// Fit a 2-D polynomial surface to an image. 41 psPolynomial2D* psImageFitPolynomial(const psImage* input, ///< image to fit 42 psPolynomial2D* coeffs ///< coefficient structure carries in 43 // desired terms & target 44 ); 60 /** Fit a 2-D polynomial surface to an image. 61 * 62 * The input structure coeffs contains the desired order and terms of 63 * interest. This function must be defined for the following types: psS8, 64 * psU16, psF32, psF64. 65 * 66 * @return psPolynomial2D* fitted polynomial result 67 * 68 */ 69 psPolynomial2D* psImageFitPolynomial( 70 const psImage* input, ///< image to fit 71 psPolynomial2D* coeffs ///< coefficient structure carries in desired terms & target 72 ); 45 73 46 /// Evaluate a 2-D polynomial surface to image pixels. 47 int psImageEvalPolynomial(const psImage* input, ///< image to fit 48 const psPolynomial2D* coeffs ///< coefficient structure carries in desired terms 49 ); 74 /** Evaluate a 2-D polynomial surface for the image pixels. 75 * 76 * Given the input polynomial coefficients, set the image pixel values on the 77 * basis of the polynomial function. This function must be defined for the 78 * following types: psS8, psU16, psF32, psF64. 79 * 80 * @return psImage* the resulting image 81 */ 82 int psImageEvalPolynomial( 83 const psImage* input, ///< input image 84 const psPolynomial2D* coeffs ///< coefficient structure carries in desired terms 85 ); 50 86 51 87 /// @}
Note:
See TracChangeset
for help on using the changeset viewer.
