Module Import alias identifier ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias alias FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad NameLoad attr TupleLoad Num Num Assign SubscriptStore AttributeLoad NameLoad attr Index Str Call NameLoad Call AttributeLoad NameLoad attr ListLoad ListLoad Num Num ListLoad Num Num ListLoad Num Num ListLoad Num Num Expr Call AttributeLoad NameLoad attr keyword Str Assign NameStore Call AttributeLoad NameLoad attr TupleLoad Num Num keyword NameLoad Assign SubscriptStore AttributeLoad NameLoad attr ExtSlice Index Num Slice Num Slice Num NameLoad Assert CompareEq Call AttributeLoad AttributeLoad NameLoad attr attr Num Expr Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad NameLoad attr TupleLoad Num Num Assign SubscriptStore AttributeLoad NameLoad attr Index Str Call NameLoad Call AttributeLoad NameLoad attr ListLoad ListLoad Num Num ListLoad Num Num ListLoad Num Num ListLoad Num Num Expr Call AttributeLoad NameLoad attr keyword Str keyword Num Assign NameStore Call AttributeLoad NameLoad attr TupleLoad Num Num keyword NameLoad Assign SubscriptStore AttributeLoad NameLoad attr ExtSlice Index Num Slice Num Slice Num NameLoad Assert CompareEq Call AttributeLoad AttributeLoad NameLoad attr attr Num Expr Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad NameLoad attr TupleLoad Num Num Assign SubscriptStore AttributeLoad NameLoad attr Index Str Call NameLoad Call AttributeLoad NameLoad attr ListLoad ListLoad Num Num ListLoad Num Num ListLoad Num Num ListLoad Num Num Expr Call AttributeLoad NameLoad attr keyword Str keyword Str Assign NameStore Call AttributeLoad NameLoad attr TupleLoad Num Num keyword NameLoad Assign SubscriptStore AttributeLoad NameLoad attr ExtSlice Index Num Slice Num Slice Num Num NameLoad Assert CompareEq Call AttributeLoad AttributeLoad NameLoad attr attr Num Expr Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args defaults body FunctionDef arguments args NameParam NameParam defaults body Return Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Num keyword AttributeLoad NameLoad attr decorator_list Assign NameStore Call AttributeLoad NameLoad attr TupleLoad Num Num Assign SubscriptStore AttributeLoad NameLoad attr Index Str Call NameLoad Call AttributeLoad NameLoad attr ListLoad ListLoad Num Num ListLoad Num Num ListLoad Num Num ListLoad Num Num Expr Call AttributeLoad NameLoad attr keyword Str keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr TupleLoad Num Num keyword NameLoad Assign SubscriptStore AttributeLoad NameLoad attr ExtSlice Index Num Slice Num Slice Num NameLoad Assert CompareEq Call AttributeLoad AttributeLoad NameLoad attr attr Num Expr Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad NameLoad attr TupleLoad Num Num Num Assign SubscriptStore AttributeLoad NameLoad attr Index Str Call NameLoad Call AttributeLoad NameLoad attr ListLoad ListLoad Num Num Num Expr Call AttributeLoad NameLoad attr decorator_list Call NameLoad NameLoad FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad NameLoad attr TupleLoad Num Num Assign SubscriptStore AttributeLoad NameLoad attr Index Str Call NameLoad Call AttributeLoad NameLoad attr ListLoad ListLoad Num Num Num Expr Call AttributeLoad NameLoad attr keyword Str decorator_list Call NameLoad NameLoad FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad NameLoad attr TupleLoad Num Num Assign NameStore Call AttributeLoad NameLoad attr Assert CompareEq Call AttributeLoad AttributeLoad NameLoad attr attr Num Assign NameStore Call AttributeLoad NameLoad attr keyword Num Assert CompareEq Call AttributeLoad AttributeLoad NameLoad attr attr Num decorator_list FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad NameLoad attr TupleLoad Num Num Assign NameStore Call AttributeLoad NameLoad attr keyword Num Assign NameStore Call AttributeLoad NameLoad attr Assert CompareEq Call AttributeLoad AttributeLoad NameLoad attr attr Num Assign NameStore Call AttributeLoad NameLoad attr keyword Num Assert CompareEq Call AttributeLoad AttributeLoad NameLoad attr attr Num decorator_list FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad NameLoad attr ListLoad Num Num Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assert CompareEq AttributeLoad NameLoad attr Num Assert CompareEq AttributeLoad NameLoad attr Num Assert CompareEq AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad NameLoad attr ListLoad Num Num Num Assign NameStore Call AttributeLoad NameLoad attr TupleLoad Num Num keyword NameLoad Assign SubscriptStore AttributeLoad NameLoad attr ExtSlice Index Num Slice Num Slice Num NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword NameLoad Assert CompareEq AttributeLoad NameLoad attr Num Assert CompareEq AttributeLoad NameLoad attr Num Assert CompareEq AttributeLoad NameLoad attr Num Assert CompareEq Call AttributeLoad AttributeLoad NameLoad attr attr Num decorator_list
N/A N/A numpy np nose.tools raises numpy.testing assert_allclose menpo.shape PointCloud menpo.image MaskedImage BooleanImage test_constrain_mask_to_landmarks_pwa N/A N/A N/A N/A N/A img N/A N/A MaskedImage init_blank N/A 10 10 N/A N/A N/A img landmarks N/A box N/A PointCloud N/A N/A np array N/A N/A 0.0 0.0 N/A 5.0 0.0 N/A 5.0 5.0 N/A 0.0 5.0 N/A N/A N/A img constrain_mask_to_landmarks group box N/A example_mask N/A N/A BooleanImage init_blank N/A 10 10 fill False N/A N/A N/A example_mask pixels N/A N/A 0 N/A 6 N/A 6 True N/A N/A N/A N/A N/A img mask n_true 36 N/A N/A assert_allclose N/A N/A img mask pixels N/A example_mask pixels N/A test_constrain_mask_to_landmarks_pwa_batched N/A N/A N/A N/A N/A img N/A N/A MaskedImage init_blank N/A 10 10 N/A N/A N/A img landmarks N/A box N/A PointCloud N/A N/A np array N/A N/A 0.0 0.0 N/A 5.0 0.0 N/A 5.0 5.0 N/A 0.0 5.0 N/A N/A N/A img constrain_mask_to_landmarks group box batch_size 2 N/A example_mask N/A N/A BooleanImage init_blank N/A 10 10 fill False N/A N/A N/A example_mask pixels N/A N/A 0 N/A 6 N/A 6 True N/A N/A N/A N/A N/A img mask n_true 36 N/A N/A assert_allclose N/A N/A img mask pixels N/A example_mask pixels N/A test_constrain_mask_to_landmarks_convex_hull N/A N/A N/A N/A N/A img N/A N/A MaskedImage init_blank N/A 10 10 N/A N/A N/A img landmarks N/A box N/A PointCloud N/A N/A np array N/A N/A 0.0 0.0 N/A 5.0 0.0 N/A 5.0 5.0 N/A 0.0 5.0 N/A N/A N/A img constrain_mask_to_landmarks group box point_in_pointcloud convex_hull N/A example_mask N/A N/A BooleanImage init_blank N/A 10 10 fill False N/A N/A N/A example_mask pixels N/A N/A 0 N/A 6 N/A 1 6 True N/A N/A N/A N/A N/A img mask n_true 30 N/A N/A assert_allclose N/A N/A img mask pixels N/A example_mask pixels N/A test_constrain_mask_to_landmarks_callable N/A N/A N/A N/A bounding_box N/A N/A _ indices N/A N/A N/A N/A N/A np ones N/A N/A indices shape N/A 0 dtype N/A np bool N/A N/A img N/A N/A MaskedImage init_blank N/A 10 10 N/A N/A N/A img landmarks N/A box N/A PointCloud N/A N/A np array N/A N/A 0.0 0.0 N/A 5.0 0.0 N/A 5.0 5.0 N/A 0.0 5.0 N/A N/A N/A img constrain_mask_to_landmarks group box point_in_pointcloud bounding_box N/A example_mask N/A N/A BooleanImage init_blank N/A 10 10 fill False N/A N/A N/A example_mask pixels N/A N/A 0 N/A 6 N/A 6 True N/A N/A N/A N/A N/A img mask n_true 36 N/A N/A assert_allclose N/A N/A img mask pixels N/A example_mask pixels N/A test_constrain_mask_to_landmarks_non_2d N/A N/A N/A N/A N/A img N/A N/A MaskedImage init_blank N/A 10 10 10 N/A N/A N/A img landmarks N/A box N/A PointCloud N/A N/A np array N/A N/A 0.0 0.0 0.0 N/A N/A N/A img constrain_mask_to_landmarks N/A N/A raises ValueError test_constrain_mask_to_landmarks_unknown_key N/A N/A N/A N/A N/A img N/A N/A MaskedImage init_blank N/A 10 10 N/A N/A N/A img landmarks N/A box N/A PointCloud N/A N/A np array N/A N/A 0.0 0.0 0.0 N/A N/A N/A img constrain_mask_to_landmarks point_in_pointcloud unknown N/A N/A raises ValueError test_erode N/A N/A N/A N/A N/A img N/A N/A MaskedImage init_blank N/A 10 10 N/A img2 N/A N/A img erode N/A N/A N/A N/A N/A img2 mask n_true 64 N/A img3 N/A N/A img erode n_pixels 3 N/A N/A N/A N/A N/A img3 mask n_true 16 N/A test_dilate N/A N/A N/A N/A N/A img N/A N/A MaskedImage init_blank N/A 10 10 N/A img N/A N/A img erode n_pixels 3 N/A img2 N/A N/A img dilate N/A N/A N/A N/A N/A img2 mask n_true 32 N/A img3 N/A N/A img dilate n_pixels 3 N/A N/A N/A N/A N/A img3 mask n_true 76 N/A test_init_from_rolled_channels N/A N/A N/A N/A N/A p N/A N/A np empty N/A 50 60 3 N/A im N/A N/A MaskedImage init_from_rolled_channels p N/A N/A N/A im n_channels 3 N/A N/A N/A im height 50 N/A N/A N/A im width 60 N/A test_init_from_rolled_channels_masked N/A N/A N/A N/A N/A p N/A N/A np empty N/A 50 60 3 N/A example_mask N/A N/A BooleanImage init_blank N/A 50 60 fill False N/A N/A N/A example_mask pixels N/A N/A 0 N/A 6 N/A 6 True N/A im N/A N/A MaskedImage init_from_rolled_channels p mask example_mask N/A N/A N/A im n_channels 3 N/A N/A N/A im height 50 N/A N/A N/A im width 60 N/A N/A N/A N/A N/A im mask n_true 36 N/A