Module Expr Str Import alias Import alias Import alias Import alias Import alias TryExcept body ImportFrom alias alias alias alias alias handlers ExceptHandler body ImportFrom alias alias alias alias alias ImportFrom alias alias alias ImportFrom alias alias alias ImportFrom alias Import alias Import alias Import alias identifier Import alias identifier Import alias Import alias ImportFrom alias alias alias alias alias alias alias ImportFrom alias ImportFrom alias ImportFrom alias alias FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad Num Num Assign NameStore Num For NameStore NameLoad body AugAssignAdd NameStore NameLoad AugAssignAdd NameStore Num Assign NameStore BinOpMult BinOpDiv Num NameLoad NameLoad Assign NameStore Call NameLoad UnaryOpUSub Call AttributeLoad NameLoad attr UnaryOpUSub Call AttributeLoad NameLoad attr TupleLoad Num Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Num Assign NameStore Num For NameStore NameLoad body Assign TupleStore NameStore NameStore TupleLoad Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad BinOpAdd BinOpMult NameLoad NameLoad BinOpMult NameLoad NameLoad AugAssignAdd NameStore NameLoad AugAssignAdd NameStore Num Assign NameStore BinOpMult BinOpDiv Num NameLoad NameLoad Assign NameStore Call NameLoad BinOpDiv Num NameLoad TupleLoad Num Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore BinOpMult NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad body Expr Str Assign NameStore Call NameLoad ListLoad ListLoad Num Num NameLoad ListLoad Num Num NameLoad ListLoad Num Num Num Str Return Call NameLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad NameLoad body Expr Str Assign NameStore Call NameLoad ListLoad ListLoad NameLoad Num Num ListLoad Num NameLoad Num ListLoad Num Num Num Str Assign NameStore Call NameLoad NameLoad NameLoad NameLoad If CompareEq NameLoad NameLoad body Return NameLoad orelse Return BinOpMult BinOpMult Call NameLoad Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad Call NameLoad UnaryOpUSub Call AttributeLoad NameLoad attr UnaryOpUSub Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad body Expr Str Assign NameStore Call NameLoad ListLoad ListLoad NameLoad Num Num ListLoad Num NameLoad Num ListLoad Num Num Num Str Return Call NameLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad NameLoad body Expr Str Assign NameStore Call NameLoad ListLoad ListLoad Call AttributeLoad NameLoad attr NameLoad UnaryOpUSub Call AttributeLoad NameLoad attr NameLoad Num ListLoad Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr NameLoad Num ListLoad Num Num Num Str Assign NameStore Call NameLoad NameLoad NameLoad NameLoad If CompareEq NameLoad NameLoad body Return NameLoad orelse Return BinOpMult BinOpMult Call NameLoad Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad Call NameLoad UnaryOpUSub Call AttributeLoad NameLoad attr UnaryOpUSub Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Str Assign TupleStore NameStore NameStore NameLoad Assign NameStore BinOpDiv Call NameLoad NameLoad AttributeLoad NameLoad attr Assign NameStore BinOpDiv Call NameLoad NameLoad AttributeLoad NameLoad attr Assign NameStore BinOpMult UnaryOpUSub AttributeLoad NameLoad attr NameLoad Assign NameStore BinOpMult UnaryOpUSub AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad ListLoad ListLoad NameLoad Num NameLoad ListLoad Num NameLoad NameLoad ListLoad Num Num Num Str Return Call NameLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Str Assign TupleStore NameStore NameStore NameLoad Assign NameStore Call NameLoad BinOpSub Call AttributeLoad NameLoad attr BinOpDiv NameLoad Num BinOpSub Call AttributeLoad NameLoad attr BinOpDiv NameLoad Num NameLoad NameLoad Assign NameStore BinOpDiv Call NameLoad NameLoad AttributeLoad NameLoad attr Assign NameStore BinOpDiv Call NameLoad NameLoad AttributeLoad NameLoad attr Assign NameStore BinOpMult UnaryOpUSub AttributeLoad NameLoad attr NameLoad Assign NameStore BinOpMult UnaryOpUSub AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad ListLoad ListLoad NameLoad Num NameLoad ListLoad Num NameLoad NameLoad ListLoad Num Num Num Str Return Call NameLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad body Expr Str Assign NameStore ListLoad ListLoad Call AttributeLoad NameLoad attr UnaryOpUSub Call AttributeLoad NameLoad attr Num Num ListLoad Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Num Num ListLoad Call AttributeLoad NameLoad attr UnaryOpUSub Call AttributeLoad NameLoad attr Num Num ListLoad Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Num Num Assign NameStore ListLoad Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad NameLoad NameLoad Assign TupleStore NameStore NameStore NameStore NameStore NameLoad Assign NameStore Call NameLoad ListLoad ListLoad NameLoad UnaryOpUSub NameLoad NameLoad ListLoad NameLoad NameLoad NameLoad ListLoad Num Num Num Str Return Call NameLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad body Expr Str If NameLoad body Assign NameStore Call NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore ListLoad Assign NameStore ListLoad For NameStore Call NameLoad Call NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr ListLoad Call AttributeLoad SubscriptLoad NameLoad Index NameLoad attr UnaryOpUSub Call AttributeLoad SubscriptLoad NameLoad Index NameLoad attr Num Num Expr Call AttributeLoad NameLoad attr ListLoad Call AttributeLoad SubscriptLoad NameLoad Index NameLoad attr Call AttributeLoad SubscriptLoad NameLoad Index NameLoad attr Num Num Expr Call AttributeLoad NameLoad attr Call AttributeLoad SubscriptLoad NameLoad Index NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad SubscriptLoad NameLoad Index NameLoad attr Assign NameStore Call NameLoad NameLoad keyword AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad keyword AttributeLoad NameLoad attr Assign TupleStore NameStore NameStore NameStore NameStore Call NameLoad NameLoad NameLoad Assign TupleStore NameStore NameStore NameStore NameStore NameLoad Assign NameStore Call NameLoad ListLoad ListLoad NameLoad UnaryOpUSub NameLoad NameLoad ListLoad NameLoad NameLoad NameLoad ListLoad Num Num Num Str If NameLoad body Assign NameStore Call NameLoad AttributeLoad NameLoad attr Call NameLoad NameLoad AttributeLoad NameLoad attr Return Call NameLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad Num body Expr Str If NameLoad body Assign NameStore Call NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore ListLoad Assign NameStore ListLoad For NameStore Call NameLoad Call NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr ListLoad Call AttributeLoad SubscriptLoad NameLoad Index NameLoad attr UnaryOpUSub Call AttributeLoad SubscriptLoad NameLoad Index NameLoad attr Num Num Expr Call AttributeLoad NameLoad attr ListLoad Call AttributeLoad SubscriptLoad NameLoad Index NameLoad attr Call AttributeLoad SubscriptLoad NameLoad Index NameLoad attr Num Num Expr Call AttributeLoad NameLoad attr Call AttributeLoad SubscriptLoad NameLoad Index NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad SubscriptLoad NameLoad Index NameLoad attr Assign NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad NameLoad NameLoad keyword NameLoad keyword Num Assign TupleStore NameStore NameStore NameStore NameStore NameLoad Assign NameStore Call NameLoad ListLoad ListLoad NameLoad UnaryOpUSub NameLoad NameLoad ListLoad NameLoad NameLoad NameLoad ListLoad Num Num Num Str If NameLoad body Assign NameStore Call NameLoad AttributeLoad NameLoad attr Call NameLoad NameLoad AttributeLoad NameLoad attr Return Call NameLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad body Expr Str If NameLoad body Assign NameStore Call NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore ListLoad Assign NameStore ListLoad For NameStore Call NameLoad Call NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr ListLoad Call AttributeLoad SubscriptLoad NameLoad Index NameLoad attr UnaryOpUSub Call AttributeLoad SubscriptLoad NameLoad Index NameLoad attr Num Num Expr Call AttributeLoad NameLoad attr ListLoad Call AttributeLoad SubscriptLoad NameLoad Index NameLoad attr Call AttributeLoad SubscriptLoad NameLoad Index NameLoad attr Num Num Expr Call AttributeLoad NameLoad attr Call AttributeLoad SubscriptLoad NameLoad Index NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad SubscriptLoad NameLoad Index NameLoad attr Assign NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad NameLoad NameLoad Assign TupleStore NameStore NameStore NameStore NameStore NameLoad Assign NameStore Call NameLoad ListLoad ListLoad NameLoad UnaryOpUSub NameLoad NameLoad ListLoad NameLoad NameLoad NameLoad ListLoad Num Num Num Str If NameLoad body Assign NameStore Call NameLoad AttributeLoad NameLoad attr Call NameLoad NameLoad AttributeLoad NameLoad attr Return Call NameLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad body Expr Str Assign NameStore NameLoad Assign TupleStore NameStore NameStore NameLoad If CompareEq NameLoad NameLoad body Assign NameStore NameLoad Assign NameStore Call AttributeLoad NameLoad attr UnaryOpUSub NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr UnaryOpUSub NameLoad NameLoad If NameLoad body Assign NameStore Call AttributeLoad NameLoad attr ListLoad Num Num orelse Assign NameStore Num If NameLoad body Assign NameStore Call AttributeLoad NameLoad attr ListLoad Num Num orelse Assign NameStore Num Assign NameStore Call AttributeLoad NameLoad attr BinOpSub Num NameLoad BinOpAdd Num NameLoad Assign NameStore Call AttributeLoad NameLoad attr UnaryOpUSub NameLoad NameLoad Assign NameStore Call NameLoad BinOpDiv UnaryOpUSub NameLoad Num BinOpDiv UnaryOpUSub NameLoad Num NameLoad Assign NameStore Call NameLoad NameLoad NameLoad NameLoad Assign NameStore Call NameLoad NameLoad NameLoad Assign NameStore Call NameLoad NameLoad NameLoad Assign NameStore Call NameLoad NameLoad NameLoad NameLoad Assign NameStore Call NameLoad BinOpDiv NameLoad Num BinOpDiv NameLoad Num NameLoad Assign NameStore BinOpMult BinOpMult BinOpMult BinOpMult BinOpMult NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad Return NameLoad decorator_list ClassDef bases body Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad body Expr Str Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call NameLoad NameLoad Assign AttributeStore NameLoad attr TupleLoad Call NameLoad SubscriptLoad NameLoad Index Num Call NameLoad SubscriptLoad NameLoad Index Num Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If Call NameLoad NameLoad AttributeLoad NameLoad attr body Return Call AttributeLoad NameLoad attr NameLoad orelse If Call NameLoad NameLoad AttributeLoad NameLoad attr body Return Call AttributeLoad NameLoad attr NameLoad orelse Return Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If Call NameLoad NameLoad AttributeLoad NameLoad attr body Return Call AttributeLoad NameLoad attr NameLoad orelse If Call NameLoad NameLoad AttributeLoad NameLoad attr body Return Call AttributeLoad NameLoad attr NameLoad orelse Return Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Str Return Call AttributeLoad NameLoad attr NameLoad keyword NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad NameLoad body Expr Str Assign NameStore NameLoad If NameLoad body Assign NameStore AttributeLoad NameLoad attr orelse Assign NameStore AttributeLoad NameLoad attr If NameLoad body If Call NameLoad NameLoad Str body Assign NameStore NameLoad For NameStore Call NameLoad Call NameLoad AttributeLoad NameLoad attr body Assign TupleStore NameStore NameStore SubscriptLoad AttributeLoad NameLoad attr Index NameLoad If BoolOpAnd UnaryOpNot NameLoad Call NameLoad body Assign NameStore Call NameLoad Assign NameStore Call AttributeLoad NameLoad attr Num Assign NameStore NameLoad If NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad If NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad If CompareEq Call AttributeLoad NameLoad attr NameLoad body Assign NameStore Call AttributeLoad SubscriptLoad NameLoad ExtSlice Slice Num Slice attr Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr NameLoad NameLoad AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad orelse If CompareEq Call AttributeLoad NameLoad attr NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad SubscriptLoad AttributeLoad NameLoad attr ExtSlice Slice Num Slice Num keyword SubscriptLoad AttributeLoad NameLoad attr ExtSlice Slice Num Index Num Assign NameStore Call NameLoad SubscriptLoad NameLoad ExtSlice Slice SubscriptLoad AttributeLoad NameLoad attr Index Num Slice SubscriptLoad AttributeLoad NameLoad attr Index Num orelse If CompareEq Call AttributeLoad NameLoad attr NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore SubscriptLoad NameLoad ExtSlice Index Num Slice Slice Assign NameStore SubscriptLoad NameLoad ExtSlice Index Num Slice Slice Assign NameStore SubscriptLoad NameLoad ExtSlice Index Num Slice Slice Assign NameStore Call NameLoad NameLoad SubscriptLoad AttributeLoad NameLoad attr ExtSlice Slice Num Slice Num keyword SubscriptLoad AttributeLoad NameLoad attr ExtSlice Slice Num Index Num Assign NameStore Call NameLoad NameLoad SubscriptLoad AttributeLoad NameLoad attr ExtSlice Slice Num Slice Num keyword SubscriptLoad AttributeLoad NameLoad attr ExtSlice Slice Num Index Num Assign NameStore Call NameLoad NameLoad SubscriptLoad AttributeLoad NameLoad attr ExtSlice Slice Num Slice Num keyword SubscriptLoad AttributeLoad NameLoad attr ExtSlice Slice Num Index Num Assign NameStore Call AttributeLoad NameLoad attr ListLoad NameLoad NameLoad NameLoad keyword AttributeLoad NameLoad attr Assign NameStore Call NameLoad SubscriptLoad NameLoad ExtSlice Slice Slice SubscriptLoad AttributeLoad NameLoad attr Index Num Slice SubscriptLoad AttributeLoad NameLoad attr Index Num orelse If CompareEq Call AttributeLoad NameLoad attr NameLoad body Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr TupleLoad SubscriptLoad AttributeLoad NameLoad attr Index Num SubscriptLoad AttributeLoad NameLoad attr Index Num AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad BinOpAdd AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad orelse If CompareEq Call AttributeLoad NameLoad attr NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad orelse If CompareEq Call AttributeLoad NameLoad attr NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad orelse Raise Call NameLoad Str If BoolOpAnd NameLoad Call NameLoad NameLoad Str body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr orelse Assign AttributeStore NameLoad attr ListLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr TupleLoad Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call NameLoad AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Return Call NameLoad keyword SubscriptLoad NameLoad Index TupleLoad Num Num keyword SubscriptLoad NameLoad Index TupleLoad Num Num keyword SubscriptLoad NameLoad Index TupleLoad Num Num decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Return ListComp Call AttributeLoad NameLoad attr NameLoad comprehension NameStore NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call NameLoad AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Return Call NameLoad keyword SubscriptLoad NameLoad Index TupleLoad Num Num keyword SubscriptLoad NameLoad Index TupleLoad Num Num keyword SubscriptLoad NameLoad Index TupleLoad Num Num decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Return ListComp Call AttributeLoad NameLoad attr NameLoad comprehension NameStore NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Return Call NameLoad Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad AttributeLoad NameLoad attr Index Num Str Str Str Assign AttributeStore NameLoad attr Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad BinOpDiv Num Num TupleLoad Num Num Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Call NameLoad Num Num Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Num Assign NameStore Call AttributeLoad NameLoad attr Call NameLoad Num Num Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Num TupleLoad Num Num Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Call NameLoad Num Num Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Num Assign NameStore Call AttributeLoad NameLoad attr Call NameLoad Num Num Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Num Num TupleLoad Num Num Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Call NameLoad Num Num Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Num Assign NameStore Call AttributeLoad NameLoad attr Call NameLoad Num Num Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Call NameLoad Num Num Num Num TupleLoad Num Num Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Call NameLoad Num Num Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Num Assign NameStore Call AttributeLoad NameLoad attr Call NameLoad Num Num Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Pass decorator_list FunctionDef arguments args NameParam defaults body Pass decorator_list FunctionDef arguments args NameParam defaults body Pass decorator_list FunctionDef arguments args NameParam defaults body Pass decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Num Num Num Num TupleLoad Num Num Assign NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad Call AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad Call AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Num Num Num Num TupleLoad Num Num Assign NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad Call AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad Call AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Num Num Num Num TupleLoad Num Num Assign NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad Call AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad Call AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Num Num Num Num TupleLoad Num Num Assign NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad Call AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad Call AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Num decorator_list FunctionDef arguments args NameParam defaults body Pass decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad AttributeLoad NameLoad attr Index Num Str Str Str Assign NameStore Call NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Assign NameStore NameLoad Delete NameDel Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Delete NameDel Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad AttributeLoad NameLoad attr Index Num Str Str Str Assign NameStore Call NameLoad NameLoad Assign TupleStore NameStore NameStore AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad Call NameLoad Num TupleLoad BinOpDiv NameLoad Num BinOpDiv NameLoad Num attr NameLoad Assign NameStore Call AttributeLoad Call NameLoad Num TupleLoad NameLoad NameLoad attr NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Num Num Str Assign NameStore Call AttributeLoad Call NameLoad Num TupleLoad NameLoad NameLoad attr NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Num Num Str Delete NameDel Assign NameStore Call AttributeLoad Call NameLoad Num TupleLoad NameLoad NameLoad attr NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Num Num Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad AttributeLoad NameLoad attr Index Num Str Str Str Assign NameStore NameStore NameStore Call NameLoad NameLoad Assign TupleStore NameStore NameStore AttributeLoad NameLoad attr Assign NameStore Call NameLoad Num TupleLoad BinOpDiv NameLoad Num BinOpDiv NameLoad Num Assign NameStore NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Num Num Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Num Num Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Num Num Str Assign NameStore Call NameLoad Num Num TupleLoad BinOpDiv NameLoad Num BinOpDiv NameLoad Num Assign NameStore BinOpMult NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Num Num Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Num Num Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Num Num Str Assign NameStore Call NameLoad BinOpDiv AttributeLoad NameLoad attr Num TupleLoad BinOpDiv NameLoad Num BinOpDiv NameLoad Num Assign NameStore BinOpMult NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Num Num Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Num Num Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Num Num Str Assign NameStore Call NameLoad Num Num TupleLoad BinOpDiv NameLoad Num BinOpDiv NameLoad Num Assign NameStore BinOpMult NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Num Num Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Num Num Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Num Num Str Assign NameStore Call NameLoad Num TupleLoad NameLoad NameLoad Assign NameStore BinOpMult NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Num Num Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Num Num Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Num Num Str decorator_list decorator_list
N/A N/A 
This module contains the AffineTransform class and a set of factory 
functions used to create AffineTransform instances given different 
sets of parameters.  Most factory functions require information that 
specifies the transformation and a size for the output image.
 N/A unittest N/A os.path N/A math N/A copy N/A weakref N/A N/A PIL.Image AFFINE NEAREST BILINEAR BICUBIC ANTIALIAS N/A N/A N/A Image AFFINE NEAREST BILINEAR BICUBIC ANTIALIAS numpy array dot sqrt numpy.linalg inv solve lstsq scipy.ndimage affine_transform N/A random N/A pyvision N/A pyvision pv N/A numpy np N/A cv N/A cv2 pyvision.types.img Image TYPE_PIL TYPE_MATRIX_2D TYPE_MATRIX_RGB TYPE_OPENCV TYPE_OPENCV2 TYPE_OPENCV2BW pyvision.types.Point Point pyvision.types.Rect Rect pyvision.vector.RANSAC RANSAC LMeDs AffineNormalizePoints N/A N/A points_b N/A N/A N/A 
    Create a transform that centers a set of points_b such that there mean is (0,0)
    and then scale such that there average distance from (0,0) is 1.0
     
    @param points_b: list of link.Point to normalize
    @returns: an AffineTransform object
     N/A mean N/A Point 0 0 N/A count 0 N/A point points_b N/A N/A mean point N/A count 1 N/A mean N/A N/A 1.0 count mean N/A center N/A AffineTranslate N/A N/A N/A mean X N/A N/A N/A mean Y N/A 0 0 N/A points_b N/A N/A center transformPoints points_b N/A mean_dist 0.0 N/A count 0 N/A point points_b N/A N/A N/A x y N/A N/A N/A point X N/A N/A point Y N/A dist N/A sqrt N/A N/A x x N/A y y N/A mean_dist dist N/A count 1 N/A mean_dist N/A N/A 1.0 count mean_dist N/A scale N/A AffineScale N/A 1.0 mean_dist N/A 0 0 N/A points_b N/A N/A scale transformPoints points_b N/A norm N/A scale center N/A norm N/A AffineTranslate N/A N/A dx dy new_size interpolate N/A BILINEAR N/A N/A 
    Create a simple translation transform
    
    @param dx: translation in the x direction
    @param dy: translation in the y direction
    @param new_size: new size for the image
    @param interpolate: PIL interpolate to use    
     N/A matrix N/A array N/A N/A 1 0 dx N/A 0 1 dy N/A 0 0 1 d N/A N/A AffineTransform matrix new_size interpolate N/A AffineScale N/A N/A scale new_size center interpolate N/A None BILINEAR N/A N/A 
    Create a simple scale transform.

    @param scale: the amount to scale the image.
    @param new_size: new size for the image.
    @param interpolate: PIL interpolate to use.
     N/A matrix N/A array N/A N/A scale 0 0 N/A 0 scale 0 N/A 0 0 1 d N/A scale N/A AffineTransform matrix new_size interpolate N/A N/A center None N/A N/A scale N/A N/A N/A N/A N/A AffineTranslate N/A N/A center X N/A N/A center Y new_size scale N/A AffineTranslate N/A N/A N/A center X N/A N/A N/A center Y new_size N/A AffineNonUniformScale N/A N/A sx sy new_size interpolate N/A BILINEAR N/A N/A 
    Create a scale transform with different values for the x and y directions.

    @param sx: scale in the x direction.
    @param sy: scale in the y direction.
    @param new_size: new size for the image.
    @param interpolate: PIL interpolate to use.
     N/A matrix N/A array N/A N/A sx 0 0 N/A 0 sy 0 N/A 0 0 1 d N/A N/A AffineTransform matrix new_size interpolate N/A AffineRotate N/A N/A theta new_size center interpolate N/A None BILINEAR N/A N/A 
    Create a rotation about the origin.
    
    @param theta: the angle to rotate the image in radians.
    @param new_size: new size for the image.
    @param interpolate: PIL interpolate to use.
     N/A matrix N/A array N/A N/A N/A N/A math cos theta N/A N/A N/A math sin theta 0 N/A N/A N/A math sin theta N/A N/A math cos theta 0 N/A 0 0 1 d N/A rotate N/A AffineTransform matrix new_size interpolate N/A N/A center None N/A N/A rotate N/A N/A N/A N/A N/A AffineTranslate N/A N/A center X N/A N/A center Y new_size rotate N/A AffineTranslate N/A N/A N/A center X N/A N/A N/A center Y new_size N/A AffineFromRect N/A N/A rect new_size interpolate N/A BILINEAR N/A N/A  
    Create a transform from a source rectangle to a new image.  This basically 
    crops a rectangle out of the image and rescales it to the new size.
    
    @param rect: the source link.Rect.
    @param new_size: new size for the image.
    @param interpolate: PIL interpolate to use.
     N/A N/A w h new_size N/A x_scale N/A N/A float w N/A rect w N/A y_scale N/A N/A float h N/A rect h N/A x_trans N/A N/A N/A rect x x_scale N/A y_trans N/A N/A N/A rect y y_scale N/A matrix N/A array N/A N/A x_scale 0 x_trans N/A 0 y_scale y_trans N/A 0 0 1 d N/A N/A AffineTransform matrix new_size interpolate N/A AffineFromTile N/A N/A center new_size interpolate N/A BILINEAR N/A N/A 
    Extract an image tile centered on a point.
    
    @param center: the center link.Point of the tile.
    @param new_size: new size for the image.
    @param interpolate: PIL interpolate to use.
     N/A N/A w h new_size N/A rect N/A Rect N/A N/A N/A center X N/A w 2 N/A N/A N/A center Y N/A h 2 w h N/A x_scale N/A N/A float w N/A rect w N/A y_scale N/A N/A float h N/A rect h N/A x_trans N/A N/A N/A rect x x_scale N/A y_trans N/A N/A N/A rect y y_scale N/A matrix N/A array N/A N/A x_scale 0 x_trans N/A 0 y_scale y_trans N/A 0 0 1 d N/A N/A AffineTransform matrix new_size interpolate N/A AffineFromPoints N/A N/A src1 src2 dst1 dst2 new_size interpolate N/A BILINEAR N/A N/A  
    An affine transform that will rotate, translate, and scale to map one 
    set of points_b to the other. For example, to align eye coordinates in face images.
     
    Find a transform (a,b,tx,ty) such that it maps the source points_b to the 
    destination points_b::
     
        a*x1-b*y1+tx = x2
        b*x1+a*y1+ty = y2
     
    The mapping between the two points_b creates a set of  four linear equations 
    with four unknowns. This set of equations is solved to find the transform.
    
    @param src1: the first link.Point in the source image.
    @param src2: the second link.Point in the source image.
    @param dst1: the first link.Point in the destination image.
    @param dst2: the second link.Point in the destination image.
    @param new_size: new size for the image.
    @param interpolate: PIL interpolate to use.
     N/A A N/A N/A N/A N/A src1 X N/A N/A N/A src1 Y 1 0 N/A N/A N/A src1 Y N/A N/A src1 X 0 1 N/A N/A N/A src2 X N/A N/A N/A src2 Y 1 0 N/A N/A N/A src2 Y N/A N/A src2 X 0 1 N/A b N/A N/A N/A dst1 X N/A N/A dst1 Y N/A N/A dst2 X N/A N/A dst2 Y N/A A N/A array A N/A b N/A array b N/A result N/A solve A b N/A N/A a b tx ty result N/A matrix N/A array N/A N/A a N/A b tx N/A b a ty N/A 0 0 1 d N/A N/A AffineTransform matrix new_size interpolate N/A AffineFromPointsLS N/A N/A src dst new_size interpolate normalize N/A BILINEAR True N/A N/A 
     An affine transform that will rotate, translate, and scale to map one 
     set of points_b to the other. For example, to align eye coordinates in face images.
     
     Find a transform (a,b,tx,ty) such that it maps the source points_b to the 
     destination points_b::
     
         a*x1+(-b+c)*y1+tx = x2
         (b+d)*x1+a*y1+ty = y2
     
     This method minimizes the squared error to find an optimal fit between the 
     points_b.
    
     @param src: a list of link.Points in the source image.
     @param dst: a list of link.Points in the destination image.
     @param new_size: new size for the image.
     @param interpolate: PIL interpolate to use.
     N/A normalize N/A N/A src_norm N/A AffineNormalizePoints src N/A src N/A N/A src_norm transformPoints src N/A dst_norm N/A AffineNormalizePoints dst N/A dst N/A N/A dst_norm transformPoints dst N/A A N/A N/A b N/A N/A i N/A range N/A len src N/A N/A N/A N/A A append N/A N/A N/A N/A src N/A i X N/A N/A N/A N/A src N/A i Y 1 0 N/A N/A N/A A append N/A N/A N/A N/A src N/A i Y N/A N/A N/A src N/A i X 0 1 N/A N/A N/A b append N/A N/A N/A dst N/A i X N/A N/A N/A b append N/A N/A N/A dst N/A i Y N/A A N/A array A dtype N/A np float64 N/A b N/A array b dtype N/A np float64 N/A N/A result _ _ _ N/A lstsq A b N/A N/A a b tx ty result N/A matrix N/A array N/A N/A a N/A b tx N/A b a ty N/A 0 0 1 d N/A normalize N/A N/A matrix N/A dot N/A dst_norm inverse N/A dot matrix N/A src_norm matrix N/A N/A AffineTransform matrix new_size interpolate N/A AffineFromPointsRANSAC N/A N/A src dst new_size interpolate normalize tol N/A BILINEAR True 0.15 N/A N/A 
    An affine transform that will rotate, translate, and scale to map one 
    set of points_b to the other. For example, to align eye coordinates in face images.
     
    Find a transform (a,b,tx,ty) such that it maps the source points_b to the 
    destination points_b::
        
        a*x1-b*y1+tx = x2
        b*x1+a*y1+ty = y2
     
    This method minimizes the squared error to find an optimal fit between the 
    points_b.  Instead of a LS solver the RANSAC solver is used to
    produce a transformation that is robust to outliers.
    
    @param src: a list of link.Points in the source image.
    @param dst: a list of link.Points in the destination image.
    @param new_size: new size for the image.
    @param interpolate: PIL interpolate to use.
     N/A normalize N/A N/A src_norm N/A AffineNormalizePoints src N/A src N/A N/A src_norm transformPoints src N/A dst_norm N/A AffineNormalizePoints dst N/A dst N/A N/A dst_norm transformPoints dst N/A A N/A N/A b N/A N/A i N/A range N/A len src N/A N/A N/A N/A A append N/A N/A N/A N/A src N/A i X N/A N/A N/A N/A src N/A i Y 1 0 N/A N/A N/A A append N/A N/A N/A N/A src N/A i Y N/A N/A N/A src N/A i X 0 1 N/A N/A N/A b append N/A N/A N/A dst N/A i X N/A N/A N/A b append N/A N/A N/A dst N/A i Y N/A A N/A array A N/A b N/A array b N/A result N/A RANSAC A b tol tol group 2 N/A N/A a b tx ty result N/A matrix N/A array N/A N/A a N/A b tx N/A b a ty N/A 0 0 1 d N/A normalize N/A N/A matrix N/A dot N/A dst_norm inverse N/A dot matrix N/A src_norm matrix N/A N/A AffineTransform matrix new_size interpolate N/A AffineFromPointsLMeDs N/A N/A src dst new_size interpolate normalize N/A BILINEAR True N/A N/A 
    An affine transform that will rotate, translate, and scale to map one 
    set of points_b to the other. For example, to align eye coordinates in face images.
     
    Find a transform (a,b,tx,ty) such that it maps the source points_b to the 
    destination points_b::
        
        a*x1-b*y1+tx = x2
        b*x1+a*y1+ty = y2
     
    This method minimizes the squared error to find an optimal fit between the 
    points_b.  Instead of a LS solver the RANSAC solver is used to
    produce a transformation that is robust to outliers.
    
    @param src: a list of link.Points in the source image.
    @param dst: a list of link.Points in the destination image.
    @param new_size: new size for the image.
    @param interpolate: PIL interpolate to use.
     N/A normalize N/A N/A src_norm N/A AffineNormalizePoints src N/A src N/A N/A src_norm transformPoints src N/A dst_norm N/A AffineNormalizePoints dst N/A dst N/A N/A dst_norm transformPoints dst N/A A N/A N/A b N/A N/A i N/A range N/A len src N/A N/A N/A N/A A append N/A N/A N/A N/A src N/A i X N/A N/A N/A N/A src N/A i Y 1 0 N/A N/A N/A A append N/A N/A N/A N/A src N/A i Y N/A N/A N/A src N/A i X 0 1 N/A N/A N/A b append N/A N/A N/A dst N/A i X N/A N/A N/A b append N/A N/A N/A dst N/A i Y N/A A N/A array A N/A b N/A array b N/A result N/A LMeDs A b N/A N/A a b tx ty result N/A matrix N/A array N/A N/A a N/A b tx N/A b a ty N/A 0 0 1 d N/A normalize N/A N/A matrix N/A dot N/A dst_norm inverse N/A dot matrix N/A src_norm matrix N/A N/A AffineTransform matrix new_size interpolate N/A AffinePerturb N/A N/A Dscale Drotate Dtranslate new_size mirror flip rng N/A False False None N/A N/A 
    Generates an link.AffineTrasform that slightly perturbs the image.  Primarily 
    to generate more training images. 
    
    The perturbations include small scale, rotation, and translations.  The 
    transform can also mirror the image in the left/right direction or flip the
    top and bottom as other ways to generate synthetic training images.

    @param Dscale: the difference in scale  [1.0+Dscale, 1.0-Dscale].
    @param Drotate: the range of difference in rotation [-Drotate,+Drotate] .
    @param Dtranslate: the range of difference in translation [-Dtranslate,+Dtranslate] .
    @param new_size: new size for the image.
    @param mirror: Include mirror perturbations.
    @param flip: Include flipped perturbations
     N/A tile_size new_size N/A N/A w h tile_size N/A N/A rng None N/A N/A rng random N/A tx N/A N/A rng uniform N/A Dtranslate Dtranslate N/A ty N/A N/A rng uniform N/A Dtranslate Dtranslate N/A mirror N/A N/A sx N/A N/A rng choice N/A -1.0 1.0 N/A N/A sx 1.0 N/A flip N/A N/A sy N/A N/A rng choice N/A -1.0 1.0 N/A N/A sy 1.0 N/A s N/A N/A rng uniform N/A 1 Dscale N/A 1 Dscale N/A r N/A N/A rng uniform N/A Drotate Drotate N/A there N/A AffineTranslate N/A N/A w 2 N/A N/A h 2 tile_size N/A flipflop N/A AffineNonUniformScale sx sy tile_size N/A scale N/A AffineScale s tile_size N/A rotate N/A AffineRotate r tile_size N/A translate N/A AffineTranslate tx ty tile_size N/A back N/A AffineTranslate N/A w 2 N/A h 2 tile_size N/A affine N/A N/A N/A N/A N/A back translate rotate scale flipflop there N/A affine N/A AffineTransform N/A N/A N/A 
    The AffineTransform class is used to transform images and points_b back and
    and forth between different coordinate systems. 
     __init__ N/A N/A self matrix new_size interpolate N/A BILINEAR N/A N/A 
        Constructor for the AffineTransform.  See also the affine transform factories.
        
        @param matrix: a 3-by-3 matrix that defines the transformation.
        @param new_size: the size of any new images created by this affine transform.
        @param interpolate: the image filtering function used for interpolating between pixels.
        @returns: an AffineTransform object
         N/A N/A self matrix matrix N/A N/A self inverse N/A inv matrix N/A N/A self size N/A N/A int N/A new_size N/A 0 N/A int N/A new_size N/A 1 N/A N/A self interpolate interpolate N/A __call__ N/A N/A self data N/A N/A N/A 
        This is a simple interface to transform images or points_b.  Simply
        call the affine transform like a function and it will try to automatically 
        transform the argument.
        
        @param data: an image, point, or list of points_b.
         N/A N/A isinstance data N/A pv Image N/A N/A N/A N/A self transformImage data N/A N/A N/A isinstance data N/A pv Point N/A N/A N/A N/A self transformPoint data N/A N/A N/A N/A self transformPoints data N/A invert N/A N/A self data N/A N/A N/A 
        This is a simple interface to transform images or points_b.  Simply
        call invert with the points_b or list of points_b and it will automatically
        call the correct function.
        
        @param data: an image, point, or list of points_b.
         N/A N/A isinstance data N/A pv Image N/A N/A N/A N/A self invertImage data N/A N/A N/A isinstance data N/A pv Point N/A N/A N/A N/A self invertPoint data N/A N/A N/A N/A self invertPoints data N/A invertImage N/A N/A self im_a use_orig N/A True N/A N/A 
        Perform the inverse affine transformation on the image.
         N/A N/A N/A self transformImage im_a use_orig use_orig inverse True N/A transformImage N/A N/A self im_a use_orig inverse N/A True False N/A N/A  
        Transforms an image into the new coordinate system.
        
        If this image was produced via an affine transform of another image, 
        this method will attempt to trace weak references to the original image 
        and directly compute the new image from that image to improve accuracy.
        To accomplish this a weak reference to the original source image and
        the affine matrix used for the transform are added to any image 
        produced by this method.  This can be disabled using the use_orig 
        parameter.
        
        
        @param im_a: an Image object
        @param use_orig: (True or False) attempts to find and use the original image as the source to avoid an accumulation of errors.
        @returns: the transformed image
         N/A prev_im im_a N/A inverse N/A N/A inverse N/A self matrix N/A N/A inverse N/A self inverse N/A use_orig N/A N/A N/A hasattr prev_im aff_prev N/A N/A found_prev False N/A i N/A range N/A len N/A prev_im aff_prev N/A N/A N/A ref cmat N/A N/A prev_im aff_prev N/A i N/A N/A N/A found_prev N/A ref N/A N/A im_a N/A ref N/A mat N/A N/A np eye 3 N/A found_prev True N/A found_prev N/A N/A mat N/A N/A np dot mat cmat N/A found_prev N/A N/A inverse N/A N/A np dot mat inverse N/A N/A N/A N/A im_a getType TYPE_PIL N/A N/A data N/A N/A N/A inverse N/A N/A 2 N/A flatten N/A pil N/A N/A N/A N/A im_a asPIL transform N/A self size AFFINE data N/A self interpolate N/A result N/A Image pil N/A N/A N/A N/A N/A im_a getType TYPE_MATRIX_2D N/A N/A mat N/A N/A im_a asMatrix2D N/A mat N/A affine_transform mat N/A N/A self inverse N/A N/A 2 N/A 2 offset N/A N/A self inverse N/A N/A 2 N/A 2 N/A result N/A Image N/A mat N/A N/A N/A N/A self size N/A 0 N/A N/A N/A self size N/A 1 N/A N/A N/A N/A N/A im_a getType TYPE_MATRIX_RGB N/A N/A mat N/A N/A im_a asMatrix3D N/A c0 N/A mat N/A N/A 0 N/A N/A N/A c1 N/A mat N/A N/A 1 N/A N/A N/A c2 N/A mat N/A N/A 2 N/A N/A N/A c0 N/A affine_transform c0 N/A N/A self inverse N/A N/A 2 N/A 2 offset N/A N/A self inverse N/A N/A 2 N/A 2 N/A c1 N/A affine_transform c1 N/A N/A self inverse N/A N/A 2 N/A 2 offset N/A N/A self inverse N/A N/A 2 N/A 2 N/A c2 N/A affine_transform c2 N/A N/A self inverse N/A N/A 2 N/A 2 offset N/A N/A self inverse N/A N/A 2 N/A 2 N/A mat N/A N/A np array N/A c0 c1 c2 dtype N/A np float32 N/A result N/A Image N/A mat N/A N/A N/A N/A N/A self size N/A 0 N/A N/A N/A self size N/A 1 N/A N/A N/A N/A N/A im_a getType TYPE_OPENCV N/A N/A matrix N/A N/A pv NumpyToOpenCV N/A self matrix N/A src N/A N/A im_a asOpenCV N/A dst N/A N/A cv CreateImage N/A N/A N/A self size N/A 0 N/A N/A self size N/A 1 N/A cv IPL_DEPTH_8U N/A src nChannels N/A N/A N/A cv WarpPerspective src dst matrix N/A N/A cv CV_INTER_LINEAR N/A cv CV_WARP_FILL_OUTLIERS N/A N/A cv ScalarAll 128 N/A result N/A N/A pv Image dst N/A N/A N/A N/A N/A im_a getType TYPE_OPENCV2 N/A N/A src N/A N/A im_a asOpenCV2 N/A dst N/A N/A cv2 warpPerspective src N/A self matrix N/A self size N/A result N/A N/A pv Image dst N/A N/A N/A N/A N/A im_a getType TYPE_OPENCV2BW N/A N/A src N/A N/A im_a asOpenCV2BW N/A dst N/A N/A cv2 warpPerspective src N/A self matrix N/A self size N/A result N/A N/A pv Image dst N/A N/A N/A NotImplementedError Unhandled image type for affine transform. N/A N/A use_orig N/A hasattr prev_im aff_prev N/A N/A N/A result aff_prev N/A N/A copy copy N/A prev_im aff_prev N/A N/A N/A result aff_prev N/A N/A N/A N/A N/A result aff_prev append N/A N/A N/A weakref ref prev_im N/A self inverse N/A result N/A transformPoint N/A N/A self pt N/A N/A N/A  
        Transform a point from the old image to the new image.
        
        @param pt: the point
        @returns: the new point
         N/A vec N/A dot N/A self matrix N/A N/A pt asVector2H N/A N/A Point x N/A vec N/A N/A 0 0 y N/A vec N/A N/A 1 0 w N/A vec N/A N/A 2 0 N/A transformPoints N/A N/A self pts N/A N/A N/A  
        Transform a set of points_b from the old image to the new image.
        
        @param pts: a list of points_b.
        @returns: a list of transformed points_b.
         N/A N/A N/A N/A self transformPoint pt N/A pt pts N/A invertPoint N/A N/A self pt N/A N/A N/A 
        Transforms a Point from the new coordinate system to
        the old coordinate system.
        
        @param pt: a single point
        @returns: the transformed point
         N/A vec N/A dot N/A self inverse N/A N/A pt asVector2H N/A N/A Point x N/A vec N/A N/A 0 0 y N/A vec N/A N/A 1 0 w N/A vec N/A N/A 2 0 N/A invertPoints N/A N/A self pts N/A N/A N/A 
        Transforms a list of oints from the new coordinate system to
        the old coordinate system.
        
        @param pts: a list of Points
        @returns: the transformed Points
         N/A N/A N/A N/A self invertPoint pt N/A pt pts N/A asMatrix N/A N/A self N/A N/A N/A  
        @returns: the transform as a 3 by 3 matrix 
         N/A N/A self matrix N/A __mul__ N/A N/A self affine N/A N/A N/A 
        Used to concatenate transforms.  For example::

            # This code first scales and then translates
            S = AffineScale(2.0)
            T = AffineTranslate(4,5)
            A = T*S
            new_im = A.transformImage(old_im)

        @returns: a single AffineTransform which is the the same as both affine transforms.
         N/A N/A AffineTransform N/A dot N/A self matrix N/A affine matrix N/A self size N/A self interpolate N/A N/A _AffineTest N/A N/A unittest TestCase N/A setUp N/A N/A self N/A N/A N/A fname N/A N/A N/A os path join N/A N/A pyvision __path__ N/A 0 data nonface NONFACE_13.jpg N/A N/A self test_image N/A Image fname N/A test_rotation N/A N/A self N/A N/A N/A transform N/A AffineRotate N/A 3.14 8 N/A 640 480 N/A _ N/A N/A transform transformImage N/A self test_image N/A pt N/A N/A transform transformPoint N/A Point 320 240 N/A N/A N/A self assertAlmostEqual N/A N/A pt X 203.865944484 N/A N/A N/A self assertAlmostEqual N/A N/A pt Y 344.149207001 N/A pt N/A N/A transform invertPoint N/A Point 320 240 N/A N/A N/A self assertAlmostEqual N/A N/A pt X 387.465703177 N/A N/A N/A self assertAlmostEqual N/A N/A pt Y 99.3495287445 N/A test_scale N/A N/A self N/A N/A N/A transform N/A AffineScale 1.5 N/A 640 480 N/A _ N/A N/A transform transformImage N/A self test_image N/A pt N/A N/A transform transformPoint N/A Point 320 240 N/A N/A N/A self assertAlmostEqual N/A N/A pt X 480.0 N/A N/A N/A self assertAlmostEqual N/A N/A pt Y 360.0 N/A pt N/A N/A transform invertPoint N/A Point 320 240 N/A N/A N/A self assertAlmostEqual N/A N/A pt X 213.333333333 N/A N/A N/A self assertAlmostEqual N/A N/A pt Y 160.0 N/A test_translate N/A N/A self N/A N/A N/A transform N/A AffineTranslate 10.0 15.0 N/A 640 480 N/A _ N/A N/A transform transformImage N/A self test_image N/A pt N/A N/A transform transformPoint N/A Point 320 240 N/A N/A N/A self assertAlmostEqual N/A N/A pt X 330.0 N/A N/A N/A self assertAlmostEqual N/A N/A pt Y 255.0 N/A pt N/A N/A transform invertPoint N/A Point 320 240 N/A N/A N/A self assertAlmostEqual N/A N/A pt X 310.0 N/A N/A N/A self assertAlmostEqual N/A N/A pt Y 225.0 N/A test_from_rect N/A N/A self N/A N/A N/A transform N/A AffineFromRect N/A Rect 100 100 300 300 N/A 100 100 N/A _ N/A N/A transform transformImage N/A self test_image N/A pt N/A N/A transform transformPoint N/A Point 320 240 N/A N/A N/A self assertAlmostEqual N/A N/A pt X 73.3333333333 N/A N/A N/A self assertAlmostEqual N/A N/A pt Y 46.6666666667 N/A pt N/A N/A transform invertPoint N/A Point 50.0 50.0 N/A N/A N/A self assertAlmostEqual N/A N/A pt X 250.0 N/A N/A N/A self assertAlmostEqual N/A N/A pt Y 250.0 N/A test_from_points N/A N/A self N/A N/A N/A N/A test_sim_least_sqr N/A N/A self N/A N/A N/A N/A test_affine_least_sqr N/A N/A self N/A N/A N/A N/A test_affine_mul N/A N/A self N/A N/A N/A N/A test_affine_Matrix2D N/A N/A self N/A N/A N/A im N/A N/A pv Image N/A pv BABOON N/A test_im N/A N/A pv Image N/A N/A im asMatrix2D N/A affine N/A N/A pv AffineFromRect N/A N/A pv CenteredRect 256 256 128 128 N/A 64 64 N/A im N/A affine im N/A test_im N/A affine test_im N/A vec1 N/A N/A pv unit N/A N/A N/A N/A im asMatrix2D flatten N/A vec2 N/A N/A pv unit N/A N/A N/A N/A test_im asMatrix2D flatten N/A score N/A N/A np dot vec1 vec2 N/A N/A N/A self assertGreater score 0.998 N/A test_affine_OpenCV2BW N/A N/A self N/A N/A N/A im N/A N/A pv Image N/A pv BABOON N/A test_im N/A N/A pv Image N/A N/A im asOpenCV2BW N/A affine N/A N/A pv AffineFromRect N/A N/A pv CenteredRect 256 256 128 128 N/A 64 64 N/A im N/A affine im N/A test_im N/A affine test_im N/A vec1 N/A N/A pv unit N/A N/A N/A N/A im asMatrix2D flatten N/A vec2 N/A N/A pv unit N/A N/A N/A N/A test_im asMatrix2D flatten N/A score N/A N/A np dot vec1 vec2 N/A N/A N/A self assertGreater score 0.998 N/A test_affine_OpenCV2 N/A N/A self N/A N/A N/A im N/A N/A pv Image N/A pv BABOON N/A test_im N/A N/A pv Image N/A N/A im asOpenCV2 N/A affine N/A N/A pv AffineFromRect N/A N/A pv CenteredRect 256 256 128 128 N/A 64 64 N/A im N/A affine im N/A test_im N/A affine test_im N/A vec1 N/A N/A pv unit N/A N/A N/A N/A im asMatrix3D flatten N/A vec2 N/A N/A pv unit N/A N/A N/A N/A test_im asMatrix3D flatten N/A score N/A N/A np dot vec1 vec2 N/A N/A N/A self assertGreater score 0.998 N/A test_affine_Matrix3D N/A N/A self N/A N/A N/A im N/A N/A pv Image N/A pv BABOON N/A test_im N/A N/A pv Image N/A N/A im asMatrix3D N/A affine N/A N/A pv AffineFromRect N/A N/A pv CenteredRect 256 256 128 128 N/A 64 64 N/A im N/A affine im N/A test_im N/A affine test_im N/A vec1 N/A N/A pv unit N/A N/A N/A N/A im asMatrix3D flatten N/A vec2 N/A N/A pv unit N/A N/A N/A N/A test_im asMatrix3D flatten N/A score N/A N/A np dot vec1 vec2 N/A N/A N/A self assertGreater score 0.998 N/A test_affine_opencv N/A N/A self N/A N/A N/A N/A test_prev_ref1 N/A N/A self N/A N/A N/A fname N/A N/A N/A os path join N/A N/A pyvision __path__ N/A 0 data nonface NONFACE_13.jpg N/A im_a N/A Image fname N/A ref N/A N/A weakref ref im_a N/A N/A N/A self assertEquals N/A ref im_a N/A tmp im_a N/A im_a N/A N/A N/A self assertEquals N/A ref tmp N/A tmp N/A N/A N/A self assertEquals N/A ref None N/A test_prev_ref2 N/A N/A self N/A N/A N/A fname N/A N/A N/A os path join N/A N/A pyvision __path__ N/A 0 data nonface NONFACE_13.jpg N/A im_a N/A Image fname N/A N/A w h N/A im_a size N/A tmp1 N/A N/A N/A AffineScale 0.1 N/A N/A w 10 N/A h 10 transformImage im_a N/A tmp2 N/A N/A N/A AffineScale 10.0 N/A w h transformImage tmp1 use_orig False N/A N/A N/A tmp2 annotateLabel N/A N/A pv Point 10 10 This image should be blurry. N/A tmp3 N/A N/A N/A AffineScale 10.0 N/A w h transformImage tmp1 use_orig True N/A N/A N/A tmp3 annotateLabel N/A N/A pv Point 10 10 This image should be sharp. N/A im_a N/A tmp4 N/A N/A N/A AffineScale 10.0 N/A w h transformImage tmp1 use_orig True N/A N/A N/A tmp4 annotateLabel N/A N/A pv Point 10 10 This image should be blurry. N/A test_prev_ref3 N/A N/A self N/A N/A N/A fname N/A N/A N/A os path join N/A N/A pv __path__ N/A 0 data nonface NONFACE_13.jpg N/A torig tprev im_a N/A Image fname N/A N/A w h N/A im_a size N/A aff N/A AffineScale 0.5 N/A N/A w 2 N/A h 2 N/A accu aff N/A torig N/A N/A aff transformImage torig N/A tprev N/A N/A aff transformImage tprev use_orig False N/A taccu N/A N/A accu transformImage im_a N/A N/A N/A torig annotateLabel N/A N/A pv Point 10 10 use_orig = True N/A N/A N/A tprev annotateLabel N/A N/A pv Point 10 10 use_orig = False N/A N/A N/A taccu annotateLabel N/A N/A pv Point 10 10 accumulated N/A aff N/A AffineTranslate 20 20 N/A N/A w 2 N/A h 2 N/A accu N/A aff accu N/A torig N/A N/A aff transformImage torig N/A tprev N/A N/A aff transformImage tprev use_orig False N/A taccu N/A N/A accu transformImage im_a N/A N/A N/A torig annotateLabel N/A N/A pv Point 10 10 use_orig = True N/A N/A N/A tprev annotateLabel N/A N/A pv Point 10 10 use_orig = False N/A N/A N/A taccu annotateLabel N/A N/A pv Point 10 10 accumulated N/A aff N/A AffineRotate N/A N/A np pi 4 N/A N/A w 2 N/A h 2 N/A accu N/A aff accu N/A torig N/A N/A aff transformImage torig N/A tprev N/A N/A aff transformImage tprev use_orig False N/A taccu N/A N/A accu transformImage im_a N/A N/A N/A torig annotateLabel N/A N/A pv Point 10 10 use_orig = True N/A N/A N/A tprev annotateLabel N/A N/A pv Point 10 10 use_orig = False N/A N/A N/A taccu annotateLabel N/A N/A pv Point 10 10 accumulated N/A aff N/A AffineTranslate 100 -10 N/A N/A w 2 N/A h 2 N/A accu N/A aff accu N/A torig N/A N/A aff transformImage torig N/A tprev N/A N/A aff transformImage tprev use_orig False N/A taccu N/A N/A accu transformImage im_a N/A N/A N/A torig annotateLabel N/A N/A pv Point 10 10 use_orig = True N/A N/A N/A tprev annotateLabel N/A N/A pv Point 10 10 use_orig = False N/A N/A N/A taccu annotateLabel N/A N/A pv Point 10 10 accumulated N/A aff N/A AffineScale 2.0 N/A w h N/A accu N/A aff accu N/A torig N/A N/A aff transformImage torig N/A tprev N/A N/A aff transformImage tprev use_orig False N/A taccu N/A N/A accu transformImage im_a N/A N/A N/A torig annotateLabel N/A N/A pv Point 10 10 use_orig = True N/A N/A N/A tprev annotateLabel N/A N/A pv Point 10 10 use_orig = False N/A N/A N/A taccu annotateLabel N/A N/A pv Point 10 10 accumulated N/A N/A