I am trying to implement an algorithm described in this paper:
Decomposition of biospeckle images in temporary spectral bands
H
The paper doesn't mention subtracting the mean of the time series, are you sure that's necessary? Also, you only compute the new_max and new_min once, from the last image.