IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Aug 23, 2007, 2:52:55 PM (19 years ago)
Author:
eugene
Message:

finish code re-org, add loading of external psf model

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ppSim/src/ppSimAddNoise.c

    r14463 r14657  
    22
    33// Add noise to an image
    4 psImage *ppSimAddNoise(psImage *signal, // Signal image, modified and returned
    5                        const psImage *variance, // Variance image
    6                        const pmConfig *config,                 
    7                        const pmCell *cell,
    8                        const psRandom *rng // Random number generator
     4bool ppSimAddNoise(psImage *signal, // Signal image, modified and returned
     5                   psImage *variance,
     6                   const pmCell *cell,
     7                   const pmConfig *config,                     
     8                   const psRandom *rng // Random number generator
    99    )
    1010{
     
    2222        if (!mdok) {
    2323            psError(PS_ERR_BAD_PARAMETER_VALUE, false, "Unable to find GAIN in recipe.");
    24             return NULL;
     24            return false;
    2525        }
    2626    }
     
    3838
    3939    // XXX why return this??
    40     return signal;
     40    return true;
    4141}
    4242
Note: See TracChangeset for help on using the changeset viewer.