Wanna know if two numpy arrays are close to each other...
like if we had 2 (2-d) numpy arrays of 2 images I wanna know if they close to each other (are they similar or not) not equal also,
there is anyway to know if the probability of similarity are close to 1?
like any classifier would do but I just wanted it without machine learning.
let's assume we have 2 pixel:
a = [255, 250, 3]
b = [255, 255, 3]
err = [(bb-aa)/max(aa,bb) for aa, bb in a, b]
then the probability
p = 1 - np.mean(np.array(err))