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
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
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
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