detect_changes_subtraction
- detect_changes_subtraction(img1, img2, output_range=None)[source]
Simple change detection by image subtracting. Areas with a lot of change will appear darker and areas with little change bright.
\(I_d = I_2 - I_1\)
- Parameters
- img1: np.ndarray
- img2: np.ndarray
- output_range: tuple, optional
Range of the output image. This range must be within the possible range of the dtype of the input images E.g. (0,1) for float images.
- Returns
- out: np.ndarray
Image as input dtype