reader/reader_utils.py
def resize_image(img, new_size, preserve_range=False):
    """
    Resize the input image, can preserve the original data range if given ground truth
    :param img: the image to be resized
    :param new_size: new image size
    :param preserve_range: keep the original data range or not
    :return:
    """
    if preserve_range:
        return skimage.transform.resize(img, new_size, order=0, preserve_range=True, mode='reflect')
    else:
        return skimage.transform.resize(img, new_size, mode='reflect')

    Resize the input image, can preserve the original data range if given ground truth
    :param img: the image to be resized
    :param new_size: new image size
    :param preserve_range: keep the original data range or not
    :return:
    
Resize the input image, can preserve the original data range if given ground truth
Resize the input image can preserve the original data range if given ground truth
def resize_image(img, new_size, preserve_range=False):
    if preserve_range:
        return skimage.transform.resize(img, new_size, order=0, preserve_range=True, mode='reflect')
    else:
        return skimage.transform.resize(img, new_size, mode='reflect')
def resize_image ( img , new_size , preserve_range = False ) : if preserve_range : return skimage . transform . resize ( img , new_size , order = 0 , preserve_range = True , mode = 'reflect' ) else : return skimage . transform . resize ( img , new_size , mode = 'reflect' )
Resize the input image, can preserve the original data range if given ground truth
Resize the input image can preserve the original data range if given ground truth
"""
    Resize the input image, can preserve the original data range if given ground truth
    :param img: the image to be resized
    :param new_size: new image size
    :param preserve_range: keep the original data range or not
    :return:
    """
None
img
the image to be resized
the image to be resized
new_size
new image size
new image size
preserve_range
keep the original data range or not
keep the original data range or not