Changeset 7283 for trunk/psModules/src/detrend
- Timestamp:
- Jun 1, 2006, 4:16:05 PM (20 years ago)
- Location:
- trunk/psModules/src/detrend
- Files:
-
- 4 edited
-
Makefile.am (modified) (2 diffs)
-
pmFlatField.c (modified) (2 diffs)
-
pmMaskBadPixels.c (modified) (4 diffs)
-
pmMaskBadPixels.h (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psModules/src/detrend/Makefile.am
r7275 r7283 7 7 pmFlatNormalize.c \ 8 8 pmFringeStats.c \ 9 pmMaskBadPixels.c \ 9 10 pmNonLinear.c \ 10 11 pmSubtractBias.c 11 12 # pmSubtractSky.c 12 # pmMaskBadPixels.c13 13 14 14 psmoduleincludedir = $(includedir) … … 18 18 pmFlatNormalize.h \ 19 19 pmFringeStats.h \ 20 pmMaskBadPixelsErrors.h \ 21 pmMaskBadPixels.h \ 20 22 pmNonLinear.h \ 21 23 pmSubtractBias.h 22 24 # pmSubtractSky.c 23 # pmMaskBadPixelsErrors.h24 # pmMaskBadPixels.h25 25 26 26 EXTRA_DIST = \ -
trunk/psModules/src/detrend/pmFlatField.c
r7278 r7283 18 18 * @author Ross Harman, MHPCC 19 19 * 20 * @version $Revision: 1. 7$ $Name: not supported by cvs2svn $21 * @date $Date: 2006-06-02 0 0:55:23$20 * @version $Revision: 1.8 $ $Name: not supported by cvs2svn $ 21 * @date $Date: 2006-06-02 02:16:05 $ 22 22 * 23 23 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 34 34 #include "pslib.h" 35 35 #include "pmFlatField.h" 36 #include "pm MaskBadPixels.h"36 #include "pmFPAMaskWeight.h" 37 37 #include "pmFlatFieldErrors.h" 38 38 -
trunk/psModules/src/detrend/pmMaskBadPixels.c
r6910 r7283 1 //////////////////////////////////////////////////////////////////////////////////////////////////////////////2 // XXX WARNING: I have completely replaced this file with an OLD VERSION (that works) instead of the3 // one that was being worked on.4 //////////////////////////////////////////////////////////////////////////////////////////////////////////////5 6 1 /** @file pmMaskBadPixels.c 7 2 * … … 24 19 * @author Ross Harman, MHPCC 25 20 * 26 * @version $Revision: 1. 6$ $Name: not supported by cvs2svn $27 * @date $Date: 2006-0 4-19 20:37:35 $21 * @version $Revision: 1.7 $ $Name: not supported by cvs2svn $ 22 * @date $Date: 2006-06-02 02:16:05 $ 28 23 * 29 24 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 34 29 #endif 35 30 36 #include <stdio.h>37 #include <math.h>38 #include <strings.h>31 #include <stdio.h> 32 #include <math.h> 33 #include <strings.h> 39 34 35 #include "pmFPAMaskWeight.h" 40 36 #include "pmMaskBadPixels.h" 41 37 #include "pmMaskBadPixelsErrors.h" … … 148 144 /* Pixels which satisfy growVal and within the grow radius shall be masked */ \ 149 145 if(mask->data.PS_TYPE_MASK_DATA[j][i] & growVal) { \ 150 rowMin = PS_MAX(j-grow, 0); \151 rowMax = PS_MIN(j+grow+1, inImage->numRows); \152 colMin = PS_MAX(i-grow, 0); \153 colMax = PS_MIN(i+grow+1, inImage->numCols); \146 rowMin = PS_MAX(j-grow, 0); \ 147 rowMax = PS_MIN(j+grow+1, inImage->numRows); \ 148 colMin = PS_MAX(i-grow, 0); \ 149 colMax = PS_MIN(i+grow+1, inImage->numCols); \ 154 150 for(jj=rowMin; jj<rowMax; jj++) { \ 155 151 for(ii=colMin; ii<colMax; ii++) { \ -
trunk/psModules/src/detrend/pmMaskBadPixels.h
r7060 r7283 1 //////////////////////////////////////////////////////////////////////////////////////////////////////////////2 // XXX WARNING: I have completely replaced this file with an OLD VERSION (that works) instead of the3 // one that was being worked on.4 //////////////////////////////////////////////////////////////////////////////////////////////////////////////5 6 1 /** @file pmMaskBadPixels.h 7 2 * … … 24 19 * @author Ross Harman, MHPCC 25 20 * 26 * @version $Revision: 1. 5$ $Name: not supported by cvs2svn $27 * @date $Date: 2006-0 5-04 03:57:32$21 * @version $Revision: 1.6 $ $Name: not supported by cvs2svn $ 22 * @date $Date: 2006-06-02 02:16:05 $ 28 23 * 29 24 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii 30 25 */ 26 #ifndef PM_MASK_BAD_PIXELS_H 27 #define PM_MASK_BAD_PIXELS_H 31 28 32 29 #include "pslib.h" 33 30 #include "pmFPA.h" 34 35 // these defines are necessary to yield 8-bit results (use instead of ~)36 # define NOT_U8(A)(UCHAR_MAX-(A))37 # define NOT_U16(A)(USHORT_MAX-(A))38 39 /** Mask values */40 typedef enum {41 PM_MASK_CLEAR = 0x00, ///< The pixel is not masked42 PM_MASK_TRAP = 0x01, ///< The pixel is a charge trap.43 PM_MASK_BADCOL = 0x02, ///< The pixel is a bad column.44 PM_MASK_SAT = 0x04, ///< The pixel is saturated.45 PM_MASK_BAD = 0x08, ///< The pixel is low46 PM_MASK_FLAT = 0x10, ///< The pixel is non-positive in the flat-field.47 PM_MASK_MARK = 0x20, ///< The pixel is marked as temporarily ignored48 PM_MASK_EXT1 = 0x40, ///< This mask value is not used49 PM_MASK_EXT2 = 0x80, ///< This mask value is not used50 } pmMaskValue;51 52 bool pmReadoutSetMask(pmReadout *readout // Readout for which to set mask53 );54 bool pmReadoutSetWeight(pmReadout *readout // Readout for which to set weight55 );56 bool pmCellSetMaskWeight(pmCell *cell // Cell for which to set weights57 );58 31 59 32 /** Execute bad pixels module. … … 74 47 ); 75 48 49 50 #endif
Note:
See TracChangeset
for help on using the changeset viewer.
