00001 /** @file pmSourceContour.h 00002 * 00003 * @author EAM, IfA; GLG, MHPCC 00004 * 00005 * @version $Revision: 1.2 $ $Name: rel12 $ 00006 * @date $Date: 2006/04/17 18:01:05 $ 00007 * 00008 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii 00009 * 00010 */ 00011 00012 # ifndef PM_SOURCE_CONTOUR_H 00013 # define PM_SOURCE_CONTOUR_H 00014 00015 psArray *pmSourceContour (psImage *image, int xc, int yc, float threshold); 00016 00017 00018 /** pmSourceContour() 00019 * 00020 * Find points in a contour for the given source at the given level. If type 00021 * is PM_CONTOUR_CRUDE, the contour is found by starting at the source peak, 00022 * running along each pixel row until the level is crossed, then interpolating to 00023 * the level coordinate for that row. This is done for each row, with the 00024 * starting point determined by the midpoint of the previous row, until the 00025 * starting point has a value below the contour level. The returned contour 00026 * consists of two vectors giving the x and y coordinates of the contour levels. 00027 * This function may be used as part of the model guess inputs. Other contour 00028 * types may be specified in the future for more refined contours (TBD) 00029 * 00030 */ 00031 psArray *pmSourceContour_Crude( 00032 pmSource *source, ///< The input pmSource 00033 const psImage *image, ///< The input image (float) (this arg should be removed) 00034 float level ///< The level of the contour 00035 ); 00036 00037 # endif /* PM_SOURCE_PHOTOMETRY_H */
1.4.4