Changeset 14545 for branches/eam_branch_20070817/psphot/src/pmFootprint.c
- Timestamp:
- Aug 17, 2007, 11:27:05 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branch_20070817/psphot/src/pmFootprint.c
r14335 r14545 29 29 } 30 30 31 bool pm IsSpan(const psPtr ptr)31 bool pmSpanTest(const psPtr ptr) 32 32 { 33 33 return (psMemGetDeallocator(ptr) == (psFreeFunc)spanFree); … … 115 115 } 116 116 117 bool pm IsFootprint(const psPtr ptr) {117 bool pmFootprintTest(const psPtr ptr) { 118 118 return (psMemGetDeallocator(ptr) == (psFreeFunc)footprintFree); 119 119 } … … 762 762 // Set stop bits from peaks list 763 763 // 764 assert (peaks == NULL || peaks->n == 0 || pm IsPeak(peaks->data[0]));764 assert (peaks == NULL || peaks->n == 0 || pmPeakTest(peaks->data[0])); 765 765 if (peaks != NULL) { 766 766 for (int i = 0; i < peaks->n; i++) { … … 859 859 } 860 860 const pmFootprint *fp = footprints->data[0]; 861 assert(pm IsFootprint((const psPtr)fp));861 assert(pmFootprintTest((const psPtr)fp)); 862 862 const int numCols = fp->region.x1 - fp->region.x0 + 1; 863 863 const int numRows = fp->region.y1 - fp->region.y0 + 1; … … 884 884 psImage *pmSetFootprintID(const pmFootprint *fp, // the footprint to insert 885 885 const int id) { // the desired ID 886 assert(fp != NULL && pm IsFootprint((const psPtr)fp));886 assert(fp != NULL && pmFootprintTest((const psPtr)fp)); 887 887 const int numCols = fp->region.x1 - fp->region.x0 + 1; 888 888 const int numRows = fp->region.y1 - fp->region.y0 + 1; … … 910 910 psArray *pmGrowFootprintArray(const psArray *footprints, // footprints to grow 911 911 int r) { // how much to grow each footprint 912 assert (footprints->n == 0 || pm IsFootprint(footprints->data[0]));912 assert (footprints->n == 0 || pmFootprintTest(footprints->data[0])); 913 913 914 914 if (footprints->n == 0) { // we don't know the size of the footprint's region … … 964 964 const psArray *footprints2, // the other set 965 965 const int includePeaks) { // which peaks to set? 0x1 => footprints1, 0x2 => 2 966 assert (footprints1->n == 0 || pm IsFootprint(footprints1->data[0]));967 assert (footprints2->n == 0 || pm IsFootprint(footprints2->data[0]));966 assert (footprints1->n == 0 || pmFootprintTest(footprints1->data[0])); 967 assert (footprints2->n == 0 || pmFootprintTest(footprints2->data[0])); 968 968 969 969 if (footprints1->n == 0 || footprints2->n == 0) { // nothing to do but put copies on merged … … 1032 1032 const psArray *peaks) { // the pmPeaks 1033 1033 assert (footprints != NULL); 1034 assert (footprints->n == 0 || pm IsFootprint(footprints->data[0]));1034 assert (footprints->n == 0 || pmFootprintTest(footprints->data[0])); 1035 1035 assert (peaks != NULL); 1036 assert (peaks->n == 0 || pm IsPeak(peaks->data[0]));1036 assert (peaks->n == 0 || pmPeakTest(peaks->data[0])); 1037 1037 1038 1038 if (footprints->n == 0) { … … 1222 1222 psArray *pmFootprintArrayToPeaks(const psArray *footprints) { 1223 1223 assert(footprints != NULL); 1224 assert(footprints->n == 0 || pm IsFootprint(footprints->data[0]));1224 assert(footprints->n == 0 || pmFootprintTest(footprints->data[0])); 1225 1225 1226 1226 int npeak = 0;
Note:
See TracChangeset
for help on using the changeset viewer.
