Changeset 15909
- Timestamp:
- Dec 24, 2007, 11:00:55 AM (18 years ago)
- File:
-
- 1 edited
-
trunk/psLib/src/fits/psFitsImage.c (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/fits/psFitsImage.c
r15630 r15909 7 7 * @author Robert DeSonia, MHPCC 8 8 * 9 * @version $Revision: 1.2 0$ $Name: not supported by cvs2svn $10 * @date $Date: 2007-1 1-16 01:04:56$9 * @version $Revision: 1.21 $ $Name: not supported by cvs2svn $ 10 * @date $Date: 2007-12-24 21:00:55 $ 11 11 * 12 12 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 241 241 } 242 242 243 # if (0) 244 // XXX this needs to be optional (eg, invalid for a mask) 243 245 // Apply the BSCALE and BZERO for an image with a "fuzz" 244 246 // The idea is that the "fuzz" (adding a random number between 0 and 1) preserves the expectation value of … … 331 333 return out; 332 334 } 333 334 335 335 # endif 336 337 # if (0) 338 // XXX supporting code needs to make this an optional operation 336 339 // Determine BSCALE and BZERO for an image, and generate a new image with it applied 337 340 // TRUE = BZERO + BSCALE * FITS … … 411 414 return scaleImageWrite(image, bitpix, *bscale, *bzero, rng); 412 415 } 413 416 # endif 414 417 415 418 #if 0 … … 530 533 531 534 // Quantise floating-point images 535 // XXX this needs to be more controlled: certainly not valid for output masks! 536 # if (0) 532 537 if (PS_IS_PSELEMTYPE_REAL(image->type.type) && fits->bitpix > 0) { 533 538 if (newScaleZero) { … … 553 558 return scaleImageWrite((psImage*)image, fits->bitpix, *bscale, *bzero, rng); 554 559 } 560 # endif 555 561 556 562 // Choose the appropriate output type, given the input type and desired bits per pixel
Note:
See TracChangeset
for help on using the changeset viewer.
