1 parent 8a7d623 commit f481003Copy full SHA for f481003
1 file changed
openpiv/pyprocess.py
@@ -768,8 +768,8 @@ def normalize_intensity(window):
768
the interrogation window array, with zero mean and variance 1
769
"""
770
# Convert to float32 only if needed, otherwise work in-place
771
- if window.dtype != np.float32:
772
- window = window.astype(np.float32)
+ if window.dtype != np.float64:
+ window = window.astype(np.float64)
773
else:
774
window = window.copy() # Still need a copy to avoid modifying input
775
0 commit comments