MCPcopy Create free account

hub / github.com/a-nau/Plane-Segmentation-Refinement / functions

Functions97 in github.com/a-nau/Plane-Segmentation-Refinement

↓ 16 callersFunctionget_grayscaled_image
(img)
utils/image_modification.py:21
↓ 14 callersFunctionget_colored_image
(img)
utils/image_modification.py:32
↓ 11 callersMethodget_config
Access config as singleton, i.e. keep only one global config :return: global config instance
config.py:39
↓ 7 callersFunctiondraw_masks_on_image
(image, masks, color=None)
refiner/image_processing/draw.py:92
↓ 6 callersFunctioncompute_line_intersection
(line1, line2)
refiner/hough_transform/hough_transformation.py:18
↓ 5 callersFunctiondet
(a, b)
refiner/hough_transform/hough_transformation.py:23
↓ 5 callersFunctiondraw_corners_on_image
(corners, img, color=None, radius=2)
refiner/image_processing/draw.py:51
↓ 4 callersFunctiondbscan_with_masked_image
(image, eps=0.5, min_samples=3)
refiner/clustering/dbscan.py:8
↓ 4 callersFunctionscale_image
(img, scale=0.5)
utils/image_modification.py:4
↓ 3 callersFunctioncompute_iou_of_masks
(mask0, mask1)
refiner/image_processing/evaluation_metrics.py:8
↓ 3 callersFunctiondbscan_with_points
(X, eps=0.5, min_samples=3)
refiner/clustering/dbscan.py:23
↓ 3 callersFunctiondraw_convex_hull_around_points_no_mask
(points, mask_shape, color=255)
refiner/image_processing/draw.py:23
↓ 3 callersMethodload_image
(path)
refiner/models/image_data.py:116
↓ 3 callersFunctionrun_accuracy_analysis
(data: ImageData, masks, string_identification)
refiner/refinement_handler.py:117
↓ 2 callersFunctioncheck_if_intersection_close_to_line_points
(intersection, line0, line1, threshold=50)
refiner/hough_transform/hough_transformation.py:250
↓ 2 callersFunctioncompute_iou_mask_and_line
(line, mask, width)
refiner/hough_transform/hough_transformation.py:217
↓ 2 callersFunctiondraw_ground_truth_and_estimation_on_image
(gt_mask, img_mask, mask, color)
refiner/image_processing/visualize_results.py:48
↓ 2 callersFunctiondraw_lines_on_image
(image, lines, color=None, thickness=2)
refiner/image_processing/draw.py:60
↓ 2 callersFunctiondraw_lines_rho_theta_on_image
(img, lines, color=None, thickness=2)
refiner/image_processing/draw.py:72
↓ 2 callersFunctionfilter_edges
(masked_image, edges)
refiner/clustering/edge_detection.py:44
↓ 2 callersFunctionfind_line_with_maximum_reward
(line_candidates, gray_scaled_img)
refiner/combined/combined_appraoch.py:72
↓ 2 callersFunctionget_lines_from_edges
(edge_img, minLength=100, rho=1, theta=np.pi / 180, maxLineGap=20, prob=False)
refiner/hough_transform/hough_transformation.py:82
↓ 2 callersFunctionget_n_unique_rows
(edge)
utils/other.py:7
↓ 2 callersFunctionline_on_mask
(line, mask, width=2, iou_threshold=0.6)
refiner/hough_transform/hough_transformation.py:212
↓ 2 callersFunctionmain
(path_data, path_config)
run_refinement.py:27
↓ 2 callersFunctionpoint_close_to_mask
(point, mask, size=20)
refiner/hough_transform/hough_transformation.py:203
↓ 2 callersFunctionransac_linear_regression
(X, y, draw=False)
refiner/util/ransac_linear_regression.py:9
↓ 2 callersFunctionsample_point_from_intersection_of_mask_and_point
(point, mask, size=20, n_samples=10)
refiner/combined/combined_appraoch.py:89
↓ 1 callersMethod__check_all_config_values_set
Check if all values of config class have been set and warn about unset values :param cfg: global config instance
config.py:87
↓ 1 callersMethod__set_special_config_values
Handle special conversions from yaml input to a needed formats (i.e. splitting of lists) :param cfg: global config instance :
config.py:73
↓ 1 callersFunctionadjust_mask_with_points
(image, points, mask)
refiner/refinement_handler.py:143
↓ 1 callersFunctionapply_fall_back_logic
(refined_masks, fallback_masks, threshold=0.75)
refiner/util/fall_back_segmentation.py:10
↓ 1 callersFunctionarg_parse
()
run_refinement.py:20
↓ 1 callersFunctioncanny_edge_detection
(img, threshold1=100, threshold2=200, adaptive=True)
refiner/image_processing/edge_detection.py:7
↓ 1 callersFunctioncheck_if_file_is_image
(filename)
utils/image_other.py:5
↓ 1 callersFunctionclean_directory
(dir)
utils/directories.py:6
↓ 1 callersFunctioncluster_lines_and_average
(lines)
refiner/hough_transform/hough_transformation.py:135
↓ 1 callersFunctioncluster_lines_together_and_choose_best
(lines, gray_scaled_img)
refiner/combined/combined_appraoch.py:17
↓ 1 callersFunctioncompare_iou_of_points_with_mask
(points, mask, color, draw=False)
refiner/image_processing/evaluation_metrics.py:51
↓ 1 callersFunctioncompute_convex_hull_for_mask
(mask)
refiner/util/fall_back_segmentation.py:26
↓ 1 callersMethodcompute_fallback_mask
(self, mask)
refiner/models/image_data.py:73
↓ 1 callersFunctioncompute_iou_of_mask_with_gt
(refined_masks, gt_masks, draw=False)
refiner/image_processing/evaluation_metrics.py:20
↓ 1 callersFunctioncompute_lines_from_edge_candidate_clusters
(img_edges, edge_candidates, mask_plane, mask_extract_contour,
refiner/clustering/line_detection.py:18
↓ 1 callersFunctioncompute_reduced_convex_hull_for_mask
(mask, number_points)
refiner/util/fall_back_segmentation.py:35
↓ 1 callersFunctioncompute_refined_mask_and_lines
(img_org, img_edges, mask, dir_results, i)
refiner/refinement_handler.py:71
↓ 1 callersFunctioncompute_refined_masks
(data: ImageData)
refiner/refinement_handler.py:41
↓ 1 callersFunctioncompute_widened_contour_line_around_mask
(mask, ksize=37)
refiner/clustering/edge_detection.py:35
↓ 1 callersFunctionconvert_normal_to_point_form_of_line
(rho, theta)
refiner/hough_transform/hough_transformation.py:229
↓ 1 callersFunctionconvert_point_to_normal_form_of_line
(point0, point1)
refiner/hough_transform/hough_transformation.py:236
↓ 1 callersFunctiondetect_lines
(binary_image: np.ndarray, min_line_number=0, min_edge_length=100,
refiner/hough_transform/hough_transformation.py:96
↓ 1 callersFunctiondraw_all_lines_on_image
(image, lines_dict)
refiner/image_processing/draw.py:108
↓ 1 callersFunctiondraw_contour_around_points_no_mask
(points, mask_shape, color=255)
refiner/image_processing/draw.py:39
↓ 1 callersFunctiondraw_convex_hull_around_points
(points, mask, color=255)
refiner/image_processing/draw.py:15
↓ 1 callersFunctionenlarge_contours
(image, ksize)
refiner/image_processing/draw.py:116
↓ 1 callersFunctionfind_best_line
(lines, gray_scaled_img)
refiner/combined/combined_appraoch.py:46
↓ 1 callersFunctionfind_clustered_lines
(lines_rho_theta, lines)
refiner/combined/combined_appraoch.py:26
↓ 1 callersFunctionfind_final_line
(line_masked_image, draw=False)
refiner/clustering/line_detection.py:69
↓ 1 callersFunctionfind_line_end_points
(binary_image, lines, close_to_current=False)
refiner/hough_transform/hough_transformation.py:150
↓ 1 callersFunctionfind_line_end_points_detailed
(binary_image, lines)
refiner/hough_transform/hough_transformation.py:174
↓ 1 callersFunctionfind_line_masked_image
(equation, image, n_mask, n_edge, output_directory)
refiner/clustering/line_detection.py:53
↓ 1 callersFunctionfind_masks_best_matching_each_gt_mask
(masks, n_gt_masks)
refiner/refinement_handler.py:131
↓ 1 callersFunctionfind_start_and_point_on_mask
(X, line_masked_image, prediction)
refiner/clustering/line_detection.py:88
↓ 1 callersFunctionget_depth_of_nested_list
(l)
utils/other.py:19
↓ 1 callersFunctionget_edge_candidate_clusters_from_mask
(image, mask, n_mask, ksize, output_directory)
refiner/clustering/edge_detection.py:15
↓ 1 callersMethodget_edge_img
(self)
refiner/models/image_data.py:79
↓ 1 callersFunctionget_harris_corners
(img)
refiner/image_processing/corner_detection.py:29
↓ 1 callersFunctionget_lines_from_clustering
(img_edges, mask_extract_contour, mask_plane, mask_number, output_directory, ksize=51)
refiner/clustering/handler.py:17
↓ 1 callersFunctionget_lines_from_hough_transformation
(image, mask, cluster_lines, output_directory=None)
refiner/hough_transform/handler.py:6
↓ 1 callersFunctionget_points_of_mask_from_line_and_scale
(line, normal, scale)
refiner/clustering/line_detection.py:153
↓ 1 callersFunctionget_unique_rows
(edge)
utils/other.py:14
↓ 1 callersMethodload_config
Load config from yaml and save it in the config instance for global access :param path: path to yaml config file :return: glo
config.py:49
↓ 1 callersMethodload_data
(self)
refiner/models/image_data.py:40
↓ 1 callersMethodload_ground_truth_masks
(self)
refiner/models/image_data.py:62
↓ 1 callersMethodload_ground_truth_masks_from_directory
(directory, identification_string, mask_shape)
refiner/models/image_data.py:96
↓ 1 callersMethodload_plane_data
(self)
refiner/models/image_data.py:48
↓ 1 callersFunctionsave_image_with_refined_mask
(img_edges, mask, points, i, dir_results)
refiner/refinement_handler.py:110
↓ 1 callersFunctionsplit_edge_candidate_clusters
(img, mask, keep_edges)
refiner/clustering/handler.py:45
↓ 1 callersFunctionstart_refinement_procedure
(data: ImageData)
refiner/refinement_handler.py:27
↓ 1 callersFunctionvisualize_results
(img, gt_masks, masks, ious, output_directory, string_identification="", draw=False)
refiner/image_processing/visualize_results.py:14
↓ 1 callersFunctionvisualize_summary
(img, gt_masks, masks, ious, string_identification="", draw=False)
refiner/image_processing/visualize_results.py:35
Method__init__
Define all config variables. Will be accessible with normal autocomplete suggestions
config.py:7
Method__init__
(self, image_number, dir_data)
refiner/models/image_data.py:20
Functioncanny_edge_detection_with_automatic_threshold
(image, sigma=0.33)
refiner/image_processing/edge_detection.py:16
Functioncheck_convexity_and_mask_not_empty
(mask)
refiner/image_processing/evaluation_metrics.py:39
Functioncompute_normalized_line_directions
(line)
refiner/clustering/line_detection.py:144
Functionfast_corner_detection
(img)
refiner/image_processing/corner_detection.py:10
Functionfind_all_image_files_in_directory
(directory)
utils/image_other.py:9
Functionfind_matching_nested_list
(l, val)
refiner/util/fall_back_segmentation.py:19
Functionfind_normal_pointing_in_mask_direction
(line, normal, mask, draw=False)
refiner/clustering/line_detection.py:123
Functionget_contours
(img)
refiner/image_processing/edge_detection.py:30
Functionget_immediate_subdirectories
(dir)
utils/directories.py:18
Functionget_line_image_coordinates
(image, line)
refiner/hough_transform/hough_transformation.py:36
Functionget_width_cropped_image
(image, roi)
utils/image_modification.py:10
Functionharris_corner_detection
(img)
refiner/image_processing/corner_detection.py:21
Functionload_scale_and_resave_picture
(src_path, dst_path, scale)
utils/image_modification.py:15
Functionselect_subset_from_list
(list_data, subset_size)
utils/image_other.py:16
Methodtest_segmentation_refinement
(self)
tests/test_segmentation_refinement.py:10