The dtype of the result is same as that of the input image. Should I change this test to `assert_array_equal(result, dtype_range[dtype][1] - dtype_range[dtype][0])`