SYMBOL INDEX (142 symbols across 19 files) FILE: chapter1/chapter1.py class FilterLayout (line 27) | class FilterLayout(BaseLayout): method _init_custom_layout (line 38) | def _init_custom_layout(self): method _create_custom_layout (line 45) | def _create_custom_layout(self): method _process_frame (line 67) | def _process_frame(self, frame_rgb): function main (line 85) | def main(): FILE: chapter1/filters.py class PencilSketch (line 20) | class PencilSketch: method __init__ (line 28) | def __init__(self, (width, height), bg_gray='pencilsketch_bg.jpg'): method render (line 43) | def render(self, img_rgb): class WarmingFilter (line 60) | class WarmingFilter: method __init__ (line 69) | def __init__(self): method render (line 77) | def render(self, img_rgb): method _create_LUT_8UC1 (line 95) | def _create_LUT_8UC1(self, x, y): class CoolingFilter (line 101) | class CoolingFilter: method __init__ (line 110) | def __init__(self): method render (line 118) | def render(self, img_rgb): method _create_LUT_8UC1 (line 135) | def _create_LUT_8UC1(self, x, y): class Cartoonizer (line 141) | class Cartoonizer: method __init__ (line 149) | def __init__(self): method render (line 152) | def render(self, img_rgb): FILE: chapter1/gui.py class Meta1 (line 17) | class Meta1(wx.Frame): class BaseLayout (line 22) | class BaseLayout(Meta1): method __init__ (line 45) | def __init__(self, capture, title=None, parent=None, id=-1, fps=10): method _init_base_layout (line 78) | def _init_base_layout(self): method _create_base_layout (line 95) | def _create_base_layout(self): method _on_next_frame (line 124) | def _on_next_frame(self, event): method _on_paint (line 140) | def _on_paint(self, event): method _acquire_frame (line 151) | def _acquire_frame(self): method _init_custom_layout (line 160) | def _init_custom_layout(self): method _create_custom_layout (line 169) | def _create_custom_layout(self): method _process_frame (line 181) | def _process_frame(self, frame_rgb): FILE: chapter2/chapter2.py class KinectLayout (line 24) | class KinectLayout(BaseLayout): method _init_custom_layout (line 32) | def _init_custom_layout(self): method _create_custom_layout (line 36) | def _create_custom_layout(self): method _acquire_frame (line 40) | def _acquire_frame(self): method _process_frame (line 49) | def _process_frame(self, frame): function main (line 72) | def main(): FILE: chapter2/gestures.py class HandGestureRecognition (line 13) | class HandGestureRecognition: method __init__ (line 26) | def __init__(self): method recognize (line 38) | def recognize(self, img_gray): method _segment_arm (line 64) | def _segment_arm(self, frame): method _find_hull_defects (line 104) | def _find_hull_defects(self, segment): method _detect_num_fingers (line 128) | def _detect_num_fingers(self, contours, defects, img_draw): function angle_rad (line 185) | def angle_rad(v1, v2): function deg2rad (line 195) | def deg2rad(angle_deg): FILE: chapter2/gui.py class Meta1 (line 17) | class Meta1(wx.Frame): class BaseLayout (line 22) | class BaseLayout(Meta1): method __init__ (line 45) | def __init__(self, capture, title=None, parent=None, id=-1, fps=10): method _init_base_layout (line 78) | def _init_base_layout(self): method _create_base_layout (line 95) | def _create_base_layout(self): method _on_next_frame (line 124) | def _on_next_frame(self, event): method _on_paint (line 140) | def _on_paint(self, event): method _acquire_frame (line 151) | def _acquire_frame(self): method _init_custom_layout (line 160) | def _init_custom_layout(self): method _create_custom_layout (line 169) | def _create_custom_layout(self): method _process_frame (line 181) | def _process_frame(self, frame_rgb): FILE: chapter3/chapter3.py class FeatureMatchingLayout (line 19) | class FeatureMatchingLayout(BaseLayout): method _init_custom_layout (line 27) | def _init_custom_layout(self): method _create_custom_layout (line 31) | def _create_custom_layout(self): method _process_frame (line 35) | def _process_frame(self, frame): function main (line 45) | def main(): FILE: chapter3/feature_matching.py class FeatureMatching (line 13) | class FeatureMatching: method __init__ (line 30) | def __init__(self, train_image="salinger.jpg"): method match (line 66) | def match(self, frame): method _extract_features (line 165) | def _extract_features(self, frame): method _match_features (line 173) | def _match_features(self, desc_frame): method _detect_corner_points (line 195) | def _detect_corner_points(self, key_frame, good_matches): method _warp_keypoints (line 224) | def _warp_keypoints(self, good_matches, key_frame, sh_frame): function draw_good_matches (line 261) | def draw_good_matches(img1, kp1, img2, kp2, matches): FILE: chapter3/gui.py class Meta1 (line 17) | class Meta1(wx.Frame): class BaseLayout (line 22) | class BaseLayout(Meta1): method __init__ (line 45) | def __init__(self, capture, title=None, parent=None, id=-1, fps=10): method _init_base_layout (line 78) | def _init_base_layout(self): method _create_base_layout (line 95) | def _create_base_layout(self): method _on_next_frame (line 124) | def _on_next_frame(self, event): method _on_paint (line 140) | def _on_paint(self, event): method _acquire_frame (line 151) | def _acquire_frame(self): method _init_custom_layout (line 160) | def _init_custom_layout(self): method _create_custom_layout (line 169) | def _create_custom_layout(self): method _process_frame (line 181) | def _process_frame(self, frame_rgb): FILE: chapter4/calibrate.py class CameraCalibration (line 13) | class CameraCalibration(BaseLayout): method _init_custom_layout (line 21) | def _init_custom_layout(self): method _create_custom_layout (line 37) | def _create_custom_layout(self): method _process_frame (line 49) | def _process_frame(self, frame): method _on_button_calibrate (line 122) | def _on_button_calibrate(self, event): method _reset_recording (line 128) | def _reset_recording(self): function main (line 135) | def main(): FILE: chapter4/chapter4.py function main (line 21) | def main(): FILE: chapter4/gui.py class Meta1 (line 17) | class Meta1(wx.Frame): class BaseLayout (line 22) | class BaseLayout(Meta1): method __init__ (line 45) | def __init__(self, capture, title=None, parent=None, id=-1, fps=10): method _init_base_layout (line 78) | def _init_base_layout(self): method _create_base_layout (line 95) | def _create_base_layout(self): method _on_next_frame (line 124) | def _on_next_frame(self, event): method _on_paint (line 140) | def _on_paint(self, event): method _acquire_frame (line 151) | def _acquire_frame(self): method _init_custom_layout (line 160) | def _init_custom_layout(self): method _create_custom_layout (line 169) | def _create_custom_layout(self): method _process_frame (line 181) | def _process_frame(self, frame_rgb): FILE: chapter4/scene3D.py class SceneReconstruction3D (line 14) | class SceneReconstruction3D: method __init__ (line 29) | def __init__(self, K, dist): method load_image_pair (line 41) | def load_image_pair(self, img_path1, img_path2, use_pyr_down=True): method plot_optic_flow (line 78) | def plot_optic_flow(self): method draw_epipolar_lines (line 104) | def draw_epipolar_lines(self, feat_mode="SURF"): method plot_rectified_images (line 137) | def plot_rectified_images(self, feat_mode="SURF"): method plot_point_cloud (line 181) | def plot_point_cloud(self, feat_mode="SURF"): method _extract_keypoints (line 218) | def _extract_keypoints(self, feat_mode): method _extract_keypoints_surf (line 240) | def _extract_keypoints_surf(self): method _extract_keypoints_flow (line 263) | def _extract_keypoints_flow(self): method _find_fundamental_matrix (line 286) | def _find_fundamental_matrix(self): method _find_essential_matrix (line 292) | def _find_essential_matrix(self): method _find_camera_matrices_rt (line 296) | def _find_camera_matrices_rt(self): method _draw_epipolar_lines_helper (line 342) | def _draw_epipolar_lines_helper(self, img1, img2, lines, pts1, pts2): method _in_front_of_both_cameras (line 359) | def _in_front_of_both_cameras(self, first_points, second_points, rot, method _linear_ls_triangulation (line 378) | def _linear_ls_triangulation(self, u1, P1, u2, P2): FILE: chapter5/chapter5.py function main (line 18) | def main(video_file='soccer.avi', roi=((140, 100), (500, 600))): FILE: chapter5/saliency.py class Saliency (line 17) | class Saliency: method __init__ (line 23) | def __init__(self, img, use_numpy_fft=True, gauss_kernel=(5, 5)): method get_saliency_map (line 45) | def get_saliency_map(self): method _get_channel_sal_magn (line 85) | def _get_channel_sal_magn(self, channel): method calc_magnitude_spectrum (line 130) | def calc_magnitude_spectrum(self): method plot_power_spectrum (line 158) | def plot_power_spectrum(self): method get_proto_objects_map (line 202) | def get_proto_objects_map(self, use_otsu=True): FILE: chapter5/tracking.py class MultipleObjectsTracker (line 11) | class MultipleObjectsTracker: method __init__ (line 19) | def __init__(self, min_area=400, min_shift2=5): method advance_frame (line 41) | def advance_frame(self, frame, proto_objects_map): method _append_boxes_from_saliency (line 91) | def _append_boxes_from_saliency(self, proto_objects_map, box_all): method _append_boxes_from_meanshift (line 117) | def _append_boxes_from_meanshift(self, frame, box_all): method _update_mean_shift_bookkeeping (line 149) | def _update_mean_shift_bookkeeping(self, frame, box_grouped): FILE: chapter6/chapter6.py function main (line 22) | def main(): FILE: chapter6/classifiers.py class Classifier (line 16) | class Classifier: method fit (line 41) | def fit(self, X_train, y_train): method evaluate (line 45) | def evaluate(self, X_test, y_test, visualize=False): method _accuracy (line 48) | def _accuracy(self, y_test, Y_vote): method _precision (line 66) | def _precision(self, y_test, Y_vote): method _recall (line 108) | def _recall(self, y_test, Y_vote): method _confusion (line 148) | def _confusion(self, y_test, Y_vote): class MultiClassSVM (line 172) | class MultiClassSVM(Classifier): method __init__ (line 194) | def __init__(self, num_classes, mode="one-vs-all", params=None): method fit (line 230) | def fit(self, X_train, y_train, params=None): method evaluate (line 270) | def evaluate(self, X_test, y_test, visualize=False): FILE: chapter6/datasets/gtsrb.py function load_data (line 22) | def load_data(rootpath="datasets/gtsrb_training", feature=None, cut_roi=... function _extract_feature (line 104) | def _extract_feature(X, feature):