Functions
rpn::generate_anchor Namespace Reference

Functions

def _mkanchors
def _ratio_enum
def _scale_enum
def _whctrs
def generate_anchors

Detailed Description

Generate base anchors on index 0

Function Documentation

def rpn.generate_anchor._mkanchors (   ws,
  hs,
  x_ctr,
  y_ctr 
) [private]
Given a vector of widths (ws) and heights (hs) around a center
(x_ctr, y_ctr), output a set of anchors (windows).

Definition at line 34 of file generate_anchor.py.

def rpn.generate_anchor._ratio_enum (   anchor,
  ratios 
) [private]
Enumerate a set of anchors for each aspect ratio wrt an anchor.

Definition at line 49 of file generate_anchor.py.

def rpn.generate_anchor._scale_enum (   anchor,
  scales 
) [private]
Enumerate a set of anchors for each scale wrt an anchor.

Definition at line 63 of file generate_anchor.py.

def rpn.generate_anchor._whctrs (   anchor) [private]
Return width, height, x center, and y center for an anchor (window).

Definition at line 22 of file generate_anchor.py.

def rpn.generate_anchor.generate_anchors (   base_size = 16,
  ratios = [0.5,
  scales = 2 ** np.arange(3, 6 
)
Generate anchor (reference) windows by enumerating aspect ratios X
scales wrt a reference (0, 0, 15, 15) window.

Definition at line 8 of file generate_anchor.py.



rail_object_detector
Author(s):
autogenerated on Sat Jun 8 2019 20:26:31