Using cv2.imread: "<built-in function imread> returned NULL without setting an error", as if it can't open the picture or get the data
You are passing a PIL image to imread but it expects a filepath (https://docs.opencv.org/2.4/modules/highgui/doc/reading_and_writing_images_and_video.html?highlight=imread#Mat%20imread(const%20string&%20filename,%20int%20flags)
You should use:
imgg = cv2.imread('path.tif', 1)