I used this code to get a binary image of a riverbed:
from imageio import imread, imwrite import cv2 Imagem1 = imread(\'lsat01.tif\') height, width, channels