Esempio n. 1
0
def isolate_object_of_interest(points, image, cam_matrix, trans, rot):
    segmented_image, found_box = segment_image(image)
    if not found_box:
        return None, found_box
    points = segment_pointcloud(points, segmented_image, cam_matrix, trans,
                                rot)
    return points, found_box
Esempio n. 2
0
def isolate_objects_of_interest(points, image, cam_matrix, trans, rot):
    segmented_image = segment_image(image)
    cloudList = []
    for mask in segmented_image:
        cloud = segment_pointcloud(np.copy(points), mask, cam_matrix, trans,
                                   rot)
        cloudList.append(cloud)
    return cloudList
Esempio n. 3
0
def isolate_object_of_interest(points, image, cam_matrix, trans, rot):
    segmented_image = segment_image(image)
    points = segment_pointcloud(points, segmented_image, cam_matrix, trans, rot)
    return points
Esempio n. 4
0
File: main.py Progetto: Qube5/Molkky
def isolate_object_of_interest(points, image, cam_matrix, trans, rot):
    segmented_image, info = segment_image(image, num_pins + 1)
    segmented_image_binary = segmented_image_to_binary(segmented_image)
    points = segment_pointcloud(points, segmented_image_binary, cam_matrix, trans, rot)
    return points, segmented_image, info