Bering.models._binning_coordinates
- Bering.models._binning_coordinates(src_coords_x, dst_coords_x, image_binsize=5, min_image_size=5, max_image_size=40)[source]
Binning the distance between source and destination nodes in 1d (either x or y) Input: source and destination node coordinates in height (or width) with shape (n,) Output: minimal and maximal coordinates in height (or width) for source and destination. New coordinates after binning
- Parameters:
src_coords_x (
Tensor) – 1d coordinates of source nodesdst_coords_x (
Tensor) – 1d coordinates of destination nodesimage_binsize (
int) – bin size of the image in height and widthmin_image_size (
int) – minimal image size in height and widthmax_image_size (
int) – maximal image size in height and width