Hi Surya,
Yes, test images would be helpful. My intuition without having test data is
that you have some underflow errors in the numpy call, which cv2 avoids with
some preprocessing:
In [1]: im0 = np.array([64], dtype=np.uint8)
In [2]: im1 = np.array([65], dtype=np.uint8)
In [3]: np.abs(im0 -
I’m sorry,
Its
>> np.abs(im1 - im2)
Surya
> On Apr 20, 2017, at 7:10 PM, Surya Kasturi wrote:
>
> Hey,
>
> I’m doing absolute difference between two images and found that the results
> from opencv and scikit-image are different
>
> >> im1 = imread(“file1.jpg”)
> >> im2 = imread(“fil