Changeset 16841 for trunk/psModules/src/detrend/pmBias.c
- Timestamp:
- Mar 6, 2008, 10:47:50 AM (18 years ago)
- File:
-
- 1 edited
-
trunk/psModules/src/detrend/pmBias.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psModules/src/detrend/pmBias.c
r15162 r16841 113 113 } 114 114 if (dark) { 115 psWarning("Dark processing is now available using pmDark --- perhaps you should use that instead?"); 115 116 PS_ASSERT_PTR_NON_NULL(view, false); 116 117 PS_ASSERT_IMAGE_NON_NULL(dark->image, false); … … 121 122 122 123 if (!pmOverscanSubtract (in, overscanOpts)) { 123 return false;124 return false; 124 125 } 125 126 … … 148 149 } 149 150 150 float darkNorm = 1.0;151 float darkNorm = 1.0; 151 152 float inNorm = pmFPADarkNorm(in->parent->parent->parent, view, inTime); 152 153 153 // if we have a normalized dark exposure, we simply multiply the master by inNorm. if154 // we do not have a normalized exposure, we have to scale the master as well. XXX do155 // we need to explicitly identify the master as normalized?154 // if we have a normalized dark exposure, we simply multiply the master by inNorm. if 155 // we do not have a normalized exposure, we have to scale the master as well. XXX do 156 // we need to explicitly identify the master as normalized? 156 157 157 if (darkTime != 1.0) {158 darkNorm = pmFPADarkNorm(dark->parent->parent->parent, view, darkTime);159 }158 if (darkTime != 1.0) { 159 darkNorm = pmFPADarkNorm(dark->parent->parent->parent, view, darkTime); 160 } 160 161 161 if (isnan(inNorm) || isnan(darkNorm)) {162 if (isnan(inNorm) || isnan(darkNorm)) { 162 163 psError(PS_ERR_UNKNOWN, false, "Unable to determine dark normalisations."); 163 164 return false;
Note:
See TracChangeset
for help on using the changeset viewer.
