Changeset 41521 for trunk/psLib/src/fits/psFitsScale.c
- Timestamp:
- Apr 2, 2021, 2:14:14 PM (5 years ago)
- File:
-
- 1 edited
-
trunk/psLib/src/fits/psFitsScale.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/fits/psFitsScale.c
r41505 r41521 131 131 psStats *stats = psStatsAlloc(MEAN_STAT | STDEV_STAT); // Statistics object 132 132 double mean, stdev; // Mean and standard deviation 133 133 134 if (!psImageBackground(stats, NULL, image, mask, maskVal, rng)) { 134 135 // It could be because the image is entirely masked, in which case we don't want to error … … 919 920 case PS_FITS_SCALE_STDEV_NEGATIVE: 920 921 case PS_FITS_SCALE_STDEV_BOTH: 921 if (!scaleStdev(bscale, bzero, image, mask, maskVal, options)) {922 if (!scaleStdev(bscale, bzero, image, mask, maskVal, options)) { 922 923 psError(PS_ERR_UNKNOWN, false, "Unable to set BSCALE and BZERO from stdev"); 923 924 return false; 924 }925 } 925 926 break; 926 927 case PS_FITS_SCALE_LOG_RANGE:
Note:
See TracChangeset
for help on using the changeset viewer.
