Module geogrid::util [] [src]

Functions

lat_lon

Compute the length in meters of one degree latitude and longitude at given latitude degree.

mat_to_img

Write given 2D numerical matrix to a scaled grayscale image at requested path. Clip specifies lower, upper bounds of values that will be clipped to black/white.

match_shape

Match provided mask matrix on provided distance transform matrix. dt and mask matrices are read from in parallel. Return score of match at each square.

match_shape_ocl

Sequentially match provided mask matrix on provided distance transform matrix. Copies dt and mask matrices to specified GPU device. Return score of match at each square.

match_shape_slow

Sequentially match provided mask matrix on provided distance transform matrix. Return score of match at each square.

node_bounds

Find the bounds over an iterator of nodes.

roads_from_json

Return vector of vector of nodes where each vector represents the nodes defined on that road. If bounds given, only return coordinates within bounds.