tspart._helpers
Module Contents
Functions
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- tspart._helpers.get_bounding_corners(points: Sequence[Sequence[float]]) Tuple[float]
- tspart._helpers.image_to_array(image: PIL.Image, mode: str = 'RGB') numpy.ndarray[numpy.ndarray[float | numpy.ndarray[float]]]
- tspart._helpers.array_to_image(array: numpy.ndarray[numpy.ndarray[float | numpy.ndarray[float]]], mode: str = 'RGB') PIL.Image
- tspart._helpers.map_points_to_tour(points: Sequence[Sequence[float]], tour: Sequence[int]) numpy.ndarray[numpy.ndarray[float]]
- tspart._helpers.map_points_to_tour_multi(points_list: Sequence[Sequence[Sequence[float]]], tours_list: Sequence[Sequence[int]]) list[numpy.ndarray[numpy.ndarray[float]]]
- tspart._helpers.ndarray_to_array_2d(array, round_places=None)
- tspart._helpers.array_to_ndarray_2d(array, round_places=None)
- tspart._helpers.nearest_point_index(points, location)
- tspart._helpers.image_array_size(img)
- tspart._helpers.line_angle(start, end)
- tspart._helpers.circle_point(radius, angle, offset=(0, 0))
- tspart._helpers.get_point_value(grayscale_array, point)
- tspart._helpers.size_factor(grayscale_array, point)
- tspart._helpers.factors_from_image(grayscale_array, points, blur_sigma=1)
- tspart._helpers.factors_from_image_multi(grayscale_arrays, points_list, blur_sigma=1)
- tspart._helpers.filter_white_points(grayscale_array, points, threshold=254, blur_sigma=1)
- tspart._helpers.filter_white_points_multi(grayscale_arrays, points_list, threshold=1, blur_sigma=1)
- tspart._helpers.batched(iterable, n)