if i use Otsu Thresholding on an image with negative pixel values i get an “out of bound” error.
is that because you are doing a log-scaling before?
some ideas how to fix this?
…the reason for the negative values is a background subtraction.
if one wants the mean or median of the background of an image to be zero, one needs pixels with negative numbers (setting them to zero would give one a wrong background intensity, namely >0…)