IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
May 16, 2008, 4:30:51 PM (18 years ago)
Author:
Paul Price
Message:

Add a function to set masked pixels to NAN. This appears to be important in image subtraction because subtraction can produce a bimodal image for which statistics fails; then the image can't be written out compressed because the statistics is essential for quantisation.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/src/imcombine/pmSubtractionMask.h

    r15756 r17729  
    2222    );
    2323
     24/// Apply the subtraction mask to an image and weight.
     25///
     26/// Unfortunately, image subtraction may result in a bi-modal image in masked areas, which can upset image
     27/// statistics (very important for quantising images so that a product can be written out!).  This function
     28/// sets masked areas to NAN in the image and weight.
     29bool pmSubtractionMaskApply(psImage *image, ///< Image to which to apply mask
     30                            psImage *weight, ///< Weight map to which to apply mask (or NULL)
     31                            const psImage *mask, ///< Subtraction mask
     32                            pmSubtractionMode mode ///< Subtraction mode
     33    );
     34
    2435
    2536#endif
Note: See TracChangeset for help on using the changeset viewer.