Changeset 15841 for trunk/psLib/src/imageops/psImageMap.h
- Timestamp:
- Dec 14, 2007, 3:20:03 PM (18 years ago)
- File:
-
- 1 edited
-
trunk/psLib/src/imageops/psImageMap.h (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/imageops/psImageMap.h
r15598 r15841 7 7 * @author Eugene Magnier, IfA 8 8 * 9 * @version $Revision: 1. 6$ $Name: not supported by cvs2svn $10 * @date $Date: 2007-1 1-13 18:23:17$9 * @version $Revision: 1.7 $ $Name: not supported by cvs2svn $ 10 * @date $Date: 2007-12-15 01:20:03 $ 11 11 * 12 12 * Copyright 2007 Institute for Astronomy, University of Hawaii … … 18 18 /// @addtogroup ImageOps Image Operations 19 19 /// @{ 20 21 #include <psStats.h> 22 #include <psImage.h> 23 #include <psImageBinning.h> 24 #include <psVector.h> 20 25 21 26 // a structure to describe the 2D variations of some quantity as a function of position the … … 33 38 int nPoor; 34 39 int nGood; 40 psStatsOptions singleMean, singleStdev; // Statistics for mean and stdev when there's a single pixel 35 41 } psImageMap; 36 42 … … 43 49 44 50 // generate a psImageMap (or NULL) with the given number of superpixels in X and Y 45 bool psImageMapGenerate (psImageMap *map, psVector *x, psVector *y, psVector *f,psVector *df, float badFrac);51 bool psImageMapGenerate (psImageMap *map, const psVector *x, const psVector *y, const psVector *f, const psVector *df, float badFrac); 46 52 47 bool psImageMapGenerateScale (psImageMap *map, psVector *x, psVector *y, psVector *f,psVector *df, float badFrac);53 bool psImageMapGenerateScale (psImageMap *map, const psVector *x, const psVector *y, const psVector *f, const psVector *df, float badFrac); 48 54 49 55 // apply the psImageMap to the given coordinate (fine image pixels) 50 double psImageMapEval ( psImageMap *map, float x, float y);56 double psImageMapEval (const psImageMap *map, float x, float y); 51 57 52 58 // apply the psImageMap to the given coordinate vectors (fine image pixels) 53 psVector *psImageMapEvalVector (psImageMap *map, psVector *x, psVector *y); 54 55 // fit the image map to a set of points 56 bool psImageMapFit (psImageMap *map, psVector *mask, psMaskType maskValue, psVector *x, psVector *y, psVector *f, psVector *df); 57 58 // fit the image map to a set of points 59 bool psImageMapClipFit (psImageMap *map, psStats *stats, psVector *mask, psMaskType maskValue, psVector *x, psVector *y, psVector *f, psVector *df); 60 61 bool psImageMapFit1DinY (psImageMap *map, psVector *mask, psMaskType maskValue, psVector *x, psVector *y, psVector *f, psVector *df); 62 bool psImageMapFit1DinX (psImageMap *map, psVector *mask, psMaskType maskValue, psVector *x, psVector *y, psVector *f, psVector *df); 59 psVector *psImageMapEvalVector (const psImageMap *map, const psVector *x, const psVector *y); 63 60 64 61 /// @}
Note:
See TracChangeset
for help on using the changeset viewer.
