def rescale(img):
"""sets input image to type 'uint16'
:param img: image
:type img: numpy.ndarray
:returns: numpy.ndarray -- with type 'uint16'
"""
return exposure.rescale_intensity(img, in_range='uint16')
评论列表
文章目录