[Gotthard2][Dark] Calculate noise bpixs in multiple iterations
Description
@mramilli mentioned that reiterating on calculating NOISE_OUT_OF_THRESHOLD
badpixel type for gotthard2 showed a difference in the number of badpixels identified.
In the below figure are his test results. Each plot is the difference in bpix numbers for each gain for one of the production constants.
Below are my test results showing that sometimes you can get a different number of badpixels with more iterations than 2.
This MR exposes an iteration parameter to control it if needed (default 5).
Now GH2 darks will iterate to calculate the more accurate number of badpixels. each iteration costs =< 1ms, so no obvious performance drawback on dark processing.