Functions | |
def | csv_bag_names |
def | features_mat_compress |
Variables | |
tuple | bridge = CvBridge() |
tuple | colors = np.matrix(np.random.randint(0, 255, (3, features_db_reduced.shape[1]))) |
list | coordinated_colors = colors[:, matching_idx] |
tuple | features_db = np.column_stack([ut.load_pickle(p[0]) for p in csv_bag_names(features_file)]) |
tuple | features_db_reduced = features_mat_compress(features_db, 500) |
list | features_file = sys.argv[1] |
tuple | features_tree = sp.KDTree(np.array(features_db_reduced.T)) |
string | forearm_cam_l = '/l_forearm_cam/image_rect_color' |
int | i = 0 |
tuple | image = bridge.imgmsg_to_cv(msg, 'bgr8') |
tuple | image_gray = fea.grayscale(image) |
list | images_file = sys.argv[2] |
list | matching_idx = [features_tree.query(d)[1] for d in surf_descriptors] |
tuple | nimage = fea.draw_surf2(image, surf_keypoints, coordinated_colors) |
def hai_sandbox.test11_surf_sm.csv_bag_names | ( | fname | ) |
Definition at line 14 of file test11_surf_sm.py.
def hai_sandbox.test11_surf_sm.features_mat_compress | ( | fmat, | |
k | |||
) |
Definition at line 20 of file test11_surf_sm.py.
tuple hai_sandbox::test11_surf_sm::bridge = CvBridge() |
Definition at line 39 of file test11_surf_sm.py.
tuple hai_sandbox::test11_surf_sm::colors = np.matrix(np.random.randint(0, 255, (3, features_db_reduced.shape[1]))) |
Definition at line 37 of file test11_surf_sm.py.
Definition at line 57 of file test11_surf_sm.py.
tuple hai_sandbox::test11_surf_sm::features_db = np.column_stack([ut.load_pickle(p[0]) for p in csv_bag_names(features_file)]) |
Definition at line 33 of file test11_surf_sm.py.
Definition at line 34 of file test11_surf_sm.py.
list hai_sandbox::test11_surf_sm::features_file = sys.argv[1] |
Definition at line 31 of file test11_surf_sm.py.
tuple hai_sandbox::test11_surf_sm::features_tree = sp.KDTree(np.array(features_db_reduced.T)) |
Definition at line 38 of file test11_surf_sm.py.
string hai_sandbox::test11_surf_sm::forearm_cam_l = '/l_forearm_cam/image_rect_color' |
Definition at line 41 of file test11_surf_sm.py.
int hai_sandbox::test11_surf_sm::i = 0 |
Definition at line 46 of file test11_surf_sm.py.
tuple hai_sandbox::test11_surf_sm::image = bridge.imgmsg_to_cv(msg, 'bgr8') |
Definition at line 48 of file test11_surf_sm.py.
tuple hai_sandbox::test11_surf_sm::image_gray = fea.grayscale(image) |
Definition at line 50 of file test11_surf_sm.py.
list hai_sandbox::test11_surf_sm::images_file = sys.argv[2] |
Definition at line 32 of file test11_surf_sm.py.
list hai_sandbox::test11_surf_sm::matching_idx = [features_tree.query(d)[1] for d in surf_descriptors] |
Definition at line 56 of file test11_surf_sm.py.
tuple hai_sandbox::test11_surf_sm::nimage = fea.draw_surf2(image, surf_keypoints, coordinated_colors) |
Definition at line 60 of file test11_surf_sm.py.