IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Dec 14, 2007, 3:20:03 PM (18 years ago)
Author:
Paul Price
Message:

A little bit of cleaning up, and making it so that the statistic to be used may be specified.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/imageops/psImageMap.h

    r15598 r15841  
    77 *  @author Eugene Magnier, IfA
    88 *
    9  *  @version $Revision: 1.6 $ $Name: not supported by cvs2svn $
    10  *  @date $Date: 2007-11-13 18:23:17 $
     9 *  @version $Revision: 1.7 $ $Name: not supported by cvs2svn $
     10 *  @date $Date: 2007-12-15 01:20:03 $
    1111 *
    1212 *  Copyright 2007 Institute for Astronomy, University of Hawaii
     
    1818/// @addtogroup ImageOps Image Operations
    1919/// @{
     20
     21#include <psStats.h>
     22#include <psImage.h>
     23#include <psImageBinning.h>
     24#include <psVector.h>
    2025
    2126// a structure to describe the 2D variations of some quantity as a function of position the
     
    3338    int nPoor;
    3439    int nGood;
     40    psStatsOptions singleMean, singleStdev;  // Statistics for mean and stdev when there's a single pixel
    3541} psImageMap;
    3642
     
    4349
    4450// 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);
     51bool psImageMapGenerate (psImageMap *map, const psVector *x, const psVector *y, const psVector *f, const psVector *df, float badFrac);
    4652
    47 bool psImageMapGenerateScale (psImageMap *map, psVector *x, psVector *y, psVector *f, psVector *df, float badFrac);
     53bool psImageMapGenerateScale (psImageMap *map, const psVector *x, const psVector *y, const psVector *f, const psVector *df, float badFrac);
    4854
    4955// apply the psImageMap to the given coordinate (fine image pixels)
    50 double psImageMapEval (psImageMap *map, float x, float y);
     56double psImageMapEval (const psImageMap *map, float x, float y);
    5157
    5258// 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);
     59psVector *psImageMapEvalVector (const psImageMap *map, const psVector *x, const psVector *y);
    6360
    6461/// @}
Note: See TracChangeset for help on using the changeset viewer.