I want to make correlation plot(TH2) from two numpy array.
I tried as below but it is too slow and I don’t know how use multi-threading in python… any idea to make more faster?
Best regards,
Kyounghyoun
code:
for i in range(len(img1.flatten())):
for j in range(len(img2.flatten())):
hist.Fill(img1.flatten()[i],img2.flatten()[j])