Changeset 9613
- Timestamp:
- Oct 17, 2006, 10:39:50 AM (20 years ago)
- File:
-
- 1 edited
-
trunk/psModules/src/detrend/pmFlatField.h (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psModules/src/detrend/pmFlatField.h
r9612 r9613 8 8 /// @author Paul Price, IfA 9 9 /// 10 /// @version $Revision: 1. 5$ $Name: not supported by cvs2svn $11 /// @date $Date: 2006-10-17 20:3 8:42$10 /// @version $Revision: 1.6 $ $Name: not supported by cvs2svn $ 11 /// @date $Date: 2006-10-17 20:39:50 $ 12 12 /// 13 13 /// Copyright 2004-2006 Institute for Astronomy, University of Hawaii 14 14 /// 15 15 16 /** @file pmFlatField.h 17 * 18 * @brief Given an input image and a flat field image, pmFlatField shall divide the input image by the flat 19 * field image. 20 * 21 * The input image, in, and the flat field image, flat, need not be the same size, since the input image may 22 * already have been trimmed (following overscan subtraction), but the function shall use the offsets in the 23 * image (in->x0 and in->y0) to determine the appropriate offsets to obtain the correct pixel on the flat 24 * field. In the event that the flat image is too small (i.e., pixels on the input image refer to pixels 25 * outside the range of the flat image), the function shall generate an error. Pixels which are negative or 26 * zero in the flat shall be masked in the input image with the value PM_MASK_FLAT. Negative pixels in the 27 * flat may be set to zero so that they are treated identically to zeroes. Any pixels masked in the flat 28 * shall be masked with corresponding values in the output. The function shall not normalize the flat; this 29 * responsibility is left to the caller. This function is basically equivalent to a divide (with psImageOp), 30 * but with care for the region that is divided, checking for negative pixels, and copying of the mask from 31 * the flat to the output. 32 * 33 * @author Ross Harman, MHPCC 34 * 35 * @version $Revision: 1.5 $ $Name: not supported by cvs2svn $ 36 * @date $Date: 2006-10-17 20:38:42 $ 37 * 38 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii 39 */ 40 41 16 #ifndef PM_FLAT_FIELD_H 17 #define PM_FLAT_FIELD_H 42 18 43 19 #include "pmFPA.h" 44 45 46 /** Execute flat field module.47 *48 * Given an input image and a flat-field image, pmFlatField shall divide the input image by the flat field49 * image.50 *51 * @return bool: True or false for success or failure52 */53 54 20 55 21 /// Apply flat field calibration to a readout … … 64 30 ); 65 31 32 33 #endif
Note:
See TracChangeset
for help on using the changeset viewer.
