Functions
layout Namespace Reference

Functions

def algo (p)
 
def assign_orebro_direction (comp, walls)
 
def classification_surface (vertices, cells, threshold)
 
def cluster_ang (h, min_offset, walls, num_min=3, min_lenght=3, diagonals=True)
 
def clustering_dbscan_cells (eps, min_samples, X)
 
def compute_clustering (matrix)
 
def create_matrices (cells, sigma=0.00000125, val=0)
 
def create_polygon (cells, cells_out, cells_partial)
 
def create_space (clusters_cells, cells, polygon_cells)
 
def create_walls (lines)
 
def DB_scan (eps, min_points, X, celle_poligoni)
 
def extend_line (spatial_clusters, walls, x_min, x_max, y_min, y_max)
 
def external_contour (img_rgb)
 
def flip_lines (lines, height)
 
def get_distance_matrix (walls, minLateralSeparation=7)
 
def get_out_polygons (cells_out)
 
def get_partial_cells (cells, cells_out, border_coordinates)
 
def get_representatives (walls, wall_cluster)
 
def get_wall_clusters (walls, angular_clusters)
 
def merge_cells (clusters, cells, polygon_cells)
 
def new_spatial_cluster (walls, representatives_segments, param_obj)
 
def set_cluster_spaziale_to_outliers (walls, outliers, representatives_segments, lateral_threshold)
 
def set_weight_offset (extended_segments, x_max, x_min, y_max, y_min)
 
def sort_and_deduplicate (l)
 
def start_canny_and_hough (image, param_obj)
 
def uniq (lst)
 

Detailed Description

funzioni utili alla costruzione del layout delle stanze partendo da un immagine nota della mappa, dalla quale non si conosce nulla.

Function Documentation

◆ algo()

def layout.algo (   p)
riordina i punti in senso orario

Definition at line 201 of file layout.py.

◆ assign_orebro_direction()

def layout.assign_orebro_direction (   comp,
  walls 
)

Definition at line 563 of file layout.py.

◆ classification_surface()

def layout.classification_surface (   vertices,
  cells,
  threshold 
)

Definition at line 151 of file layout.py.

◆ cluster_ang()

def layout.cluster_ang (   h,
  min_offset,
  walls,
  num_min = 3,
  min_lenght = 3,
  diagonals = True 
)

Definition at line 116 of file layout.py.

◆ clustering_dbscan_cells()

def layout.clustering_dbscan_cells (   eps,
  min_samples,
  X 
)

Definition at line 289 of file layout.py.

◆ compute_clustering()

def layout.compute_clustering (   matrix)

Definition at line 350 of file layout.py.

◆ create_matrices()

def layout.create_matrices (   cells,
  sigma = 0.00000125,
  val = 0 
)

Definition at line 273 of file layout.py.

◆ create_polygon()

def layout.create_polygon (   cells,
  cells_out,
  cells_partial 
)

Definition at line 222 of file layout.py.

◆ create_space()

def layout.create_space (   clusters_cells,
  cells,
  polygon_cells 
)

Definition at line 298 of file layout.py.

◆ create_walls()

def layout.create_walls (   lines)

Definition at line 55 of file layout.py.

◆ DB_scan()

def layout.DB_scan (   eps,
  min_points,
  X,
  celle_poligoni 
)

Definition at line 284 of file layout.py.

◆ extend_line()

def layout.extend_line (   spatial_clusters,
  walls,
  x_min,
  x_max,
  y_min,
  y_max 
)

Definition at line 142 of file layout.py.

◆ external_contour()

def layout.external_contour (   img_rgb)

Definition at line 67 of file layout.py.

◆ flip_lines()

def layout.flip_lines (   lines,
  height 
)

Definition at line 47 of file layout.py.

◆ get_distance_matrix()

def layout.get_distance_matrix (   walls,
  minLateralSeparation = 7 
)
calcola la matrice delle distanze tra tutti i segmenti

Definition at line 324 of file layout.py.

◆ get_out_polygons()

def layout.get_out_polygons (   cells_out)

Definition at line 535 of file layout.py.

◆ get_partial_cells()

def layout.get_partial_cells (   cells,
  cells_out,
  border_coordinates 
)

Definition at line 495 of file layout.py.

◆ get_representatives()

def layout.get_representatives (   walls,
  wall_cluster 
)

Definition at line 393 of file layout.py.

◆ get_wall_clusters()

def layout.get_wall_clusters (   walls,
  angular_clusters 
)

Definition at line 356 of file layout.py.

◆ merge_cells()

def layout.merge_cells (   clusters,
  cells,
  polygon_cells 
)

Definition at line 303 of file layout.py.

◆ new_spatial_cluster()

def layout.new_spatial_cluster (   walls,
  representatives_segments,
  param_obj 
)

Definition at line 430 of file layout.py.

◆ set_cluster_spaziale_to_outliers()

def layout.set_cluster_spaziale_to_outliers (   walls,
  outliers,
  representatives_segments,
  lateral_threshold 
)

Definition at line 470 of file layout.py.

◆ set_weight_offset()

def layout.set_weight_offset (   extended_segments,
  x_max,
  x_min,
  y_max,
  y_min 
)

Definition at line 554 of file layout.py.

◆ sort_and_deduplicate()

def layout.sort_and_deduplicate (   l)

Definition at line 208 of file layout.py.

◆ start_canny_and_hough()

def layout.start_canny_and_hough (   image,
  param_obj 
)

Definition at line 25 of file layout.py.

◆ uniq()

def layout.uniq (   lst)

Definition at line 213 of file layout.py.



rose2
Author(s): Gabriele Somaschini, Matteo Luperto
autogenerated on Wed Jun 28 2023 02:21:53