00001 /* @file pmMoments.h 00002 * @brief Definitions of the moments structure 00003 * 00004 * @author GLG, MHPCC 00005 * 00006 * @version $Revision: 1.3 $ $Name: $ 00007 * @date $Date: 2007/01/24 02:54:15 $ 00008 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii 00009 */ 00010 00011 # ifndef PM_MOMENTS_H 00012 # define PM_MOMENTS_H 00013 00014 /// @addtogroup Objects Object Detection / Analysis Functions 00015 /// @{ 00016 00017 /** pmMoments data structure 00018 * 00019 * One of the simplest measurements which can be made quickly for an object 00020 * are the object moments. We specify a structure to carry the moment information 00021 * for a specific source: 00022 * 00023 */ 00024 typedef struct 00025 { 00026 float x; ///< X-coord of centroid. 00027 float y; ///< Y-coord of centroid. 00028 float Sx; ///< x-second moment. 00029 float Sy; ///< y-second moment. 00030 float Sxy; ///< xy cross moment. 00031 float Sum; ///< Pixel sum above sky (background). 00032 float Peak; ///< Peak counts above sky. 00033 float Sky; ///< Sky level (background). 00034 float dSky; ///< local Sky variance 00035 float SN; ///< approx signal-to-noise 00036 int nPixels; ///< Number of pixels used. 00037 } 00038 pmMoments; 00039 00040 /** pmMomentsAlloc() 00041 * 00042 */ 00043 pmMoments *pmMomentsAlloc(); 00044 00045 /// @} 00046 # endif
1.5.1