@@ -467,9 +467,9 @@ def fft_correlate_images(image_a, image_b,
467467 """
468468
469469 if normalized_correlation :
470- # remove the effect of stronger laser or
470+ # remove the effect of stronger laser or
471471 # longer exposure for frame B
472- # image_a = match_histograms(image_a, image_b)
472+ # image_a = match_histograms(image_a, image_b)
473473
474474 # remove mean background, normalize to 0..1 range
475475 image_a = normalize_intensity (image_a )
@@ -521,7 +521,8 @@ def normalize_intensity(window):
521521 window -= window .mean (axis = (- 2 , - 1 ),
522522 keepdims = True , dtype = np .float32 )
523523 tmp = window .std (axis = (- 2 , - 1 ), keepdims = True )
524- window = np .divide (window , tmp , out = np .zeros_like (window ), where = (tmp != 0 ))
524+ window = np .divide (window , tmp , out = np .zeros_like (window ),
525+ where = (tmp != 0 ))
525526 return np .clip (window , 0 , window .max ())
526527
527528
@@ -699,7 +700,7 @@ def extended_search_area_piv(
699700 the size of the interrogation window in the second frame,
700701 default is the same interrogation window size and it is a
701702 fallback to the simplest FFT based PIV
702-
703+
703704 normalized_correlation: bool
704705 if True, then the image intensity will be modified by removing
705706 the mean, dividing by the standard deviation and
@@ -828,10 +829,10 @@ def correlation_to_displacement(corr, n_rows, n_cols,
828829 subpixel_method = subpixel_method )) - \
829830 default_peak_position
830831
831- # the horizontal shift from left to right is the u
832- # the vertical displacement from top to bottom (increasing row) is v
833- # x the vertical shift from top to bottom is row-wise shift is now
834- # a negative vertical
832+ # the horizontal shift from left to right is the u
833+ # the vertical displacement from top to bottom (increasing row) is v
834+ # x the vertical shift from top to bottom is row-wise shift is now
835+ # a negative vertical
835836 u [k , m ], v [k , m ] = peak [1 ], peak [0 ]
836837
837838 return (u , v )
0 commit comments