IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
May 21, 2014, 5:00:29 PM (12 years ago)
Author:
watersc1
Message:

Fix to fuzz that fixes the residual background issue.

File:
1 edited

Legend:

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

    r35980 r36760  
    10221022                       /* Add random factor [-0.5,0.5): adds a variance of 1/12, */ \
    10231023                       /* but preserves the expectation value */ \
    1024                         value += psRandomUniform(rng) - 0.5; \
     1024                        value += psRandomUniform(rng) ; \
    10251025                    } \
    10261026                    /* Check for underflow and overflow; set either to max */ \
    1027                     (OUT)->data.OUTTYPE[y][x] = (value < min || value > max ? max : value); \
     1027                    (OUT)->data.OUTTYPE[y][x] = (value < min || value > max ? max : floor(value)); \
    10281028                } \
    10291029            } \
Note: See TracChangeset for help on using the changeset viewer.