IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Dec 24, 2007, 11:00:55 AM (18 years ago)
Author:
eugene
Message:

disabling floating-point fuzzing of data; it is not working and it needs to be optional

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/fits/psFitsImage.c

    r15630 r15909  
    77 *  @author Robert DeSonia, MHPCC
    88 *
    9  *  @version $Revision: 1.20 $ $Name: not supported by cvs2svn $
    10  *  @date $Date: 2007-11-16 01:04:56 $
     9 *  @version $Revision: 1.21 $ $Name: not supported by cvs2svn $
     10 *  @date $Date: 2007-12-24 21:00:55 $
    1111 *
    1212 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    241241}
    242242
     243# if (0)
     244// XXX this needs to be optional (eg, invalid for a mask)
    243245// Apply the BSCALE and BZERO for an image with a "fuzz"
    244246// The idea is that the "fuzz" (adding a random number between 0 and 1) preserves the expectation value of
     
    331333    return out;
    332334}
    333 
    334 
    335 
     335# endif
     336
     337# if (0)
     338// XXX supporting code needs to make this an optional operation
    336339// Determine BSCALE and BZERO for an image, and generate a new image with it applied
    337340// TRUE = BZERO + BSCALE * FITS
     
    411414    return scaleImageWrite(image, bitpix, *bscale, *bzero, rng);
    412415}
    413 
     416# endif
    414417
    415418#if 0
     
    530533
    531534    // Quantise floating-point images
     535    // XXX this needs to be more controlled: certainly not valid for output masks!
     536    # if (0)
    532537    if (PS_IS_PSELEMTYPE_REAL(image->type.type) && fits->bitpix > 0) {
    533538        if (newScaleZero) {
     
    553558        return scaleImageWrite((psImage*)image, fits->bitpix, *bscale, *bzero, rng);
    554559    }
     560    # endif
    555561
    556562    // Choose the appropriate output type, given the input type and desired bits per pixel
Note: See TracChangeset for help on using the changeset viewer.