Slice1 will need to be casted or created as a uint8. CV_8U is just an alias for the datatype uint8.
import numpy as np
slice1Copy = np.uint8(slice1)
slicecanny = cv2.Canny(slice1Copy,1,100)
Slice1 will need to be casted or created as a uint8. CV_8U is just an alias for the datatype uint8.
import numpy as np
slice1Copy = np.uint8(slice1)
slicecanny = cv2.Canny(slice1Copy,1,100)