Closed slosar closed 3 years ago
are you trying to make a zero noise image?
Yeah just make the noise tiny.
I'll add the check to the code
Hmm, I'm not sure how this would work. All the weights would be infinity
I think I agree with matt, just send a very small noise
I think if someone sets noise=0, then they are intentionally making a noiseless image and so you set weights to unity. All I want is something like
weights = np.ones((N,M)) / (noise**2 if noise>0 else 1.0)
Doesn't sounds even worth this discussion... :)
For your use case I see that it might not be worth discussion; but for metadetect this would result in failure, so we want to do something sensible.
I think we may just internally convert noise <= 0
to something tiny like 1.0e-10
One gets this: