parameters: (self, boxes_delta, anchors)
return_statement: return np.hstack((anchors[:, [0]], global_coords[:, [0]], anchors[:, [2]],
                            global_coords[:, [0]]+global_coords[:, [1]])).astype(np.float32)
docstring: :return [l t r b]
docstring_summary: :return [l t r b]
docstring_tokens: : return [ l t r b ]
function: def apply_deltas_to_anchors(self, boxes_delta, anchors):
          """
              :return [l t r b]
          """
          anchor_y_ctr=(anchors[:, 1]+anchors[:, 3])/2.
          anchor_h=anchors[:, 3]-anchors[:, 1]+1.
          global_coords=np.zeros_like(boxes_delta, np.float32)
          global_coords[:, 1]=np.exp(boxes_delta[:, 1])*anchor_h
          global_coords[:, 0]=boxes_delta[:, 0]*anchor_h+anchor_y_ctr-global_coords[:, 1]/2.
          return np.hstack((anchors[:, [0]], global_coords[:, [0]], anchors[:, [2]],
                            global_coords[:, [0]]+global_coords[:, [1]])).astype(np.float32)
function_tokens: def apply_deltas_to_anchors ( self , boxes_delta , anchors ) : anchor_y_ctr = ( anchors [ : , 1 ] + anchors [ : , 3 ] ) / 2. anchor_h = anchors [ : , 3 ] - anchors [ : , 1 ] + 1. global_coords = np . zeros_like ( boxes_delta , np . float32 ) global_coords [ : , 1 ] = np . exp ( boxes_delta [ : , 1 ] ) * anchor_h global_coords [ : , 0 ] = boxes_delta [ : , 0 ] * anchor_h + anchor_y_ctr - global_coords [ : , 1 ] / 2. return np . hstack ( ( anchors [ : , [ 0 ] ] , global_coords [ : , [ 0 ] ] , anchors [ : , [ 2 ] ] , global_coords [ : , [ 0 ] ] + global_coords [ : , [ 1 ] ] ) ) . astype ( np . float32 )