Module Import alias Import alias identifier ImportFrom alias alias ImportFrom alias alias alias alias alias alias alias alias ImportFrom alias FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad NameLoad attr ListLoad Num Expr Call NameLoad NameLoad decorator_list Call NameLoad NameLoad FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad NameLoad attr Num Expr Call NameLoad NameLoad decorator_list Call NameLoad NameLoad FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad NameLoad attr ListLoad Num Num Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Num Num Assign NameStore Call NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call NameLoad BinOpAdd NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad NameLoad attr ListLoad ListLoad Num Num ListLoad Num Num Assign NameStore Call NameLoad NameLoad Expr Call NameLoad Call AttributeLoad NameLoad attr ListLoad Num Num Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr ListLoad Num Num decorator_list FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad NameLoad attr ListLoad ListLoad Num Num ListLoad Num Num Assign NameStore Call NameLoad NameLoad Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr Expr Call NameLoad NameLoad Call AttributeLoad NameLoad attr ListLoad Num Num Num Expr Call NameLoad BinOpDiv BinOpMult Num AttributeLoad NameLoad attr Num NameLoad decorator_list FunctionDef arguments args defaults body Assign NameStore BinOpDiv Call AttributeLoad NameLoad attr Num Num Assign NameStore Num Assign NameStore Call AttributeLoad NameLoad attr ListLoad ListLoad Num Num Num ListLoad Num NameLoad NameLoad ListLoad Num UnaryOpUSub NameLoad NameLoad Assign NameStore Call NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr ListLoad Num Num Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call NameLoad Call AttributeLoad NameLoad attr ListLoad Num NameLoad UnaryOpUSub NameLoad NameLoad decorator_list FunctionDef arguments args defaults body Assign NameStore BinOpDiv Call AttributeLoad NameLoad attr Num Num Assign NameStore Num Assign NameStore Call AttributeLoad NameLoad attr ListLoad ListLoad Num Num Num ListLoad Num NameLoad NameLoad ListLoad Num UnaryOpUSub NameLoad NameLoad Assign NameStore Call NameLoad NameLoad Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr Expr Call NameLoad NameLoad Call AttributeLoad NameLoad attr ListLoad Num Num Num Expr Call NameLoad BinOpDiv BinOpMult Num AttributeLoad NameLoad attr Num NameLoad decorator_list FunctionDef arguments args defaults body Assign NameStore BinOpDiv Call AttributeLoad NameLoad attr Num Num Assign NameStore Num Assign NameStore Call AttributeLoad NameLoad attr ListLoad ListLoad Num Num Num ListLoad Num NameLoad NameLoad ListLoad Num UnaryOpUSub NameLoad NameLoad Assign NameStore Call NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Expr Call NameLoad Call AttributeLoad NameLoad attr Num AttributeLoad NameLoad attr keyword Num decorator_list FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad NameLoad attr ListLoad ListLoad Num Num ListLoad Num Num Assign NameStore Call AttributeLoad NameLoad attr ListLoad Num Num Assign NameStore Call AttributeLoad NameLoad attr Num Num Assign SubscriptStore NameLoad ExtSlice Slice Num Slice Num NameLoad Assign SubscriptStore NameLoad ExtSlice Slice Num Index Num NameLoad Assign NameStore Call NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr ListLoad ListLoad Num Num ListLoad Num Num ListLoad Num Num ListLoad Num Num Assign NameStore BinOpAdd Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call NameLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr ListLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad For NameStore NameLoad body Expr Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad NameLoad attr ListLoad ListLoad Num Num Num ListLoad Num Num Num ListLoad Num Num Num Assign NameStore Call AttributeLoad NameLoad attr ListLoad Num Num Num Assign NameStore Call AttributeLoad NameLoad attr Num Num Assign SubscriptStore NameLoad ExtSlice Slice Num Slice Num NameLoad Assign SubscriptStore NameLoad ExtSlice Slice Num Index Num NameLoad Assign NameStore Call NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr ListLoad ListLoad Num Num Num ListLoad Num Num Num ListLoad Num Num Num ListLoad Num Num Num Assign NameStore BinOpAdd Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call NameLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr ListLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad For NameStore NameLoad body Expr Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad NameLoad attr ListLoad ListLoad Num Num ListLoad Num Num Assign NameStore Call AttributeLoad NameLoad attr ListLoad Num Num Assign NameStore Call AttributeLoad NameLoad attr Num Num Assign SubscriptStore NameLoad ExtSlice Slice Num Slice Num NameLoad Assign SubscriptStore NameLoad ExtSlice Slice Num Index Num NameLoad Assign NameStore Call NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr ListLoad ListLoad Num Num ListLoad Num Num ListLoad Num Num ListLoad Num Num Assign NameStore BinOpAdd Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call NameLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr ListLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad For NameStore NameLoad body Expr Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad NameLoad attr ListLoad Num Num Num Num Assign NameStore Call AttributeLoad NameLoad attr ListLoad ListLoad BinOpAdd SubscriptLoad NameLoad Index Num Num UnaryOpUSub SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num ListLoad SubscriptLoad NameLoad Index Num BinOpAdd SubscriptLoad NameLoad Index Num Num SubscriptLoad NameLoad Index Num ListLoad Num Num Num Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr Num attr NameLoad Expr Call NameLoad AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad NameLoad attr ListLoad Num Num Num Num Assign NameStore Call AttributeLoad NameLoad attr ListLoad ListLoad BinOpAdd SubscriptLoad NameLoad Index Num Num UnaryOpUSub SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num ListLoad SubscriptLoad NameLoad Index Num BinOpAdd SubscriptLoad NameLoad Index Num Num SubscriptLoad NameLoad Index Num ListLoad Num Num Num Assign NameStore Call AttributeLoad Call NameLoad NameLoad attr Expr Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad NameLoad attr ListLoad Num Num Assign NameStore Call AttributeLoad NameLoad attr ListLoad ListLoad Num Num SubscriptLoad NameLoad Index Num ListLoad Num Num SubscriptLoad NameLoad Index Num ListLoad Num Num Num Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr Num attr NameLoad Expr Call NameLoad AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad NameLoad attr ListLoad Num Num Assign NameStore Call AttributeLoad Call NameLoad NameLoad attr Expr Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad NameLoad attr ListLoad Num Num Num Assign NameStore Call AttributeLoad NameLoad attr ListLoad ListLoad Num Num Num SubscriptLoad NameLoad Index Num ListLoad Num Num Num SubscriptLoad NameLoad Index Num ListLoad Num Num Num SubscriptLoad NameLoad Index Num ListLoad Num Num Num Num Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr Num attr NameLoad Expr Call NameLoad AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad NameLoad attr ListLoad Num Num Num Assign NameStore Call AttributeLoad Call NameLoad NameLoad attr Expr Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args defaults body Assign NameStore Call NameLoad Num Num Assign NameStore Num Assign NameStore Call AttributeLoad NameLoad attr ListLoad ListLoad NameLoad Num Num ListLoad Num NameLoad Num ListLoad Num Num Num Expr Call AttributeLoad NameLoad attr NameLoad Expr Call NameLoad AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args defaults body Assign NameStore Num Assign NameStore Call AttributeLoad Call NameLoad NameLoad Num attr Expr Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad NameLoad attr ListLoad Num Num Assign NameStore Call AttributeLoad NameLoad attr ListLoad ListLoad SubscriptLoad NameLoad Index Num Num Num ListLoad Num SubscriptLoad NameLoad Index Num Num ListLoad Num Num Num Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr Num attr NameLoad Expr Call NameLoad AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad NameLoad attr ListLoad Num Num Assign NameStore Call AttributeLoad NameLoad attr ListLoad ListLoad SubscriptLoad NameLoad Index Num Num Num ListLoad Num SubscriptLoad NameLoad Index Num Num ListLoad Num Num Num Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr ListLoad Num Num Expr Call AttributeLoad NameLoad attr NameLoad Expr Call NameLoad AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad NameLoad attr ListLoad Num Num Assign NameStore Call AttributeLoad Call NameLoad NameLoad attr Expr Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args defaults body Assign NameStore Num Assign NameStore Call AttributeLoad NameLoad attr ListLoad ListLoad NameLoad Num Num Num ListLoad Num NameLoad Num Num ListLoad Num Num NameLoad Num ListLoad Num Num Num Num Assign NameStore Call NameLoad Num Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call NameLoad AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args defaults body Assign NameStore Num Assign NameStore Call AttributeLoad Call NameLoad NameLoad Num attr Expr Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args defaults body Assign NameStore Num Assign NameStore Call AttributeLoad NameLoad attr ListLoad ListLoad NameLoad Num Num ListLoad Num NameLoad Num ListLoad Num Num Num Assign NameStore Call NameLoad NameLoad Num Expr Call NameLoad AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args defaults body Assign NameStore Num Assign NameStore Call AttributeLoad NameLoad attr ListLoad ListLoad NameLoad Num Num Num ListLoad Num NameLoad Num Num ListLoad Num Num NameLoad Num ListLoad Num Num Num Num Assign NameStore Call NameLoad NameLoad Num Assert Call NameLoad NameLoad NameLoad Expr Call NameLoad AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args defaults body Expr Call NameLoad Num Num decorator_list Call NameLoad NameLoad FunctionDef arguments args defaults body Assign NameStore Num Assign NameStore Num Assign NameStore Call NameLoad NameLoad NameLoad Assert Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args defaults body Assign NameStore Num Assign NameStore Num Assign NameStore Call NameLoad NameLoad NameLoad Assert Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad NameLoad attr ListLoad Num Num Assign NameStore Call NameLoad NameLoad Assert Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad NameLoad attr ListLoad Num Num Assign NameStore Call NameLoad NameLoad Assert Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args defaults body Expr Call NameLoad Call AttributeLoad NameLoad attr ListLoad Num Num decorator_list Call NameLoad NameLoad FunctionDef arguments args defaults body Expr Call AttributeLoad Call AttributeLoad NameLoad attr Num attr Num decorator_list Call NameLoad NameLoad FunctionDef arguments args defaults body Expr Call AttributeLoad Call AttributeLoad NameLoad attr Num attr decorator_list Call NameLoad NameLoad FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad NameLoad attr Num Assign NameStore Call NameLoad NameLoad Assert CompareEq AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad NameLoad attr Num Assign NameStore Call NameLoad NameLoad Assert CompareEq AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad NameLoad attr Num Assign NameStore Call NameLoad NameLoad Assert CompareEq AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad NameLoad attr Num Assign NameStore Call NameLoad NameLoad Assert CompareEq AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad NameLoad attr Num Assign NameStore Call NameLoad NameLoad Expr AttributeLoad NameLoad attr decorator_list Call NameLoad NameLoad FunctionDef arguments args defaults body Assign NameStore Num Assign NameStore Call NameLoad NameLoad Num Assert CompareEq AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args defaults body Assign NameStore Num Assign NameStore Call NameLoad NameLoad Num Assert CompareEq AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad NameLoad attr ListLoad Num Num Assign NameStore Call NameLoad NameLoad Assert CompareEq AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad NameLoad attr ListLoad Num Num Assign NameStore Call NameLoad NameLoad 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 NameLoad NameLoad Assert CompareEq AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad NameLoad attr Num Assign NameStore Call NameLoad NameLoad Expr AttributeLoad NameLoad attr decorator_list Call NameLoad NameLoad FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad NameLoad attr Num Assign NameStore Call NameLoad NameLoad Expr AttributeLoad NameLoad attr decorator_list Call NameLoad NameLoad FunctionDef arguments args defaults body Assign NameStore Call NameLoad ListLoad Num Num Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr ListLoad Num Num Assert Call AttributeLoad NameLoad attr CompareEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args defaults body Assign NameStore Call NameLoad ListLoad Num Num Num Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr ListLoad Num Num Num Assert Call AttributeLoad NameLoad attr CompareEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args defaults body Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr Num With Call AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list Call NameLoad NameLoad FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad NameLoad attr Num Assign NameStore Call NameLoad NameLoad Assert CompareEq Call NameLoad NameLoad Str decorator_list FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad NameLoad attr Num Assign NameStore Call AttributeLoad NameLoad attr Num Expr Call NameLoad NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad NameLoad attr Num Assert AttributeLoad NameLoad attr decorator_list FunctionDef arguments args defaults body Assign NameStore BinOpMult Call AttributeLoad NameLoad attr Num Num Assign SubscriptStore NameLoad Index TupleLoad Num Num Num Assign NameStore BinOpMult Call AttributeLoad NameLoad attr Num Num Assign SubscriptStore NameLoad Index TupleLoad Num Num Num Assign NameStore Call NameLoad NameLoad Expr Call NameLoad AttributeLoad Call AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args defaults body Assign NameStore BinOpMult Call AttributeLoad NameLoad attr Num Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Num Num Assign SubscriptStore NameLoad Index TupleLoad Num Num Num Assign SubscriptStore NameLoad ExtSlice Slice Num Index Num ListLoad Num Num Assign NameStore Call NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore BinOpAdd BinOpMult NameLoad Num Call AttributeLoad NameLoad attr ListLoad Num Num Expr Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args defaults body Assign NameStore BinOpMult Call AttributeLoad NameLoad attr Num Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Num Num Assign SubscriptStore NameLoad Index TupleLoad Num Num Num Assign SubscriptStore NameLoad ExtSlice Slice Num Index Num ListLoad Num Num Assign NameStore Call NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword Num Assign NameStore BinOpAdd BinOpMult NameLoad Num Call AttributeLoad NameLoad attr ListLoad Num Num Expr Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args defaults body Assign NameStore BinOpMult Call AttributeLoad NameLoad attr Num Num Assign SubscriptStore NameLoad Index TupleLoad Num Num Num Assign NameStore Call NameLoad NameLoad Expr Call NameLoad Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args defaults body Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr Num Assign NameStore BinOpMult Call AttributeLoad NameLoad attr Num Num Assign SubscriptStore NameLoad Index TupleLoad Num Num Num Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Expr Call NameLoad AttributeLoad NameLoad attr NameLoad decorator_list
N/A N/A warnings N/A numpy np numpy.testing assert_allclose assert_equal menpo.transform Affine Similarity Rotation Scale NonUniformScale UniformScale Translation Homogeneous nose.tools raises test_1d_translation N/A N/A N/A N/A N/A t_vec N/A N/A np array N/A 1 N/A N/A Translation t_vec N/A N/A raises ValueError test_5d_translation N/A N/A N/A N/A N/A t_vec N/A N/A np ones 5 N/A N/A Translation t_vec N/A N/A raises ValueError test_translation N/A N/A N/A N/A N/A t_vec N/A N/A np array N/A 1 2 3 N/A starting_vector N/A N/A N/A np random rand 10 3 N/A transform N/A Translation t_vec N/A transformed N/A N/A transform apply starting_vector N/A N/A assert_allclose N/A starting_vector t_vec transformed N/A test_basic_2d_rotation N/A N/A N/A N/A N/A rotation_matrix N/A N/A np array N/A N/A 0 1 N/A -1 0 N/A rotation N/A Rotation rotation_matrix N/A N/A assert_allclose N/A N/A np array N/A 0 -1 N/A N/A rotation apply N/A N/A np array N/A 1 0 N/A test_basic_2d_rotation_axis_angle N/A N/A N/A N/A N/A rotation_matrix N/A N/A np array N/A N/A 0 1 N/A -1 0 N/A rotation N/A Rotation rotation_matrix N/A N/A axis angle N/A N/A rotation axis_and_angle_of_rotation N/A N/A assert_allclose axis N/A N/A np array N/A 0 0 1 N/A N/A assert_allclose N/A N/A 90 N/A np pi 180 angle N/A test_basic_3d_rotation N/A N/A N/A N/A N/A a N/A N/A N/A np sqrt 3.0 2.0 N/A b 0.5 N/A rotation_matrix N/A N/A np array N/A N/A 1 0 0 N/A 0 a b N/A 0 N/A b a N/A rotation N/A Rotation rotation_matrix N/A starting_vector N/A N/A np array N/A 0 1 0 N/A transformed N/A N/A rotation apply starting_vector N/A N/A assert_allclose N/A N/A np array N/A 0 a N/A b transformed N/A test_basic_3d_rotation_axis_angle N/A N/A N/A N/A N/A a N/A N/A N/A np sqrt 3.0 2.0 N/A b 0.5 N/A rotation_matrix N/A N/A np array N/A N/A 1 0 0 N/A 0 a b N/A 0 N/A b a N/A rotation N/A Rotation rotation_matrix N/A N/A axis angle N/A N/A rotation axis_and_angle_of_rotation N/A N/A assert_allclose axis N/A N/A np array N/A 1 0 0 N/A N/A assert_allclose N/A N/A -30 N/A np pi 180 angle N/A test_3d_rotation_inverse_eye N/A N/A N/A N/A N/A a N/A N/A N/A np sqrt 3.0 2.0 N/A b 0.5 N/A rotation_matrix N/A N/A np array N/A N/A 1 0 0 N/A 0 a b N/A 0 N/A b a N/A rotation N/A Rotation rotation_matrix N/A transformed N/A N/A rotation compose_before N/A N/A rotation pseudoinverse N/A N/A assert_allclose N/A N/A np eye 4 N/A transformed h_matrix atol 1e-15 N/A test_basic_2d_affine N/A N/A N/A N/A N/A linear_component N/A N/A np array N/A N/A 1 -6 N/A -3 2 N/A translation_component N/A N/A np array N/A 7 -8 N/A h_matrix N/A N/A np eye 3 3 N/A N/A h_matrix N/A N/A -1 N/A -1 linear_component N/A N/A h_matrix N/A N/A -1 N/A -1 translation_component N/A affine N/A Affine h_matrix N/A x N/A N/A np array N/A N/A 0 1 N/A 1 1 N/A -1 -5 N/A 3 -5 N/A solution N/A N/A N/A np dot x N/A linear_component T translation_component N/A result N/A N/A affine apply x N/A N/A assert_allclose solution result N/A x_copies N/A N/A np array N/A x x x x x x x x N/A results N/A N/A affine apply x_copies N/A r results N/A N/A N/A assert_allclose solution r N/A test_basic_3d_affine N/A N/A N/A N/A N/A linear_component N/A N/A np array N/A N/A 1 6 -4 N/A -3 -2 5 N/A 5 -1 3 N/A translation_component N/A N/A np array N/A 7 -8 9 N/A h_matrix N/A N/A np eye 4 4 N/A N/A h_matrix N/A N/A -1 N/A -1 linear_component N/A N/A h_matrix N/A N/A -1 N/A -1 translation_component N/A affine N/A Affine h_matrix N/A x N/A N/A np array N/A N/A 0 1 2 N/A 1 1 1 N/A -1 2 -5 N/A 1 -5 -1 N/A solution N/A N/A N/A np dot x N/A linear_component T translation_component N/A result N/A N/A affine apply x N/A N/A assert_allclose solution result N/A x_copies N/A N/A np array N/A x x x x x x x x N/A results N/A N/A affine apply x_copies N/A r results N/A N/A N/A assert_allclose solution r N/A test_basic_2d_similarity N/A N/A N/A N/A N/A linear_component N/A N/A np array N/A N/A 2 -6 N/A 6 2 N/A translation_component N/A N/A np array N/A 7 -8 N/A h_matrix N/A N/A np eye 3 3 N/A N/A h_matrix N/A N/A -1 N/A -1 linear_component N/A N/A h_matrix N/A N/A -1 N/A -1 translation_component N/A similarity N/A Similarity h_matrix N/A x N/A N/A np array N/A N/A 0 1 N/A 1 1 N/A -1 -5 N/A 3 -5 N/A solution N/A N/A N/A np dot x N/A linear_component T translation_component N/A result N/A N/A similarity apply x N/A N/A assert_allclose solution result N/A x_copies N/A N/A np array N/A x x x x x x x x N/A results N/A N/A similarity apply x_copies N/A r results N/A N/A N/A assert_allclose solution r N/A test_similarity_2d_from_vector N/A N/A N/A N/A N/A params N/A N/A np array N/A 0.2 0.1 1 2 N/A homo N/A N/A np array N/A N/A N/A N/A params N/A 0 1 N/A N/A params N/A 1 N/A params N/A 2 N/A N/A params N/A 1 N/A N/A params N/A 0 1 N/A params N/A 3 N/A 0 0 1 N/A sim N/A N/A N/A N/A Similarity init_identity 2 from_vector params N/A N/A assert_equal N/A sim h_matrix homo N/A test_similarity_2d_as_vector N/A N/A N/A N/A N/A params N/A N/A np array N/A 0.2 0.1 1.0 2.0 N/A homo N/A N/A np array N/A N/A N/A N/A params N/A 0 1.0 N/A N/A params N/A 1 N/A params N/A 2 N/A N/A params N/A 1 N/A N/A params N/A 0 1.0 N/A params N/A 3 N/A 0.0 0.0 1.0 N/A vec N/A N/A N/A Similarity homo as_vector N/A N/A assert_allclose vec params N/A test_translation_2d_from_vector N/A N/A N/A N/A N/A params N/A N/A np array N/A 1 2 N/A homo N/A N/A np array N/A N/A 1 0 N/A params N/A 0 N/A 0 1 N/A params N/A 1 N/A 0 0 1 N/A tr N/A N/A N/A N/A Translation init_identity 2 from_vector params N/A N/A assert_equal N/A tr h_matrix homo N/A test_translation_2d_as_vector N/A N/A N/A N/A N/A params N/A N/A np array N/A 1 2 N/A vec N/A N/A N/A Translation params as_vector N/A N/A assert_allclose vec params N/A test_translation_3d_from_vector N/A N/A N/A N/A N/A params N/A N/A np array N/A 1 2 3 N/A homo N/A N/A np array N/A N/A 1 0 0 N/A params N/A 0 N/A 0 1 0 N/A params N/A 1 N/A 0 0 1 N/A params N/A 2 N/A 0 0 0 1 N/A tr N/A N/A N/A N/A Translation init_identity 3 from_vector params N/A N/A assert_equal N/A tr h_matrix homo N/A test_translation_3d_as_vector N/A N/A N/A N/A N/A params N/A N/A np array N/A 1 2 3 N/A vec N/A N/A N/A Translation params as_vector N/A N/A assert_allclose vec params N/A test_uniformscale2d_update_from_vector N/A N/A N/A N/A N/A uniform_scale N/A UniformScale 1 2 N/A new_scale 2 N/A homo N/A N/A np array N/A N/A new_scale 0 0 N/A 0 new_scale 0 N/A 0 0 1 N/A N/A N/A uniform_scale _from_vector_inplace new_scale N/A N/A assert_equal N/A uniform_scale h_matrix homo N/A test_uniformscale2d_as_vector N/A N/A N/A N/A N/A scale 2 N/A vec N/A N/A N/A UniformScale scale 2 as_vector N/A N/A assert_allclose vec scale N/A test_nonuniformscale2d_from_vector N/A N/A N/A N/A N/A scale N/A N/A np array N/A 1 2 N/A homo N/A N/A np array N/A N/A N/A scale N/A 0 0 0 N/A 0 N/A scale N/A 1 0 N/A 0 0 1 N/A tr N/A N/A N/A N/A NonUniformScale init_identity 2 from_vector scale N/A N/A assert_equal N/A tr h_matrix homo N/A test_nonuniformscale2d_update_from_vector N/A N/A N/A N/A N/A scale N/A N/A np array N/A 3 4 N/A homo N/A N/A np array N/A N/A N/A scale N/A 0 0 0 N/A 0 N/A scale N/A 1 0 N/A 0 0 1 N/A tr N/A NonUniformScale N/A N/A np array N/A 1 2 N/A N/A N/A tr _from_vector_inplace scale N/A N/A assert_equal N/A tr h_matrix homo N/A test_nonuniformscale2d_as_vector N/A N/A N/A N/A N/A scale N/A N/A np array N/A 1 2 N/A vec N/A N/A N/A NonUniformScale scale as_vector N/A N/A assert_allclose vec scale N/A test_uniformscale3d_from_vector N/A N/A N/A N/A N/A scale 2 N/A homo N/A N/A np array N/A N/A scale 0 0 0 N/A 0 scale 0 0 N/A 0 0 scale 0 N/A 0 0 0 1 N/A uniform_scale N/A UniformScale 1 3 N/A tr N/A N/A uniform_scale from_vector scale N/A N/A assert_equal N/A tr h_matrix homo N/A test_uniformscale3d_as_vector N/A N/A N/A N/A N/A scale 2 N/A vec N/A N/A N/A UniformScale scale 3 as_vector N/A N/A assert_allclose vec scale N/A test_uniformscale_build_2d N/A N/A N/A N/A N/A scale 2 N/A homo N/A N/A np array N/A N/A scale 0 0 N/A 0 scale 0 N/A 0 0 1 N/A tr N/A UniformScale scale 2 N/A N/A assert_equal N/A tr h_matrix homo N/A test_uniformscale_build_3d N/A N/A N/A N/A N/A scale 2 N/A homo N/A N/A np array N/A N/A scale 0 0 0 N/A 0 scale 0 0 N/A 0 0 scale 0 N/A 0 0 0 1 N/A tr N/A UniformScale scale 3 N/A N/A isinstance tr UniformScale N/A N/A assert_equal N/A tr h_matrix homo N/A test_uniformscale_build_4d_raise_dimensionalityerror N/A N/A N/A N/A N/A N/A UniformScale 1 4 N/A N/A raises ValueError test_scale_build_2d_uniform_pass_dim N/A N/A N/A N/A N/A scale 2 N/A ndim 2 N/A tr N/A Scale scale ndim N/A N/A isinstance tr UniformScale N/A test_scale_build_3d_uniform_pass_dim N/A N/A N/A N/A N/A scale 2 N/A ndim 3 N/A tr N/A Scale scale ndim N/A N/A isinstance tr UniformScale N/A test_scale_build_2d_nonuniform N/A N/A N/A N/A N/A scale N/A N/A np array N/A 1 2 N/A tr N/A Scale scale N/A N/A isinstance tr NonUniformScale N/A test_scale_build_2d_uniform_from_vec N/A N/A N/A N/A N/A scale N/A N/A np array N/A 2 2 N/A tr N/A Scale scale N/A N/A isinstance tr UniformScale N/A test_scale_zero_scale_raise_valuerror N/A N/A N/A N/A N/A N/A Scale N/A N/A np array N/A 1 0 N/A N/A raises ValueError test_rotation3d_from_vector_raises_notimplementederror N/A N/A N/A N/A N/A N/A N/A N/A N/A Rotation init_identity 3 from_vector 0 N/A N/A raises NotImplementedError test_rotation3d_as_vector_raises_notimplementederror N/A N/A N/A N/A N/A N/A N/A N/A N/A Rotation init_identity 3 as_vector N/A N/A raises NotImplementedError test_affine_2d_n_parameters N/A N/A N/A N/A N/A homo N/A N/A np eye 3 N/A t N/A Affine homo N/A N/A N/A t n_parameters 6 N/A test_affine_2d_n_dims_output N/A N/A N/A N/A N/A homo N/A N/A np eye 3 N/A t N/A Affine homo N/A N/A N/A t n_dims_output 2 N/A test_affine_3d_n_parameters N/A N/A N/A N/A N/A homo N/A N/A np eye 4 N/A t N/A Affine homo N/A N/A N/A t n_parameters 12 N/A test_similarity_2d_n_parameters N/A N/A N/A N/A N/A homo N/A N/A np eye 3 N/A t N/A Similarity homo N/A N/A N/A t n_parameters 4 N/A test_similarity_3d_n_parameters_raises_notimplementederror N/A N/A N/A N/A N/A homo N/A N/A np eye 4 N/A t N/A Similarity homo N/A N/A t n_parameters N/A N/A raises NotImplementedError test_uniformscale2d_n_parameters N/A N/A N/A N/A N/A scale 2 N/A t N/A UniformScale scale 2 N/A N/A N/A t n_parameters 1 N/A test_uniformscale3d_n_parameters N/A N/A N/A N/A N/A scale 2 N/A t N/A UniformScale scale 3 N/A N/A N/A t n_parameters 1 N/A test_nonuniformscale_2d_n_parameters N/A N/A N/A N/A N/A scale N/A N/A np array N/A 1 2 N/A t N/A NonUniformScale scale N/A N/A N/A t n_parameters 2 N/A test_translation_2d_n_parameters N/A N/A N/A N/A N/A trans N/A N/A np array N/A 1 2 N/A t N/A Translation trans N/A N/A N/A t n_parameters 2 N/A test_translation_3d_n_parameters N/A N/A N/A N/A N/A trans N/A N/A np array N/A 1 2 3 N/A t N/A Translation trans N/A N/A N/A t n_parameters 3 N/A test_rotation2d_n_parameters_raises_notimplementederror N/A N/A N/A N/A N/A rot_matrix N/A N/A np eye 2 N/A t N/A Rotation rot_matrix N/A N/A t n_parameters N/A N/A raises NotImplementedError test_rotation3d_n_parameters_raises_notimplementederror N/A N/A N/A N/A N/A rot_matrix N/A N/A np eye 3 N/A t N/A Rotation rot_matrix N/A N/A t n_parameters N/A N/A raises NotImplementedError test_translation_from_list N/A N/A N/A N/A N/A t_a N/A Translation N/A 3 4 N/A t_b N/A Translation N/A N/A np array N/A 3 4 N/A N/A N/A np all N/A N/A t_a h_matrix N/A t_b h_matrix N/A test_nonuniformscale_from_list N/A N/A N/A N/A N/A u_a N/A NonUniformScale N/A 3 2 3 N/A u_b N/A NonUniformScale N/A N/A np array N/A 3 2 3 N/A N/A N/A np all N/A N/A u_a h_matrix N/A u_b h_matrix N/A test_homogenous_set_h_matrix_raises_notimplementederror N/A N/A N/A N/A N/A s N/A Homogeneous N/A N/A np eye 4 N/A N/A N/A warnings catch_warnings N/A N/A N/A N/A warnings simplefilter ignore N/A N/A N/A s set_h_matrix N/A s h_matrix N/A N/A raises NotImplementedError test_homogeneous_print N/A N/A N/A N/A N/A e N/A N/A np eye 3 N/A h N/A Homogeneous e N/A N/A N/A str h Homogeneous
[[ 1.  0.  0.]
 [ 0.  1.  0.]
 [ 0.  0.  1.]] N/A test_homogeneous_eye N/A N/A N/A N/A N/A e N/A N/A np eye 3 N/A h N/A N/A Homogeneous init_identity 2 N/A N/A assert_allclose e N/A h h_matrix N/A test_homogeneous_has_true_inverse N/A N/A N/A N/A N/A h N/A N/A Homogeneous init_identity 2 N/A N/A h has_true_inverse N/A test_homogeneous_inverse N/A N/A N/A N/A N/A e N/A N/A N/A np eye 3 2 N/A N/A e N/A N/A 2 2 1 N/A e_inv N/A N/A N/A np eye 3 0.5 N/A N/A e_inv N/A N/A 2 2 1 N/A h N/A Homogeneous e N/A N/A assert_allclose N/A N/A N/A h pseudoinverse h_matrix e_inv N/A test_homogeneous_apply N/A N/A N/A N/A N/A e N/A N/A N/A np eye 3 2 N/A p N/A N/A N/A np random rand 10 2 N/A N/A e N/A N/A 2 2 1 N/A N/A e N/A N/A 2 N/A -1 N/A 2 3 N/A h N/A Homogeneous e N/A p_applied N/A N/A h apply p N/A p_manual N/A N/A p 2 N/A N/A np array N/A 2 3 N/A N/A assert_allclose p_applied p_manual N/A test_homogeneous_apply_batched N/A N/A N/A N/A N/A e N/A N/A N/A np eye 3 2 N/A p N/A N/A N/A np random rand 10 2 N/A N/A e N/A N/A 2 2 1 N/A N/A e N/A N/A 2 N/A -1 N/A 2 3 N/A h N/A Homogeneous e N/A p_applied N/A N/A h apply p batch_size 2 N/A p_manual N/A N/A p 2 N/A N/A np array N/A 2 3 N/A N/A assert_allclose p_applied p_manual N/A test_homogeneous_as_vector N/A N/A N/A N/A N/A e N/A N/A N/A np eye 3 2 N/A N/A e N/A N/A 2 2 1 N/A h N/A Homogeneous e N/A N/A assert_allclose N/A N/A h as_vector N/A N/A e flatten N/A test_homogeneous_from_vector_inplace N/A N/A N/A N/A N/A h N/A Homogeneous N/A N/A np eye 3 N/A e N/A N/A N/A np eye 3 2 N/A N/A e N/A N/A 2 2 1 N/A N/A N/A h _from_vector_inplace N/A N/A e ravel N/A N/A assert_allclose N/A h h_matrix e N/A