scenic.simulators.gta.center_detection

This file contains helper functions

Summary of Module Members

Functions

compute_bb

compute_gradient_manual

compute_gradient_sobel

compute_heading

compute_midpoints

find_center

Find which edge x lies in

generate_circle

generate_connected_edges

generate_neighbors

sample_from_road

transform_center

Classes

EdgeData

Member Details

find_center(x, theta, collected_edges, all_edges, num_samples, bw_image)[source]

Find which edge x lies in

class EdgeData(init_theta, tangent, opp_loc, mid_loc)[source]

Bases: tuple

Parameters
init_theta: float

Alias for field number 0

tangent: float

Alias for field number 1

opp_loc: Tuple[float, float]

Alias for field number 2

mid_loc: Tuple[float, float]

Alias for field number 3

_asdict()

Return a new dict which maps field names to their values.

classmethod _make(iterable)

Make a new EdgeData object from a sequence or iterable

_replace(**kwds)

Return a new EdgeData object replacing specified fields with new values