def edges_hsv_uint(image): with expected_warnings(['precision loss']): return img_as_uint(filters.sobel(image))