Depth error in 2D image with OpenCV Python

I am trying to compute the Canny Edges in an image (ndarray) using OpenCV with Python. slice1 = slices[15,:,:] slice1 = slice1[40:80,60:100] print slice1.shape print slice1.dtype slicecanny = cv2....