Changeset 31451 for trunk/psModules/src/objects/pmGrowthCurve.c
- Timestamp:
- May 5, 2011, 11:02:53 AM (15 years ago)
- File:
-
- 1 edited
-
trunk/psModules/src/objects/pmGrowthCurve.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psModules/src/objects/pmGrowthCurve.c
r29004 r31451 73 73 // Fractional pixel radii are not well defined; use integer pixel radii. Use 1 pixel steps 74 74 // until the scaling factor steps in intervals larger than 1 pixel 75 float Rlin = 1.0 / (fR - 1.0);75 // float Rlin = 1.0 / (fR - 1.0); 76 76 77 77 growth->radius = psVectorAllocEmpty (NPTS, PS_DATA_F32); … … 79 79 // there will be NPTS radii + a few extras 80 80 float radius = minRadius; 81 while (radius < Rlin) {81 while (radius < refRadius) { 82 82 // fprintf (stderr, "r: %f\n", radius); 83 psVectorAppend (growth->radius, radius );83 psVectorAppend (growth->radius, radius - 0.001); 84 84 radius += 1.0; 85 85 } 86 growth->refBin = growth->radius->n - 1; 86 87 while (radius < maxRadius) { 87 88 // fprintf (stderr, "r: %f\n", radius); 88 psVectorAppend (growth->radius, radius );89 psVectorAppend (growth->radius, radius - 0.001); 89 90 radius *= fR; 90 91 radius = (int) (radius + 0.5); … … 96 97 growth->refRadius = refRadius; 97 98 growth->maxRadius = maxRadius; 98 growth->apLoss = 0.0; 99 growth->fitMag = 0.0; 99 growth->fitMag = NAN; 100 growth->refMag = NAN; 101 growth->apRef = NAN; 102 growth->apLoss = NAN; 103 100 104 return growth; 101 105 }
Note:
See TracChangeset
for help on using the changeset viewer.
