sample box from given parameters, and regard it as positive if it satisfies overlap constraints
Random sample a bounding box given some constraints and crop the image This is used in SSD training augmentation
horizontally flip the roi
image target with classes and bounding boxes
image target with classes and bounding boxes
N (class labels) or 2 * N, the first row is class labels, the second line is difficults
N * 4, (xmin, ymin, xmax, ymax)
the array of annotation masks of the targets
Normalize Roi to [0, 1]
Project gt boxes onto the coordinate system defined by image boundary
Project gt boxes onto the coordinate system defined by image boundary
whether need to meet center constraint, i.e., the center of gt box need be within image boundary
resize the roi according to scale
resize the roi according to scale
whether the roi is normalized, i.e. in range [0, 1]
horizontally flip the roi
whether the roi is normalized, i.e. in range [0, 1]