- Timestamp:
- Feb 4, 2023, 12:15:28 PM (3 years ago)
- Location:
- branches/eam_branches/ipp-20220316/ppImage
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
src/ppImageDetrendReadout.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20220316/ppImage
-
Property svn:mergeinfo
set to (toggle deleted branches)
/branches/IPP-308_move_backups_folder/ppImage merged eligible /branches/czw_branch/20160809/ppImage merged eligible /branches/czw_branch/20170908/ppImage merged eligible /branches/eam_branches/ipp-20191011/ppImage merged eligible /branches/eam_branches/ipp-20211108/ppImage merged eligible /branches/eam_branches/ipp-dev-20210817/ppImage merged eligible /branches/eam_branches/ppImage.20230123 merged eligible /tags/ipp-ops-20220303-rc/ppImage merged eligible /tags/ipp-ops-20220705/ppImage merged eligible /tags/ipp-ps1-20210510/ppImage merged eligible /tags/ipp-ps1-20210708/ppImage merged eligible /trunk/ppImage merged eligible /branches/ipp-259_genericise_backups/ppImage 40910-40966
-
Property svn:mergeinfo
set to (toggle deleted branches)
-
branches/eam_branches/ipp-20220316/ppImage/src/ppImageDetrendReadout.c
r42167 r42372 149 149 // psLogMsg ("ppImage", 6, "nonlinear correction: %f sec\n", psTimerMark ("detrend.readout")); 150 150 } 151 // New Non-linearity correction (exclusive of the above) 152 if (options->doNewNonLin) { 153 if (!ppImageDetrendNewNonLinear(input, detview, config)) { 154 psError(PS_ERR_UNKNOWN, false, "Unable to correct Non-Linearity with new version (2023)"); 155 psFree(detview); 156 return(false); 157 } 158 // psLogMsg ("ppImage", 6, "nonlinear correction: %f sec\n", psTimerMark ("detrend.readout")); 159 } 151 160 152 161 // set up the dark and bias … … 213 222 psImageUnbin (noiseImage, noiseMap->image, binning); 214 223 psFree (binning); 215 // Stolen from pmSkySubtract.c216 // CZW: Unneeded, as psImageUnbin does the bilinear interpolation? It still looks blocky.217 /* psMetadata *recipe = psMetadataLookupMetadata(NULL, config->recipes, RECIPE_NAME); // Recipe */218 /* psAssert(recipe, "Should be there!"); */219 220 /* psS32 xBinFactor = psMetadataLookupS32(NULL,recipe,"NOISE.XBIN"); */221 /* psS32 yBinFactor = psMetadataLookupS32(NULL,recipe,"NOISE.YBIN"); */222 /* psImageInterpolateOptions *interp = psImageInterpolateOptionsAlloc(PS_INTERPOLATE_BILINEAR, */223 /* noiseMap->image, */224 /* NULL, NULL, */225 /* 0, 0.0, 0.0, 0, 0, 0.0); */226 /* for (psS32 row = 0; row < input->image->numRows; row++) { */227 /* for (psS32 col = 0; col < input->image->numCols; col++) { */228 /* // We calculate the F32 value of the pixel coordinates in the */229 /* // binned image and then use a pixel interpolation routine to */230 /* // determine the value of the pixel at that location. */231 /* psF32 binRowF64 = ((psF32) row) / ((psF32) yBinFactor); */232 /* psF32 binColF64 = ((psF32) col) / ((psF32) xBinFactor); */233 /* // We add 0.5 to the pixel locations since the pixel */234 /* // interpolation routine defines the location of pixel */235 /* // (i, j) as (i+0.5, j+0.5). */236 /* binRowF64+= 0.5; */237 /* binColF64+= 0.5; */238 239 /* double binPixel; */240 /* if (!psImagePixelInterpolate(&binPixel, NULL, NULL, binColF64, binRowF64, interp)) { */241 /* psError(PS_ERR_UNKNOWN, false, "Unable to interpolate image."); */242 /* psFree(interp); */243 /* psFree(noiseImage); */244 /* return NULL; */245 /* } */246 /* noiseImage->data.F32[row][col] = binPixel; */247 /* } */248 /* } */249 /* psFree(interp); */250 224 } 251 225
Note:
See TracChangeset
for help on using the changeset viewer.
