IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 32200


Ignore:
Timestamp:
Aug 29, 2011, 2:50:41 AM (15 years ago)
Author:
eugene
Message:

add structure to peaks to carry the saddle points

Location:
branches/eam_branches/ipp-20110710/psModules/src/objects
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20110710/psModules/src/objects/pmPeaks.c

    r31451 r32200  
    137137*****************************************************************************/
    138138static void peakFree(pmPeak *tmp)
    139 {} //
     139{
     140    if (!tmp) return;
     141    psFree (tmp->saddlePoints);
     142    return;
     143}
    140144
    141145pmPeak *pmPeakAlloc(psS32 x,
     
    162166    tmp->type = type;
    163167    tmp->footprint = NULL;
     168    tmp->saddlePoints = NULL;
    164169
    165170    psMemSetDeallocator(tmp, (psFreeFunc) peakFree);
  • branches/eam_branches/ipp-20110710/psModules/src/objects/pmPeaks.h

    r31451 r32200  
    7272    pmPeakType type;                    ///< Description of peak.
    7373    pmFootprint *footprint;             ///< reference to containing footprint
     74    psArray *saddlePoints;              ///< set of saddle points between this peak and near neighbors
    7475}
    7576pmPeak;
Note: See TracChangeset for help on using the changeset viewer.