Functions | |
def | get_image |
def | get_segmentation_image |
def | resize |
def | tensor_vstack |
def | transform |
def | transform_inverse |
def | transform_seg_gt |
def utils.image.get_image | ( | roidb, | |
config | |||
) |
def utils.image.get_segmentation_image | ( | segdb, | |
config | |||
) |
def utils.image.resize | ( | im, | |
target_size, | |||
max_size, | |||
stride = 0 , |
|||
interpolation = cv2.INTER_LINEAR |
|||
) |
only resize input image to target size and return scale :param im: BGR image input by opencv :param target_size: one dimensional size (the short side) :param max_size: one dimensional max size (the long side) :param stride: if given, pad the image to designated stride :param interpolation: if given, using given interpolation method to resize image :return:
def utils.image.tensor_vstack | ( | tensor_list, | |
pad = 0 |
|||
) |
def utils.image.transform | ( | im, | |
pixel_means | |||
) |
def utils.image.transform_inverse | ( | im_tensor, | |
pixel_means | |||
) |
def utils.image.transform_seg_gt | ( | gt | ) |