IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Feb 12, 2007, 5:14:42 PM (19 years ago)
Author:
Paul Price
Message:

Propagating API change in psImageStats.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/src/objects/pmSource.c

    r11261 r11762  
    66 *  @author EAM, IfA: significant modifications.
    77 *
    8  *  @version $Revision: 1.24 $ $Name: not supported by cvs2svn $
    9  *  @date $Date: 2007-01-24 21:32:19 $
     8 *  @version $Revision: 1.25 $ $Name: not supported by cvs2svn $
     9 *  @date $Date: 2007-02-13 03:14:42 $
    1010 *
    1111 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    292292        // find the peak in this image
    293293        stats = psStatsAlloc (PS_STAT_MAX);
    294         stats = psImageStats (stats, splane, NULL, 0);
     294        if (!psImageStats (stats, splane, NULL, 0)) {
     295            psError(PS_ERR_UNKNOWN, false, "Unable to get image statistics.\n");
     296            psFree(stats);
     297            psFree(splane);
     298            return emptyClump;
     299        }
    295300        peaks = pmFindImagePeaks (splane, stats[0].max / 2);
    296301        psTrace ("psModules.objects", 2, "clump threshold is %f\n", stats[0].max/2);
     
    544549pmSource data structure, along with the peak location, and determines the
    545550various moments associated with that peak.
    546  
     551
    547552Requires the following to have been created:
    548553    pmSource
     
    551556    pmSource->weight
    552557    pmSource->mask
    553  
     558
    554559XXX: The peak calculations are done in image coords, not subImage coords.
    555  
     560
    556561XXX EAM : this version clips input pixels on S/N
    557562XXX EAM : this version returns false for several reasons
Note: See TracChangeset for help on using the changeset viewer.