Syntax
Document.RemoveBloom ( SaturationLevel )
Parameters
Float SaturationLevel - pixel level defining saturation, in ADUs
Returns
Nothing
Remarks
Removes CCD blooms from the image. The blooms are detected by searching for pixels in the image that exceed SaturationLevel, then mapping the shape of the contiguous set of pixels that exceed the local background level. If a rectangle drawn tightly around this set is markedly non-square, the star is a candidate for bloom removal. A typical value for SaturationLevel is about 75% of the maximum output of the camera.
Every affected pixel is replaced by (1) an estimate of the brightness of a pixel at the appropriate distance from the centre of a star (when close to the star), or (2) an estimate of the local background level (when the pixel is far enough from the star that it would not receive any significant energy from it). In both cases, Gaussian noise characteristic of the region around the bloom is added to the replacement pixels.
This method is equivalent to the RemoveBloom commands.