badpixels¶
Tools to fix bad sensor pixels.
-
class
runmacs.spec.calibration.badpixels.
BadPixelFixer
(size, badPixels, strategy='linear_spatial')[source]¶ A bad pixel fixer for a given resolution and list of bad pixels.
The replacement strategy gets precomputed into a lookup table during initialization, therefore optimal performance can be reached, if many frames get fixed with the same bad pixel fixer.
Parameters: - size –
(spatialSize, spectralSize)
in pixels - badPixel –
[(spatPos, specPos)]
positions of bad pixels starting from 0 - strategy – replacement strategy
Current replacement stategies are:
"linear_spatial"
: linear interpolation along spatial axis"linear_spectral"
: linear interpolation along spectral axis
- size –