def _mkanchors(ws, hs, x_ctr, y_ctr):
 ws = ws[:, np.newaxis]
 hs = hs[:, np.newaxis]
 anchors = np.hstack(((x_ctr - (0.5 * (ws - 1))), (y_ctr - (0.5 * (hs - 1))), (x_ctr + (0.5 * (ws - 1))), (y_ctr + (0.5 * (hs - 1)))))
 return anchors

def _mkanchors ( ws , hs , x_ctr , y_ctr ) : ws = ws [ : , np . newaxis ] hs = hs [ : , np . newaxis ] anchors = np . hstack ( ( ( x_ctr - ( 0.5 * ( ws - 1 ) ) ) , ( y_ctr - ( 0.5 * ( hs - 1 ) ) ) , ( x_ctr + ( 0.5 * ( ws - 1 ) ) ) , ( y_ctr + ( 0.5 * ( hs - 1 ) ) ) ) ) return anchors
given a vector of widths and heights around a center .