Module Expr Str Import alias identifier ImportFrom alias ImportFrom alias alias ImportFrom alias ImportFrom alias Import alias Assign NameStore Str FunctionDef arguments args NameParam defaults vararg body Expr Str Assign NameStore SubscriptLoad NameLoad Index Num Assign NameStore Call NameLoad NameLoad Str NameLoad If UnaryOpNot NameLoad body Assign NameStore Dict Expr Call NameLoad NameLoad Str NameLoad If UnaryOpNot Call AttributeLoad NameLoad attr NameLoad body Assign SubscriptStore NameLoad Index NameLoad Dict If UnaryOpNot Call AttributeLoad SubscriptLoad NameLoad Index NameLoad attr SubscriptLoad NameLoad Slice Num body Assign SubscriptStore SubscriptLoad NameLoad Index NameLoad Index SubscriptLoad NameLoad Slice Num Call NameLoad NameLoad Return SubscriptLoad SubscriptLoad NameLoad Index NameLoad Index SubscriptLoad NameLoad Slice Num decorator_list AttributeLoad NameLoad attr ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assert Call NameLoad AttributeLoad NameLoad attr NameLoad Str Assign TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assert CompareEq Call NameLoad NameLoad Num Str Assert Call AttributeLoad NameLoad attr CompareEq Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Slice Num Num Num Str Return Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Slice Num decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr TupleLoad Num Num Num Num SubscriptLoad AttributeLoad NameLoad attr Index Num SubscriptLoad AttributeLoad NameLoad attr Index Num Assign AttributeStore NameLoad attr Call NameLoad keyword NameLoad If Call NameLoad NameLoad Str NameLoad body Assign AttributeStore NameLoad attr Dict decorator_list Assign NameStore Call NameLoad NameLoad NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Str ImportFrom alias Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr TupleLoad SubscriptLoad NameLoad ExtSlice Slice Index Num SubscriptLoad NameLoad ExtSlice Slice Index Num SubscriptLoad NameLoad ExtSlice Slice Index Num ListLoad TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num If CompareIsNot NameLoad NameLoad body Assign NameStore TupleLoad Num Num Num SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num Assign AttributeStore NameLoad attr Call NameLoad keyword NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str ImportFrom alias Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Return Call AttributeLoad NameLoad attr ListComp SubscriptLoad NameLoad Index NameLoad comprehension NameStore TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list Assign NameStore Call NameLoad NameLoad NameLoad FunctionDef arguments args NameParam defaults body Expr Str Return SubscriptLoad Call AttributeLoad AttributeLoad NameLoad attr attr Slice Num decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str Assign TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Return ListComp TupleLoad SubscriptLoad NameLoad Index TupleLoad NameLoad Num Num Num SubscriptLoad NameLoad Index NameLoad comprehension NameStore Call NameLoad SubscriptLoad AttributeLoad NameLoad attr Index Num decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return CompareIsNot AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str If CompareIsNot AttributeLoad NameLoad attr NameLoad body Assign TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Return SubscriptLoad NameLoad Index TupleLoad Num Num Num Num Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad Call NameLoad NameLoad attr TupleLoad Num Num Num Num SubscriptLoad AttributeLoad NameLoad attr Index Num SubscriptLoad AttributeLoad NameLoad attr Index Num Assign AttributeStore NameLoad attr Call NameLoad keyword NameLoad decorator_list Assign NameStore Call NameLoad NameLoad NameLoad FunctionDef arguments args NameParam defaults body Expr Str Return CompareIsNot AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str If CompareIsNot AttributeLoad NameLoad attr NameLoad body Assign TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Return SubscriptLoad NameLoad Index TupleLoad Num Num Num Num Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad Call NameLoad NameLoad attr TupleLoad Num Num Num Num SubscriptLoad AttributeLoad NameLoad attr Index Num SubscriptLoad AttributeLoad NameLoad attr Index Num Assign AttributeStore NameLoad attr Call NameLoad keyword NameLoad decorator_list Assign NameStore Call NameLoad NameLoad NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str For TupleStore NameStore NameStore TupleLoad TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr body If CompareIsNot NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad For NameStore TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr body If BoolOpAnd CompareIsNot NameLoad NameLoad UnaryOpNot Call AttributeLoad NameLoad attr body Assign NameStore TupleLoad Num Num Num SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index Num SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index Num Expr Call AttributeLoad NameLoad attr NameLoad decorator_list Assign NameStore Call NameLoad NameLoad NameLoad FunctionDef arguments args NameParam defaults body Expr Str Return CompareIsNot AttributeLoad NameLoad attr NameLoad decorator_list Assign NameStore Call NameLoad NameLoad FunctionDef arguments args NameParam NameParam defaults body Expr Str If CompareEq AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr body Return NameLoad If CompareIs AttributeLoad NameLoad attr NameLoad body Raise Call NameLoad Str Return Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore ListComp TupleLoad Call NameLoad NameLoad NameLoad comprehension TupleStore NameStore NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr BinOpAdd Call NameLoad AttributeLoad SubscriptLoad SubscriptLoad NameLoad Index Num Index Num attr ListLoad Num AttributeLoad NameLoad attr Assign NameStore ListComp Call AttributeLoad NameLoad attr CompareNotEq Call AttributeLoad NameLoad attr NameLoad Num comprehension TupleStore NameStore NameStore NameLoad If BoolOpAnd CompareEq Call NameLoad NameLoad Num CompareEq SubscriptLoad NameLoad Index Num Num body Return NameLoad If CompareLt Call NameLoad NameLoad Call NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr BinOpMult ListLoad NameLoad BinOpAdd Num BinOpDiv Call NameLoad NameLoad Call NameLoad NameLoad Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad SubscriptLoad SubscriptLoad NameLoad Index Num Index Num attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr ListLoad NameLoad Assign NameStore ListLoad For TupleStore NameStore NameStore Call NameLoad NameLoad body Assign NameStore BinOpDiv Call NameLoad NameLoad BinOpSub Call NameLoad NameLoad NameLoad Assign NameStore Call NameLoad SubscriptLoad NameLoad Index NameLoad NameLoad Assign NameStore SubscriptLoad NameLoad Slice NameLoad Assign NameStore SubscriptLoad NameLoad Slice NameLoad Assign NameStore SubscriptLoad NameLoad Index Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Assign TupleStore NameStore NameStore SubscriptLoad NameLoad Index NameLoad Assign NameStore Call AttributeLoad NameLoad attr BinOpAdd Call AttributeLoad NameLoad attr NameLoad Num NameLoad Assign SubscriptStore NameLoad Index NameLoad BinOpMod Call AttributeLoad NameLoad attr Call NameLoad NameLoad NameLoad AugAssignAdd SubscriptStore NameLoad ExtSlice Index CompareNotEq NameLoad Num Slice SubscriptLoad NameLoad ExtSlice Index SubscriptLoad NameLoad Index SubscriptLoad NameLoad Index CompareNotEq NameLoad Num Slice AugAssignAdd SubscriptStore NameLoad Index CompareNotEq NameLoad Num Num AugAssignDiv SubscriptStore NameLoad ExtSlice Index CompareGt NameLoad Num Slice SubscriptLoad SubscriptLoad NameLoad Index CompareGt NameLoad Num ExtSlice Slice Index AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Return Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Return Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore BinOpSub SubscriptLoad AttributeLoad NameLoad attr Index Num Num Assign NameStore BinOpSub SubscriptLoad AttributeLoad NameLoad attr Index Num Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword Num Assign NameStore SubscriptLoad SubscriptLoad Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Slice Num Call AttributeLoad NameLoad attr BinOpAdd NameLoad Num Index Num Slice Num Return TupleLoad NameLoad SubscriptLoad NameLoad Slice Num decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore SubscriptLoad NameLoad ExtSlice Slice Num SubscriptLoad NameLoad Index Num Slice Num SubscriptLoad NameLoad Index Num Assign NameStore SubscriptLoad NameLoad ExtSlice Slice Num SubscriptLoad NameLoad Index Num Slice Num SubscriptLoad NameLoad Index Num Assign NameStore BinOpBitAnd CompareGt NameLoad Num CompareGt NameLoad Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad Return Call AttributeLoad Call NameLoad TupleLoad Call AttributeLoad NameLoad attr TupleLoad NameLoad TupleLoad SubscriptLoad NameLoad Index NameLoad SubscriptLoad NameLoad Index NameLoad keyword TupleLoad BinOpAdd NameLoad Num BinOpAdd NameLoad Num attr decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore IfExp CompareEq SubscriptLoad AttributeLoad NameLoad attr Index Num Num Num Call AttributeLoad NameLoad attr SubscriptLoad NameLoad ExtSlice Slice Index Num Assign NameStore IfExp CompareEq SubscriptLoad AttributeLoad NameLoad attr Index Num Num Num Call AttributeLoad NameLoad attr SubscriptLoad NameLoad ExtSlice Slice Index Num If BoolOpOr CompareEq NameLoad Num CompareEq NameLoad Num body Return Call AttributeLoad NameLoad attr TupleLoad BinOpAdd NameLoad Num BinOpAdd NameLoad Num NameLoad Assign NameStore BinOpAdd Call NameLoad Call AttributeLoad NameLoad attr SubscriptLoad NameLoad ExtSlice Slice Index Num Call AttributeLoad NameLoad attr SubscriptLoad NameLoad ExtSlice Slice Index Num Num Assign NameStore BinOpAdd Call NameLoad Call AttributeLoad NameLoad attr SubscriptLoad NameLoad ExtSlice Slice Index Num Call AttributeLoad NameLoad attr SubscriptLoad NameLoad ExtSlice Slice Index Num Num Assign NameStore BinOpAdd SubscriptLoad NameLoad ExtSlice Slice Index Num BinOpMult NameLoad Call AttributeLoad SubscriptLoad NameLoad ExtSlice Slice Index Num attr AttributeLoad NameLoad attr Assign NameStore BinOpAdd SubscriptLoad NameLoad ExtSlice Slice Index Num BinOpMult NameLoad Call AttributeLoad SubscriptLoad NameLoad ExtSlice Slice Index Num attr AttributeLoad NameLoad attr Assign NameStore Call NameLoad TupleLoad Call AttributeLoad NameLoad attr TupleLoad SubscriptLoad AttributeLoad NameLoad attr Index Num TupleLoad SubscriptLoad NameLoad ExtSlice Slice Index Num NameLoad keyword TupleLoad BinOpAdd NameLoad Num BinOpMult NameLoad NameLoad Assign NameStore Call NameLoad TupleLoad Call AttributeLoad NameLoad attr TupleLoad SubscriptLoad AttributeLoad NameLoad attr Index Num TupleLoad NameLoad SubscriptLoad NameLoad ExtSlice Slice Index Num keyword TupleLoad BinOpMult NameLoad NameLoad BinOpAdd NameLoad Num Return Call AttributeLoad BinOpMult Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str If CompareEq Call NameLoad AttributeLoad NameLoad attr Num body Return Call AttributeLoad NameLoad attr Num AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr ExtSlice Slice Index Num Return BinOpAdd Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad attr AttributeLoad NameLoad attr Num decorator_list NameLoad Assign NameStore Call NameLoad NameLoad FunctionDef arguments args NameParam defaults body Expr Str Return Call NameLoad AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str If CompareEq Call NameLoad AttributeLoad NameLoad attr Num body Return Call AttributeLoad NameLoad attr Num NameLoad Return SubscriptLoad Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr ExtSlice Slice Index Num Index AttributeLoad NameLoad attr decorator_list NameLoad Assign NameStore Call NameLoad NameLoad FunctionDef arguments args NameParam NameParam defaults body Expr Str Return Call NameLoad AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults body Expr Str Return Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults body Expr Str Return Call NameLoad Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Return Call NameLoad NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list NameLoad decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore Str Assign NameStore Str Assign NameStore Str FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad body Expr Str Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad If CompareIsNot NameLoad NameLoad body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad orelse Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad If CompareIsNot NameLoad NameLoad body Assign AttributeStore NameLoad attr ListComp Call AttributeLoad NameLoad attr NameLoad comprehension NameStore NameLoad Assign AttributeStore NameLoad attr ListComp IfExp CompareEq SubscriptLoad NameLoad Index Num Num SubscriptLoad NameLoad Slice Num NameLoad comprehension NameStore AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Str If CompareIsNot AttributeLoad NameLoad attr NameLoad body Return Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad If CompareIsNot AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad AttributeLoad NameLoad attr If CompareIsNot AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str If CompareIsNot AttributeLoad NameLoad attr NameLoad body Return AttributeLoad NameLoad attr If Call AttributeLoad NameLoad attr body Assign AttributeStore NameLoad attr SubscriptLoad AttributeLoad SubscriptLoad Call AttributeLoad NameLoad attr Index Num attr Slice Num orelse Assign NameStore Call AttributeLoad NameLoad attr If CompareEq Call NameLoad NameLoad Num body Assign AttributeStore NameLoad attr TupleLoad Num Num Num Num Num orelse ImportFrom alias Assign AttributeStore NameLoad attr Call NameLoad ListComp IfExp CompareIn NameLoad Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr BinOpAdd Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index NameLoad Num Num comprehension NameStore AttributeLoad NameLoad attr Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list Assign NameStore Call NameLoad NameLoad NameLoad FunctionDef arguments args NameParam defaults body Return BoolOpOr CompareIsNot AttributeLoad NameLoad attr NameLoad BoolOpAnd CompareIsNot AttributeLoad NameLoad attr NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Return BoolOpOr CompareIsNot AttributeLoad NameLoad attr NameLoad BoolOpAnd CompareIsNot AttributeLoad NameLoad attr NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body If AttributeLoad NameLoad attr body Return NameLoad Return Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str If CompareIsNot AttributeLoad NameLoad attr NameLoad body Return AttributeLoad NameLoad attr If BoolOpAnd CompareIsNot AttributeLoad NameLoad attr NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Return Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr If UnaryOpNot Call AttributeLoad NameLoad attr body Raise Call NameLoad BinOpMod Str TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Return Call AttributeLoad NameLoad attr decorator_list Assign NameStore Call NameLoad NameLoad FunctionDef arguments args NameParam defaults body Expr Str If CompareIsNot AttributeLoad NameLoad attr NameLoad body Return TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr If BoolOpAnd CompareIsNot AttributeLoad NameLoad attr NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Return TupleLoad Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr If UnaryOpNot Call AttributeLoad NameLoad attr body Raise Call NameLoad BinOpMod Str TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Return Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr ImportFrom alias Assign NameStore Call NameLoad AttributeLoad NameLoad attr Assign TupleStore NameStore NameStore ListComp ListComp NameLoad comprehension TupleStore NameStore NameStore Call NameLoad NameLoad AttributeLoad NameLoad attr CompareGt NameLoad Num comprehension NameStore TupleLoad NameLoad AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr BinOpAdd ListLoad SubscriptLoad AttributeLoad NameLoad attr Index Num NameLoad Assign NameStore Call AttributeLoad NameLoad attr CompareNotEq NameLoad Num Assign TupleStore NameStore NameStore TupleLoad SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Slice Num If CompareLt Call AttributeLoad NameLoad attr NameLoad BinOpPow Num Num body Assign NameStore AttributeLoad NameLoad attr orelse Assign NameStore AttributeLoad NameLoad attr If CompareGt Call NameLoad NameLoad Num body Assign NameStore SubscriptLoad NameLoad Index Call NameLoad BinOpAdd ListLoad NameLoad Call NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad If CompareLt NameLoad BinOpPow Num Num body Assign NameStore AttributeLoad NameLoad attr orelse If CompareLt NameLoad BinOpPow Num Num body Assign NameStore AttributeLoad NameLoad attr orelse Assign NameStore AttributeLoad NameLoad attr orelse Assign NameStore Call AttributeLoad NameLoad attr Num AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore ListComp TupleLoad NameLoad NameLoad Num comprehension NameStore NameLoad Expr Call AttributeLoad NameLoad attr TupleLoad AttributeLoad NameLoad attr NameLoad Num Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr BinOpAdd Call NameLoad NameLoad ListLoad NameLoad keyword NameLoad If CompareIsNot AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad orelse Assign AttributeStore NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body If CompareIsNot AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad orelse Assign AttributeStore NameLoad attr NameLoad If CompareIsNot NameLoad NameLoad body Assign AttributeStore NameLoad attr NameLoad orelse Assign AttributeStore NameLoad attr ListComp Call AttributeLoad NameLoad attr NameLoad comprehension NameStore NameLoad Assign AttributeStore NameLoad attr ListComp IfExp CompareEq SubscriptLoad NameLoad Index Num Num SubscriptLoad NameLoad Slice Num NameLoad comprehension NameStore AttributeLoad NameLoad attr Return TupleLoad NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body ImportFrom alias Assign NameStore Call AttributeLoad NameLoad attr If CompareEq Call NameLoad NameLoad Num body Return Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr BinOpAdd ListLoad Num Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore ListLoad Assign NameStore ListLoad Assign NameStore ListLoad For NameStore AttributeLoad NameLoad attr body If CompareIn NameLoad Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr body Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index NameLoad Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index NameLoad Expr Call AttributeLoad NameLoad attr Num SubscriptLoad NameLoad Index NameLoad orelse Expr Call AttributeLoad NameLoad attr Num Assign NameStore SubscriptLoad NameLoad Index AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Num NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore CompareNotEq SubscriptLoad SubscriptLoad NameLoad Index Num Index SubscriptLoad NameLoad Slice Num SubscriptLoad SubscriptLoad NameLoad Index Num Index SubscriptLoad NameLoad Slice Num For NameStore SubscriptLoad NameLoad Slice Num body Assign NameStore BinOpBitOr NameLoad CompareNotEq SubscriptLoad NameLoad Index SubscriptLoad NameLoad Slice Num SubscriptLoad NameLoad Index SubscriptLoad NameLoad Slice Num Assign NameStore Call AttributeLoad NameLoad attr TupleLoad ListLoad Num BinOpAdd SubscriptLoad Call AttributeLoad NameLoad attr NameLoad Index Num Num ListLoad Call NameLoad NameLoad Assign NameStore SubscriptLoad NameLoad Slice Num Assign NameStore BinOpSub SubscriptLoad NameLoad Slice Num NameLoad Assign NameStore Call NameLoad NameLoad Assign NameStore CompareGt NameLoad Num Assign NameStore SubscriptLoad NameLoad Index NameLoad Assign NameStore SubscriptLoad NameLoad Index NameLoad If CompareEq Call NameLoad NameLoad Num body Assign NameStore Call AttributeLoad NameLoad attr BinOpAdd ListLoad Num Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign SubscriptStore NameLoad Index BinOpAdd ListLoad Num NameLoad NameLoad Return Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr NameLoad Assign NameStore BinOpMult NameLoad BinOpSub NameLoad Num Assign NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad NameLoad Assign NameStore SubscriptLoad NameLoad Index AttributeLoad NameLoad attr Assign NameStore SubscriptLoad NameLoad ExtSlice Index SubscriptLoad AttributeLoad NameLoad attr Index Num Slice Assign NameStore SubscriptLoad NameLoad Index SubscriptLoad NameLoad Index BinOpAdd NameLoad SubscriptLoad NameLoad ExtSlice Slice Index Num Assign NameStore SubscriptLoad NameLoad Index SubscriptLoad NameLoad Index BinOpAdd NameLoad SubscriptLoad NameLoad ExtSlice Slice Index Num Assign NameStore Call AttributeLoad NameLoad attr TupleLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr TupleLoad ListLoad NameLoad BinOpBitOr CompareNotEq SubscriptLoad NameLoad Slice Num SubscriptLoad NameLoad Slice Num CompareNotEq SubscriptLoad NameLoad Slice Num SubscriptLoad NameLoad Slice Num Assign NameStore BinOpBitAnd NameLoad CompareNotEq NameLoad NameLoad Assign NameStore SubscriptLoad NameLoad Index NameLoad Assign NameStore SubscriptLoad NameLoad Index NameLoad Assign NameStore SubscriptLoad NameLoad Index NameLoad Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore BinOpSub Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr BinOpAdd NameLoad Num NameLoad Assign SubscriptStore NameLoad Index Num Num Assign SubscriptStore NameLoad Index Call AttributeLoad NameLoad attr NameLoad Num Assign NameStore SubscriptLoad Call AttributeLoad NameLoad attr CompareGt NameLoad Num Index Num Assign NameStore Call AttributeLoad NameLoad attr TupleLoad NameLoad SubscriptLoad NameLoad Index NameLoad For NameStore SubscriptLoad NameLoad Index NameLoad body Assign NameStore SubscriptLoad NameLoad Slice SubscriptLoad NameLoad Index NameLoad BinOpAdd SubscriptLoad NameLoad Index NameLoad SubscriptLoad NameLoad Index NameLoad Assign NameStore Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index NameLoad If CompareEq SubscriptLoad NameLoad Index Num Num body If CompareEq Call NameLoad NameLoad Num body Assign SubscriptStore NameLoad Index NameLoad Num Continue orelse Assign NameStore SubscriptLoad NameLoad Slice Num Assign NameStore Call AttributeLoad NameLoad attr Num BinOpAdd Call NameLoad NameLoad Num Assign NameStore SubscriptLoad NameLoad Index CompareNotEq NameLoad NameLoad If Call NameLoad NameLoad body Assign NameStore SubscriptLoad NameLoad Index Num orelse Assign NameStore BinOpAdd Call NameLoad NameLoad Num Assign NameStore NameLoad Assign SubscriptStore NameLoad Index NameLoad NameLoad Assign NameStore ListLoad Assign NameStore Call AttributeLoad NameLoad attr BinOpAdd ListLoad Call AttributeLoad NameLoad attr NameLoad Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call NameLoad BinOpAdd ListLoad BinOpSub SubscriptLoad NameLoad Index NameLoad Num NameLoad Assign SubscriptStore NameLoad Index NameLoad NameLoad Assign NameStore ListComp SubscriptLoad Call AttributeLoad NameLoad attr CompareEq NameLoad NameLoad Index Num comprehension NameStore Call NameLoad Num BinOpAdd SubscriptLoad AttributeLoad NameLoad attr Index Num Num Return Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assert BoolOpOr CompareIs NameLoad NameLoad Call AttributeLoad NameLoad attr CompareGtE NameLoad Num Assert BoolOpOr CompareIs NameLoad NameLoad Call AttributeLoad NameLoad attr CompareGtE NameLoad Num Assert BoolOpOr CompareIs NameLoad NameLoad Call AttributeLoad NameLoad attr CompareGtE NameLoad Num Assert BoolOpOr CompareIs NameLoad NameLoad CompareEq AttributeLoad NameLoad attr Num BinOpMod Str AttributeLoad NameLoad attr Assert BoolOpOr CompareIs NameLoad NameLoad CompareEq AttributeLoad NameLoad attr Num BinOpMod Str AttributeLoad NameLoad attr Assert BoolOpOr CompareIs NameLoad NameLoad CompareEq AttributeLoad NameLoad attr Num BinOpMod Str AttributeLoad NameLoad attr Assert BoolOpOr CompareIs NameLoad NameLoad CompareIs NameLoad NameLoad CompareEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr BinOpMod Str TupleLoad Call NameLoad AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr Assert BoolOpOr CompareIs NameLoad NameLoad CompareIs NameLoad NameLoad CompareEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr BinOpMod Str TupleLoad Call NameLoad AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Dict NameLoad Dict decorator_list FunctionDef arguments args NameParam defaults body Return SubscriptLoad AttributeLoad NameLoad attr Index NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults body Assert Call NameLoad NameLoad NameLoad Str Assert BoolOpOr UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad AttributeLoad NameLoad attr BinOpMod Str NameLoad Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list Assign NameStore Call NameLoad NameLoad FunctionDef arguments args NameParam NameParam defaults body Expr Str Return SubscriptLoad AttributeLoad NameLoad attr Index NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list Assign NameStore Call NameLoad NameLoad FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Str If CompareNotIn NameLoad AttributeLoad NameLoad attr body Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad Dict Assign SubscriptStore SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Index NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str If BoolOpOr CompareNotIn NameLoad AttributeLoad NameLoad attr CompareNotIn NameLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad body Return NameLoad Return SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Index NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str For NameStore Call AttributeLoad NameLoad attr body Expr Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad attr NameLoad NameLoad decorator_list decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad If CompareLt NameLoad Num body Return Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr orelse If CompareLt NameLoad Num body Return Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Return Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call NameLoad SubscriptLoad AttributeLoad NameLoad attr Index Num SubscriptLoad AttributeLoad NameLoad attr Index Num Assign NameStore Call NameLoad SubscriptLoad AttributeLoad NameLoad attr Index Num SubscriptLoad AttributeLoad NameLoad attr Index Num If CompareEq AttributeLoad NameLoad attr Num body Return TupleLoad SubscriptLoad NameLoad ExtSlice Slice NameLoad Slice NameLoad SubscriptLoad NameLoad ExtSlice Slice NameLoad Slice NameLoad orelse Return TupleLoad SubscriptLoad NameLoad ExtSlice Slice NameLoad Slice NameLoad SubscriptLoad NameLoad ExtSlice Slice NameLoad Slice NameLoad Slice decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If CompareEq SubscriptLoad AttributeLoad NameLoad attr Slice Num SubscriptLoad AttributeLoad NameLoad attr Slice Num body Return TupleLoad NameLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad If BoolOpAnd CompareLtE SubscriptLoad AttributeLoad NameLoad attr Index Num SubscriptLoad AttributeLoad NameLoad attr Index Num CompareLtE SubscriptLoad AttributeLoad NameLoad attr Index Num SubscriptLoad AttributeLoad NameLoad attr Index Num body If CompareEq AttributeLoad NameLoad attr Num body Return TupleLoad SubscriptLoad NameLoad ExtSlice Slice SubscriptLoad AttributeLoad NameLoad attr Index Num Slice SubscriptLoad AttributeLoad NameLoad attr Index Num Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad orelse Return TupleLoad SubscriptLoad NameLoad ExtSlice Slice SubscriptLoad AttributeLoad NameLoad attr Index Num Slice SubscriptLoad AttributeLoad NameLoad attr Index Num Slice Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr BinOpAdd Call NameLoad AttributeLoad NameLoad attr Call NameLoad SubscriptLoad AttributeLoad NameLoad attr Slice Num AttributeLoad NameLoad attr Assign NameStore Call NameLoad SubscriptLoad AttributeLoad NameLoad attr Index Num SubscriptLoad AttributeLoad NameLoad attr Index Num Assign NameStore Call NameLoad SubscriptLoad AttributeLoad NameLoad attr Index Num SubscriptLoad AttributeLoad NameLoad attr Index Num If CompareEq AttributeLoad NameLoad attr Num body Assign SubscriptStore NameLoad ExtSlice Slice NameLoad Slice NameLoad SubscriptLoad NameLoad ExtSlice Slice NameLoad Slice NameLoad orelse Assign SubscriptStore NameLoad ExtSlice Slice NameLoad Slice NameLoad Slice SubscriptLoad NameLoad ExtSlice Slice NameLoad Slice NameLoad Slice Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Assign SubscriptStore NameLoad ExtSlice Slice NameLoad Slice NameLoad Num Return TupleLoad NameLoad NameLoad decorator_list
N/A N/A  CellProfiler.Objects.py - represents a labelling of objects in an image
 N/A numpy np centrosome.cpmorphology all_connected_components centrosome.index Indexes all_pairs centrosome.outline outline scipy.sparse coo_matrix N/A decorator N/A OBJECT_TYPE_NAME objects memoize_method N/A N/A function N/A args N/A N/A Cache the result of a method in that class's dictionary

    The dictionary is indexed by function name and the values of that
    dictionary are themselves dictionaries with args[1:] as the keys
    and the result of applying function to args[1:] as the values.
     N/A sself N/A args N/A 0 N/A d N/A getattr sself memoize_method_dictionary False N/A N/A d N/A N/A d N/A N/A N/A setattr sself memoize_method_dictionary d N/A N/A N/A N/A d has_key function N/A N/A N/A d N/A function N/A N/A N/A N/A N/A N/A d N/A function has_key N/A args N/A 1 N/A N/A N/A N/A d N/A function N/A N/A args N/A 1 N/A function args N/A N/A N/A d N/A function N/A N/A args N/A 1 N/A N/A decorator decorator Objects N/A object N/A N/A Represents a segmentation of an image.

    IdentityPrimAutomatic produces three variants of its segmentation
    result. This object contains all three.

    There are three formats for segmentation, two of which support
    overlapping objects:

    get/set_segmented - legacy, a single plane of labels that does not
                        support overlapping objects
    get/set_labels - supports overlapping objects, returns one or more planes
                     along with indices. A typical usage is to perform an
                     operation per-plane as if the objects did not overlap.
    get/set_ijv    - supports overlapping objects, returns a sparse
                     representation in which the first two columns are the
                     coordinates and the last is the object number. This
                     is efficient for doing things like calculating intensity
                     per-object.

    You can set one of the types and then get any of the types (except that
    get_segmented will raise an exception if objects overlap).
     __init__ N/A N/A self N/A N/A N/A N/A self __segmented None N/A N/A self __unedited_segmented None N/A N/A self __small_removed_segmented None N/A N/A self __parent_image None N/A get_segmented N/A N/A self N/A N/A N/A Get the de-facto segmentation of the image into objects: a matrix
        of object numbers.
         N/A N/A isinstance N/A self __segmented Segmentation Operation failed because objects were not initialized N/A N/A dense indices N/A N/A N/A self __segmented get_dense N/A N/A N/A len dense 1 Operation failed because objects overlapped. Please try with non-overlapping objects N/A N/A N/A np all N/A N/A N/A np array N/A N/A dense shape N/A 1 -2 1 Operation failed because the segmentation was not 2D N/A N/A N/A dense reshape N/A N/A dense shape N/A -2 N/A set_segmented N/A N/A self labels N/A N/A N/A dense N/A downsample_labels labels N/A dense N/A N/A dense reshape N/A 1 1 1 1 N/A N/A dense shape N/A 0 N/A N/A dense shape N/A 1 N/A N/A self __segmented N/A Segmentation dense dense N/A N/A getattr self memoize_method_dictionary False N/A N/A N/A self memoize_method_dictionary N/A N/A N/A segmented N/A property get_segmented set_segmented set_ijv N/A N/A self ijv shape N/A None N/A N/A Set the segmentation to an IJV object format

        The ijv format is a list of i,j coordinates in slots 0 and 1
        and the label at the pixel in slot 2.
         cellprofiler.utilities.hdf5_dict HDF5ObjectSet N/A sparse N/A N/A N/A N/A np core records fromarrays N/A N/A ijv N/A N/A N/A 0 N/A ijv N/A N/A N/A 1 N/A ijv N/A N/A N/A 2 N/A N/A N/A HDF5ObjectSet AXIS_Y N/A ijv dtype 1 N/A N/A HDF5ObjectSet AXIS_X N/A ijv dtype 1 N/A N/A HDF5ObjectSet AXIS_LABELS N/A ijv dtype 1 N/A N/A shape None N/A N/A shape N/A 1 1 1 N/A shape N/A 0 N/A shape N/A 1 N/A N/A self __segmented N/A Segmentation sparse sparse shape shape N/A get_ijv N/A N/A self N/A N/A N/A Get the segmentation in IJV object format

        The ijv format is a list of i,j coordinates in slots 0 and 1
        and the label at the pixel in slot 2.
         cellprofiler.utilities.hdf5_dict HDF5ObjectSet N/A sparse N/A N/A N/A self __segmented get_sparse N/A N/A N/A np column_stack N/A N/A sparse N/A axis N/A axis N/A N/A HDF5ObjectSet AXIS_Y N/A HDF5ObjectSet AXIS_X N/A HDF5ObjectSet AXIS_LABELS N/A N/A ijv N/A property get_ijv set_ijv shape N/A N/A self N/A N/A N/A The i and j extents of the labels N/A N/A N/A N/A N/A self __segmented get_shape N/A -2 N/A property get_labels N/A N/A self shape N/A None N/A N/A Get a set of labels matrices consisting of non-overlapping labels

        In IJV format, a single pixel might have multiple labels. If you
        want to use a labels matrix, you have an ambiguous situation and the
        resolution is to process separate labels matrices consisting of
        non-overlapping labels.

        returns a list of label matrixes and the indexes in each
         N/A N/A dense indices N/A N/A N/A self __segmented get_dense N/A N/A N/A N/A dense N/A N/A i 0 0 0 N/A indices N/A i N/A i N/A range N/A N/A dense shape N/A 0 N/A has_unedited_segmented N/A N/A self N/A N/A N/A Return true if there is an unedited segmented matrix. N/A N/A N/A self __unedited_segmented None N/A get_unedited_segmented N/A N/A self N/A N/A N/A Get the segmentation of the image into objects, including junk that
        should be ignored: a matrix of object numbers.

        The default, if no unedited matrix is available, is the
        segmented labeling.
         N/A N/A N/A self __unedited_segmented None N/A N/A N/A dense indices N/A N/A N/A self __unedited_segmented get_dense N/A N/A dense N/A N/A 0 0 0 0 N/A N/A self segmented N/A set_unedited_segmented N/A N/A self labels N/A N/A N/A dense N/A N/A N/A downsample_labels labels reshape N/A 1 1 1 1 N/A N/A labels shape N/A 0 N/A N/A labels shape N/A 1 N/A N/A self __unedited_segmented N/A Segmentation dense dense N/A N/A unedited_segmented N/A property get_unedited_segmented set_unedited_segmented has_small_removed_segmented N/A N/A self N/A N/A N/A Return true if there is a junk object matrix. N/A N/A N/A self __small_removed_segmented None N/A get_small_removed_segmented N/A N/A self N/A N/A N/A Get the matrix of segmented objects with the small objects removed

        This should be the same as the unedited_segmented label matrix with
        the small objects removed, but objects touching the sides of the image
        or the image mask still present.
         N/A N/A N/A self __small_removed_segmented None N/A N/A N/A dense indices N/A N/A N/A self __small_removed_segmented get_dense N/A N/A dense N/A N/A 0 0 0 0 N/A N/A self unedited_segmented N/A set_small_removed_segmented N/A N/A self labels N/A N/A N/A dense N/A N/A N/A downsample_labels labels reshape N/A 1 1 1 1 N/A N/A labels shape N/A 0 N/A N/A labels shape N/A 1 N/A N/A self __small_removed_segmented N/A Segmentation dense dense N/A N/A small_removed_segmented N/A property get_small_removed_segmented set_small_removed_segmented cache N/A N/A self hdf5_object_set objects_name N/A N/A N/A Move the segmentations out of memory and into HDF5

        hdf5_object_set - an HDF5ObjectSet attached to an HDF5 file
        objects_name - name of the objects
         N/A N/A segmentation segmentation_name N/A N/A N/A self __segmented N/A Segmentation SEGMENTED N/A N/A self __unedited_segmented N/A Segmentation UNEDITED_SEGMENTED N/A N/A self __small_removed_segmented N/A Segmentation SMALL_REMOVED_SEGMENTED N/A N/A N/A segmentation None N/A N/A N/A N/A segmentation cache hdf5_object_set objects_name segmentation_name N/A get_parent_image N/A N/A self N/A N/A N/A The image that was analyzed to yield the objects.

        The image is an instance of CPImage which means it has the mask
        and crop mask.
         N/A N/A self __parent_image N/A set_parent_image N/A N/A self parent_image N/A N/A N/A N/A self __parent_image parent_image N/A segmentation N/A N/A self __segmented N/A self __small_removed_segmented N/A self __unedited_segmented N/A N/A N/A N/A segmentation None N/A N/A N/A segmentation has_shape N/A N/A shape N/A 1 1 1 N/A N/A N/A parent_image pixel_data shape N/A 0 N/A N/A N/A parent_image pixel_data shape N/A 1 N/A N/A N/A segmentation set_shape shape N/A N/A parent_image N/A property get_parent_image set_parent_image get_has_parent_image N/A N/A self N/A N/A N/A True if the objects were derived from a parent image

         N/A N/A N/A self __parent_image None N/A N/A has_parent_image N/A property get_has_parent_image crop_image_similarly N/A N/A self image N/A N/A N/A Crop an image in the same way as the parent image was cropped. N/A N/A N/A image shape N/A N/A self segmented shape N/A N/A image N/A N/A N/A self parent_image None N/A N/A N/A ValueError Images are of different size and no parent image N/A N/A N/A N/A self parent_image crop_image_similarly image N/A make_ijv_outlines N/A N/A self colors N/A N/A N/A Make ijv-style color outlines

        Make outlines, coloring each object differently to distinguish between
        objects that might overlap.

        colors: a N x 3 color map to be used to color the outlines
         N/A all_labels N/A N/A N/A outline label indexes N/A N/A label indexes N/A N/A self get_labels N/A image N/A N/A np zeros N/A N/A list N/A N/A N/A all_labels N/A 0 N/A 0 shape N/A 3 N/A np float32 N/A counts N/A N/A N/A np sum N/A N/A N/A np unique l 0 N/A N/A l _ all_labels N/A N/A N/A N/A len counts 1 N/A N/A counts N/A 0 0 N/A N/A image N/A N/A N/A len colors N/A len all_labels N/A N/A colors N/A N/A np vstack N/A N/A colors N/A 1 N/A N/A len all_labels N/A len colors N/A r N/A N/A N/A N/A np random mtrand RandomState N/A alpha N/A N/A np zeros N/A N/A N/A all_labels N/A 0 N/A 0 shape N/A np float32 N/A order N/A N/A np lexsort N/A counts N/A label_colors N/A N/A N/A idx i N/A enumerate order N/A N/A max_available N/A N/A len colors N/A N/A len all_labels idx N/A ncolors N/A min N/A counts N/A i max_available N/A my_colors N/A colors N/A ncolors N/A colors N/A colors N/A ncolors N/A my_colors N/A my_colors N/A N/A N/A r permutation N/A N/A np arange ncolors N/A N/A my_labels indexes N/A all_labels N/A i N/A color_idx N/A N/A np zeros N/A N/A N/A np max indexes 1 int N/A N/A color_idx N/A indexes N/A N/A N/A np arange N/A len indexes ncolors N/A N/A image N/A N/A N/A my_labels 0 N/A N/A my_colors N/A N/A N/A color_idx N/A N/A my_labels N/A N/A my_labels 0 N/A N/A N/A alpha N/A N/A my_labels 0 1 N/A N/A image N/A N/A N/A alpha 0 N/A N/A N/A alpha N/A N/A alpha 0 N/A N/A N/A N/A np newaxis N/A image N/A relate_children N/A N/A self children N/A N/A N/A Relate the object numbers in one label to the object numbers in another

        children - another "objects" instance: the labels of children within
                   the parent which is "self"

        Returns two 1-d arrays. The first gives the number of children within
        each parent. The second gives the mapping of each child to its parent's
        object number.
         N/A histogram N/A N/A self histogram_from_ijv N/A self ijv N/A children ijv N/A N/A N/A self relate_histogram histogram N/A relate_labels N/A N/A self parent_labels child_labels N/A N/A N/A relate the object numbers in one label to those in another

        parent_labels - 2d label matrix of parent labels

        child_labels - 2d label matrix of child labels

        Returns two 1-d arrays. The first gives the number of children within
        each parent. The second gives the mapping of each child to its parent's
        object number.
         N/A histogram N/A N/A self histogram_from_labels parent_labels child_labels N/A N/A N/A self relate_histogram histogram N/A relate_histogram N/A N/A self histogram N/A N/A N/A Return child counts and parents of children given a histogram

        histogram - histogram from histogram_from_ijv or histogram_from_labels
         N/A parent_count N/A N/A N/A histogram shape N/A 0 1 N/A child_count N/A N/A N/A histogram shape N/A 1 1 N/A parents_of_children N/A N/A np argmax histogram axis 0 N/A children_per_parent N/A N/A N/A N/A np histogram N/A parents_of_children N/A 1 N/A N/A np arange N/A parent_count 2 N/A 0 N/A 1 N/A N/A children_per_parent N/A parents_of_children N/A 1 N/A histogram_from_labels N/A N/A parent_labels child_labels N/A N/A N/A Find per pixel overlap of parent labels and child labels

        parent_labels - the parents which contain the children
        child_labels - the children to be mapped to a parent

        Returns a 2d array of overlap between each parent and child.
        Note that the first row and column are empty, as these
        correspond to parent and child labels of 0.

         N/A parent_count N/A N/A np max parent_labels N/A child_count N/A N/A np max child_labels N/A common_shape N/A N/A np minimum N/A parent_labels shape N/A child_labels shape N/A parent_labels N/A parent_labels N/A N/A 0 N/A common_shape N/A 0 N/A 0 N/A common_shape N/A 1 N/A child_labels N/A child_labels N/A N/A 0 N/A common_shape N/A 0 N/A 0 N/A common_shape N/A 1 N/A not_zero N/A N/A parent_labels 0 N/A child_labels 0 N/A not_zero_count N/A N/A np sum not_zero N/A N/A N/A N/A coo_matrix N/A N/A N/A np ones N/A not_zero_count N/A N/A parent_labels N/A not_zero N/A child_labels N/A not_zero shape N/A N/A parent_count 1 N/A child_count 1 toarray N/A staticmethod histogram_from_ijv N/A N/A parent_ijv child_ijv N/A N/A N/A Find per pixel overlap of parent labels and child labels,
        stored in ijv format.

        parent_ijv - the parents which contain the children
        child_ijv - the children to be mapped to a parent

        Returns a 2d array of overlap between each parent and child.
        Note that the first row and column are empty, as these
        correspond to parent and child labels of 0.

         N/A parent_count N/A N/A N/A N/A parent_ijv shape N/A 0 0 0 N/A N/A np max N/A parent_ijv N/A N/A N/A 2 N/A child_count N/A N/A N/A N/A child_ijv shape N/A 0 0 0 N/A N/A np max N/A child_ijv N/A N/A N/A 2 N/A N/A N/A parent_count 0 N/A child_count 0 N/A N/A N/A N/A np zeros N/A N/A parent_count 1 N/A child_count 1 int N/A dim_i N/A N/A max N/A N/A np max N/A parent_ijv N/A N/A N/A 0 N/A N/A np max N/A child_ijv N/A N/A N/A 0 1 N/A dim_j N/A N/A max N/A N/A np max N/A parent_ijv N/A N/A N/A 1 N/A N/A np max N/A child_ijv N/A N/A N/A 1 1 N/A parent_linear_ij N/A N/A parent_ijv N/A N/A N/A 0 N/A dim_i N/A N/A N/A parent_ijv N/A N/A N/A 1 astype N/A np uint64 N/A child_linear_ij N/A N/A child_ijv N/A N/A N/A 0 N/A dim_i N/A N/A N/A child_ijv N/A N/A N/A 1 astype N/A np uint64 N/A parent_matrix N/A coo_matrix N/A N/A N/A np ones N/A N/A N/A parent_ijv shape N/A 0 N/A N/A parent_ijv N/A N/A N/A 2 parent_linear_ij shape N/A N/A parent_count 1 N/A dim_i dim_j N/A child_matrix N/A coo_matrix N/A N/A N/A np ones N/A N/A N/A child_ijv shape N/A 0 N/A child_linear_ij N/A child_ijv N/A N/A N/A 2 shape N/A N/A dim_i dim_j N/A child_count 1 N/A N/A N/A N/A N/A N/A parent_matrix tocsc N/A N/A child_matrix tocsc toarray N/A staticmethod get_indices N/A N/A self N/A N/A N/A Get the indices for a scipy.ndimage-style function from the segmented labels

         N/A N/A N/A len N/A self ijv 0 N/A N/A N/A N/A np zeros 0 N/A np int32 N/A max_label N/A N/A np max N/A N/A self ijv N/A N/A N/A 2 N/A N/A N/A N/A N/A N/A np arange max_label astype N/A np int32 1 N/A memoize_method N/A indices N/A property get_indices count N/A N/A self N/A N/A N/A The number of objects labeled N/A N/A len N/A self indices N/A property get_areas N/A N/A self N/A N/A N/A The area of each object N/A N/A N/A len N/A self indices 0 N/A N/A N/A N/A np zeros 0 int N/A N/A N/A N/A np bincount N/A N/A self ijv N/A N/A N/A 2 N/A N/A self indices N/A memoize_method N/A areas N/A property get_areas fn_of_label N/A N/A self function N/A N/A N/A Call a function taking just a label matrix

        function - should have a signature like
            labels - label_matrix
     N/A N/A function N/A self segmented N/A memoize_method fn_of_label_and_index N/A N/A self function N/A N/A N/A Call a function taking a label matrix with the segmented labels

        function - should have signature like
                   labels - label matrix
                   index  - sequence of label indices documenting which
                            label indices are of interest
         N/A N/A function N/A self segmented N/A self indices N/A memoize_method fn_of_ones_label_and_index N/A N/A self function N/A N/A N/A Call a function taking an image, a label matrix and an index with an image of all ones

        function - should have signature like
                   image  - image with same dimensions as labels
                   labels - label matrix
                   index  - sequence of label indices documenting which
                            label indices are of interest
        Pass this function an "image" of all ones, for instance to compute
        a center or an area
         N/A N/A function N/A N/A np ones N/A N/A self segmented shape N/A self segmented N/A self indices N/A memoize_method fn_of_image_label_and_index N/A N/A self function image N/A N/A N/A Call a function taking an image, a label matrix and an index

        function - should have signature like
                   image  - image with same dimensions as labels
                   labels - label matrix
                   index  - sequence of label indices documenting which
                            label indices are of interest
         N/A N/A function image N/A self segmented N/A self indices N/A memoize_method N/A Segmentation N/A object N/A N/A A segmentation of a space into labeled objects

    Supports overlapping objects and cacheing. Retrieval can be as a
    single plane (legacy), as multiple planes and as sparse ijv.
     N/A SEGMENTED segmented N/A UNEDITED_SEGMENTED unedited segmented N/A SMALL_REMOVED_SEGMENTED small removed segmented __init__ N/A N/A self dense sparse shape N/A None None None N/A N/A Initialize the segmentation with either a dense or sparse labeling

        dense - a 6-D labeling with the first axis allowing for alternative
                labelings of the same hyper-voxel.
        sparse - the sparse labeling as a record array with axes from
                 cellprofiler.utilities.hdf_dict.HDF5ObjectSet
        shape - the 5-D shape of the imaging site if sparse.
         N/A N/A self __dense dense N/A N/A self __sparse sparse N/A N/A shape None N/A N/A N/A self __shape shape N/A N/A self __explicit_shape True N/A N/A N/A self __shape None N/A N/A self __explicit_shape False N/A N/A self __cache None N/A N/A dense None N/A N/A N/A self __indices N/A N/A N/A np unique d N/A d dense N/A N/A self __indices N/A N/A N/A N/A idx N/A 0 0 N/A idx N/A 1 idx N/A idx N/A self __indices N/A cache N/A N/A self hdf5_object_set objects_name segmentation_name N/A N/A N/A Cache the segmentation in the given object set

        hdf5_object_set - an HDF5ObjectSet for moving objects out of memory
        objects_name - name to use to store the objects
        segmentation_name - name of this particular segmentation, for instance,
                            Segmentation.SEGMENTED for the user-visible
                            segmentation.
         N/A N/A N/A self __cache None N/A N/A N/A N/A self __objects_name objects_name N/A N/A self __segmentation_name segmentation_name N/A N/A N/A hdf5_object_set clear objects_name segmentation_name N/A N/A N/A self __dense None N/A N/A N/A N/A hdf5_object_set set_dense objects_name segmentation_name N/A self __dense N/A N/A N/A self __sparse None N/A N/A N/A N/A hdf5_object_set set_sparse objects_name segmentation_name N/A self __sparse N/A N/A self __dense None N/A N/A self __sparse None N/A N/A self __cache hdf5_object_set N/A get_shape N/A N/A self N/A N/A N/A Get or estimate the shape of the segmentation matrix

        Order of precedence:
        Shape supplied in the constructor
        Shape of the dense representation
        maximum extent of the sparse representation + 1
         N/A N/A N/A self __shape None N/A N/A N/A self __shape N/A N/A N/A self has_dense N/A N/A N/A self __shape N/A N/A N/A N/A N/A self get_dense N/A 0 shape N/A 1 N/A N/A sparse N/A N/A self get_sparse N/A N/A N/A len sparse 0 N/A N/A N/A self __shape N/A 1 1 1 1 1 N/A cellprofiler.utilities.hdf5_dict HDF5ObjectSet N/A N/A self __shape N/A tuple N/A N/A N/A axis N/A N/A N/A N/A sparse dtype fields keys N/A N/A N/A np max N/A sparse N/A axis 2 1 N/A axis N/A HDF5ObjectSet AXES N/A N/A self __shape N/A set_shape N/A N/A self shape N/A N/A N/A Set the shape of the segmentation array

        shape - the 5D shape of the array

        This fixes the shape of the 5D array for sparse representations
         N/A N/A self __shape shape N/A N/A self __explicit_shape True N/A N/A shape N/A property get_shape set_shape has_dense N/A N/A self N/A N/A N/A N/A N/A N/A self __dense None N/A N/A N/A self __cache None N/A N/A N/A self __cache has_dense N/A self __objects_name N/A self __segmentation_name N/A has_sparse N/A N/A self N/A N/A N/A N/A N/A N/A self __sparse None N/A N/A N/A self __cache None N/A N/A N/A self __cache has_sparse N/A self __objects_name N/A self __segmentation_name N/A has_shape N/A N/A self N/A N/A N/A N/A self __explicit_shape N/A N/A True N/A N/A N/A self has_dense N/A get_sparse N/A N/A self N/A N/A N/A Get the sparse representation of the segmentation

        returns a Numpy record array where every row represents
        the labeling of a pixel. The dtype record names are taken from
        HDF5ObjectSet.AXIS_[X,Y,Z,C,T] and AXIS_LABELS for the object
        numbers.
         N/A N/A N/A self __sparse None N/A N/A N/A self __sparse N/A N/A N/A N/A self __cache None N/A N/A N/A self __cache has_sparse N/A self __objects_name N/A self __segmentation_name N/A N/A N/A N/A N/A self __cache get_sparse N/A self __objects_name N/A self __segmentation_name N/A N/A N/A N/A self has_dense N/A N/A N/A ValueError N/A Can't find object, "%s", segmentation, "%s". N/A N/A self __objects_name N/A self __segmentation_name N/A N/A N/A self __convert_dense_to_sparse N/A N/A sparse N/A property get_sparse get_dense N/A N/A self N/A N/A N/A Get the dense representation of the segmentation

        return the segmentation as a 6-D array and a sequence of arrays of the
        object numbers in each 5-D hyperplane of the segmentation. The first
        axis of the segmentation allows us to assign multiple labels to
        individual pixels. Given a 5-D algorithm, the code typically iterates
        over the first axis:

        for labels in self.get_dense():
            # do something

        The remaining axes are in the order, C, T, Z, Y and X
         N/A N/A N/A self __dense None N/A N/A N/A N/A self __dense N/A self __indices N/A N/A N/A N/A self __cache None N/A N/A N/A self __cache has_dense N/A self __objects_name N/A self __segmentation_name N/A N/A N/A N/A N/A N/A self __cache get_dense N/A self __objects_name N/A self __segmentation_name N/A self __indices N/A N/A N/A N/A self has_sparse N/A N/A N/A ValueError N/A Can't find object, "%s", segmentation, "%s". N/A N/A self __objects_name N/A self __segmentation_name N/A N/A N/A self __convert_sparse_to_dense N/A __convert_dense_to_sparse N/A N/A self N/A N/A N/A N/A dense indices N/A N/A self get_dense cellprofiler.utilities.hdf5_dict HDF5ObjectSet N/A axes N/A list N/A HDF5ObjectSet AXES N/A N/A axes shape N/A N/A a N/A N/A a s N/A zip aa N/A self shape N/A s 1 N/A aa N/A axes N/A self shape N/A dense N/A N/A dense reshape N/A N/A N/A N/A dense shape N/A 0 shape N/A coords N/A N/A np where N/A dense 0 N/A N/A plane coords N/A N/A coords N/A 0 N/A coords N/A 1 N/A N/A N/A N/A np max shape N/A 2 16 N/A N/A coords_dtype N/A np uint16 N/A N/A coords_dtype N/A np uint32 N/A N/A N/A len plane 0 N/A N/A labels N/A dense N/A N/A tuple N/A N/A plane N/A list coords N/A max_label N/A N/A np max indices N/A N/A max_label N/A 2 8 N/A N/A labels_dtype N/A np uint8 N/A N/A N/A max_label N/A 2 16 N/A N/A labels_dtype N/A np uint16 N/A N/A labels_dtype N/A np uint32 N/A N/A labels N/A N/A np zeros 0 N/A dense dtype N/A labels_dtype N/A np uint8 N/A dtype N/A N/A axis coords_dtype 1 N/A axis axes N/A N/A N/A dtype append N/A N/A HDF5ObjectSet AXIS_LABELS labels_dtype 1 N/A sparse N/A N/A N/A N/A np core records fromarrays N/A N/A list coords N/A labels dtype dtype N/A N/A N/A self __cache None N/A N/A N/A N/A N/A self __cache set_sparse N/A self __objects_name N/A self __segmentation_name sparse N/A N/A N/A self __sparse sparse N/A sparse N/A __set_or_cache_dense N/A N/A self dense indices N/A None N/A N/A N/A N/A self __cache None N/A N/A N/A N/A N/A self __cache set_dense N/A self __objects_name N/A self __segmentation_name dense N/A N/A N/A self __dense dense N/A N/A indices None N/A N/A N/A self __indices indices N/A N/A N/A self __indices N/A N/A N/A np unique d N/A d dense N/A N/A self __indices N/A N/A N/A N/A idx N/A 0 0 N/A idx N/A 1 idx N/A idx N/A self __indices N/A N/A dense N/A self __indices N/A __convert_sparse_to_dense N/A N/A self N/A N/A cellprofiler.utilities.hdf5_dict HDF5ObjectSet N/A sparse N/A N/A self get_sparse N/A N/A N/A len sparse 0 N/A N/A N/A N/A self __set_or_cache_dense N/A N/A np zeros N/A N/A 1 N/A list N/A self shape N/A np uint16 N/A positional_columns N/A N/A available_columns N/A N/A lexsort_columns N/A N/A axis N/A HDF5ObjectSet AXES N/A N/A N/A axis N/A N/A N/A N/A sparse dtype fields keys N/A N/A N/A N/A positional_columns append N/A sparse N/A axis N/A N/A N/A available_columns append N/A sparse N/A axis N/A N/A N/A lexsort_columns insert 0 N/A sparse N/A axis N/A N/A N/A N/A positional_columns append 0 N/A labels N/A sparse N/A N/A HDF5ObjectSet AXIS_LABELS N/A N/A N/A lexsort_columns insert 0 labels N/A sort_order N/A N/A np lexsort lexsort_columns N/A n_labels N/A N/A np max labels N/A mask N/A N/A N/A available_columns N/A 0 N/A N/A sort_order N/A -1 N/A N/A available_columns N/A 0 N/A N/A sort_order N/A 1 N/A column N/A available_columns N/A 1 N/A N/A mask N/A mask N/A N/A column N/A N/A sort_order N/A -1 N/A column N/A N/A sort_order N/A 1 N/A breaks N/A N/A np hstack N/A N/A 0 N/A N/A N/A N/A np where mask N/A 0 1 N/A N/A len labels N/A firsts N/A breaks N/A -1 N/A counts N/A N/A breaks N/A 1 firsts N/A indexer N/A Indexes counts N/A mask N/A counts 1 N/A firsts N/A firsts N/A mask N/A counts N/A counts N/A mask N/A N/A N/A len counts 0 N/A N/A dense N/A N/A np zeros N/A N/A 1 N/A list N/A self shape N/A labels dtype N/A N/A dense N/A N/A N/A 0 positional_columns labels N/A N/A N/A self __set_or_cache_dense dense N/A pairs N/A all_pairs N/A N/A np max counts N/A pair_counts N/A counts N/A counts 1 N/A input_indexer N/A Indexes counts N/A output_indexer N/A Indexes pair_counts N/A run_starts N/A firsts N/A N/A output_indexer rev_idx N/A offs N/A pairs N/A N/A N/A N/A output_indexer idx N/A 0 N/A N/A first N/A labels N/A N/A sort_order N/A N/A run_starts N/A offs N/A N/A N/A 0 N/A second N/A labels N/A N/A sort_order N/A N/A run_starts N/A offs N/A N/A N/A 1 N/A pair_sort_order N/A N/A np lexsort N/A second first N/A to_keep N/A N/A np hstack N/A N/A True N/A N/A N/A first N/A 1 N/A first N/A -1 N/A N/A second N/A 1 N/A second N/A -1 N/A to_keep N/A to_keep N/A first second N/A pair_idx N/A pair_sort_order N/A to_keep N/A first N/A first N/A pair_idx N/A second N/A second N/A pair_idx N/A overlap_counts N/A N/A np bincount N/A N/A first astype N/A np int32 N/A indexes N/A N/A N/A np cumsum overlap_counts overlap_counts N/A v_color N/A N/A np ones N/A n_labels 1 int N/A N/A v_color N/A 0 0 N/A N/A v_color N/A N/A N/A np unique first 0 N/A ol_labels N/A N/A N/A np where N/A overlap_counts 0 N/A 0 N/A processing_order N/A N/A np lexsort N/A ol_labels N/A overlap_counts N/A ol_labels N/A index N/A ol_labels N/A processing_order N/A N/A neighbors N/A second N/A N/A indexes N/A index N/A N/A indexes N/A index N/A overlap_counts N/A index N/A colors N/A N/A np unique N/A v_color N/A neighbors N/A N/A N/A colors N/A 0 0 N/A N/A N/A N/A len colors 1 N/A N/A N/A v_color N/A index 1 N/A N/A N/A colors N/A colors N/A 1 N/A crange N/A N/A np arange 1 N/A N/A len colors 1 N/A misses N/A crange N/A N/A colors crange N/A N/A len misses N/A N/A color N/A misses N/A 0 N/A N/A max_color N/A N/A len colors 1 N/A color max_color N/A N/A v_color N/A index color N/A result N/A N/A dense N/A N/A np zeros N/A N/A N/A N/A np max v_color N/A list N/A self shape N/A labels dtype N/A slices N/A tuple N/A N/A N/A N/A v_color N/A labels 1 positional_columns N/A N/A dense N/A slices labels N/A indices N/A N/A N/A N/A np where N/A v_color i N/A 0 N/A i N/A range 1 N/A N/A N/A dense shape N/A 0 1 N/A N/A N/A self __set_or_cache_dense dense indices N/A N/A check_consistency N/A N/A segmented unedited_segmented small_removed_segmented N/A N/A N/A Check the three components of Objects to make sure they are consistent
     N/A N/A N/A segmented None N/A N/A np all N/A segmented 0 N/A N/A N/A unedited_segmented None N/A N/A np all N/A unedited_segmented 0 N/A N/A N/A small_removed_segmented None N/A N/A np all N/A small_removed_segmented 0 N/A N/A N/A segmented None N/A N/A segmented ndim 2 N/A Segmented label matrix must have two dimensions, has %d N/A segmented ndim N/A N/A N/A unedited_segmented None N/A N/A unedited_segmented ndim 2 N/A Unedited segmented label matrix must have two dimensions, has %d N/A unedited_segmented ndim N/A N/A N/A small_removed_segmented None N/A N/A small_removed_segmented ndim 2 N/A Small removed segmented label matrix must have two dimensions, has %d N/A small_removed_segmented ndim N/A N/A N/A segmented None N/A unedited_segmented None N/A N/A segmented shape N/A unedited_segmented shape N/A Segmented %s and unedited segmented %s shapes differ N/A N/A repr N/A segmented shape N/A repr N/A unedited_segmented shape N/A N/A N/A segmented None N/A small_removed_segmented None N/A N/A segmented shape N/A small_removed_segmented shape N/A Segmented %s and small removed segmented %s shapes differ N/A N/A repr N/A segmented shape N/A repr N/A small_removed_segmented shape N/A ObjectSet N/A object N/A N/A A set of objects.Objects instances.

    This class allows you to either refer to an object by name or
    iterate over all available objects.
     __init__ N/A N/A self can_overwrite N/A False N/A N/A Initialize the object set

        can_overwrite - True to allow overwriting of a new copy of objects
                        over an old one of the same name (for debugging)
         N/A N/A self __can_overwrite can_overwrite N/A N/A self __types_and_instances N/A OBJECT_TYPE_NAME N/A N/A __objects_by_name N/A N/A self N/A N/A N/A N/A N/A self __types_and_instances N/A OBJECT_TYPE_NAME N/A property add_objects N/A N/A self objects name N/A N/A N/A N/A isinstance objects Objects objects must be an instance of CellProfiler.Objects N/A N/A N/A N/A N/A N/A self __objects_by_name has_key name N/A self __can_overwrite N/A The object, %s, is already in the object set name N/A N/A N/A self __objects_by_name N/A name objects N/A get_object_names N/A N/A self N/A N/A N/A Return the names of all of the objects
         N/A N/A N/A N/A self __objects_by_name keys N/A N/A object_names N/A property get_object_names get_objects N/A N/A self name N/A N/A N/A Return the objects instance with the given name
         N/A N/A N/A self __objects_by_name N/A name N/A get_all_objects N/A N/A self N/A N/A N/A Return a list of name / objects tuples
         N/A N/A N/A N/A self __objects_by_name items N/A N/A all_objects N/A property get_all_objects get_types N/A N/A self N/A N/A N/A Get then names of types of per-image set "things"

        The object set can store arbitrary types of things other than objects,
        for instance ImageJ data tables. This function returns the thing types
        defined in the object set at this stage of the pipeline.
         N/A N/A N/A N/A self __types_and_instances keys N/A add_type_instance N/A N/A self type_name instance_name instance N/A N/A N/A Add a named instance of a type

        A thing of a given type can be stored in the object set so that
        it can be retrieved by name later in the pipeline. This function adds
        an instance of a type to the object set.

        type_name - the name of the instance's type
        instance_name - the name of the instance
        instance - the instance itself
         N/A N/A type_name N/A self __types_and_instances N/A N/A N/A N/A self __types_and_instances N/A type_name N/A N/A N/A N/A N/A self __types_and_instances N/A type_name N/A instance_name instance N/A get_type_instance N/A N/A self type_name instance_name N/A N/A N/A Get an named instance of a type

        type_name - the name of the type of instance
        instance_name - the name of the instance to retrieve
         N/A N/A N/A type_name N/A self __types_and_instance N/A instance_name N/A N/A self __types_and_instances N/A type_name N/A N/A None N/A N/A N/A N/A self __types_and_instances N/A type_name N/A instance_name N/A cache N/A N/A self hdf5_object_set N/A N/A N/A Cache all objects in the object set to an HDF5 backing store

        hdf5_object_set - an HDF5ObjectSet that is used to store
                          the segmentations so that they can be
                          flushed out of memory.
         N/A objects_name N/A N/A self get_object_names N/A N/A N/A N/A N/A N/A self get_objects objects_name cache hdf5_object_set objects_name N/A N/A downsample_labels N/A N/A labels N/A N/A N/A Convert a labels matrix to the smallest possible integer format N/A labels_max N/A N/A np max labels N/A N/A labels_max 128 N/A N/A N/A N/A labels astype N/A np int8 N/A N/A N/A labels_max 32768 N/A N/A N/A N/A labels astype N/A np int16 N/A N/A N/A labels astype N/A np int32 N/A crop_labels_and_image N/A N/A labels image N/A N/A N/A Crop a labels matrix and an image to the lowest common size

    labels - a n x m labels matrix
    image - a 2-d or 3-d image

    Assumes that points outside of the common boundary should be masked.
     N/A min_height N/A min N/A N/A labels shape N/A 0 N/A N/A image shape N/A 0 N/A min_width N/A min N/A N/A labels shape N/A 1 N/A N/A image shape N/A 1 N/A N/A N/A image ndim 2 N/A N/A N/A N/A labels N/A N/A min_height N/A min_width N/A image N/A N/A min_height N/A min_width N/A N/A N/A N/A labels N/A N/A min_height N/A min_width N/A image N/A N/A min_height N/A min_width N/A N/A size_similarly N/A N/A labels secondary N/A N/A N/A Size the secondary matrix similarly to the labels matrix

    labels - labels matrix
    secondary - a secondary image or labels matrix which might be of
                different size.
    Return the resized secondary matrix and a mask indicating what portion
    of the secondary matrix is bogus (manufactured values).

    Either the mask is all ones or the result is a copy, so you can
    modify the output within the unmasked region w/o destroying the original.
     N/A N/A N/A N/A labels shape N/A 2 N/A N/A secondary shape N/A 2 N/A N/A N/A secondary N/A N/A np ones N/A secondary shape bool N/A N/A N/A N/A N/A labels shape N/A 0 N/A N/A secondary shape N/A 0 N/A N/A N/A labels shape N/A 1 N/A N/A secondary shape N/A 1 N/A N/A N/A N/A secondary ndim 2 N/A N/A N/A N/A secondary N/A N/A N/A N/A labels shape N/A 0 N/A N/A N/A labels shape N/A 1 N/A N/A np ones N/A labels shape bool N/A N/A N/A N/A secondary N/A N/A N/A N/A labels shape N/A 0 N/A N/A N/A labels shape N/A 1 N/A N/A N/A np ones N/A labels shape bool N/A result N/A N/A np zeros N/A N/A list N/A labels shape N/A list N/A N/A secondary shape N/A 2 N/A secondary dtype N/A i_max N/A min N/A N/A secondary shape N/A 0 N/A N/A labels shape N/A 0 N/A j_max N/A min N/A N/A secondary shape N/A 1 N/A N/A labels shape N/A 1 N/A N/A N/A secondary ndim 2 N/A N/A N/A result N/A N/A i_max N/A j_max N/A secondary N/A N/A i_max N/A j_max N/A N/A N/A result N/A N/A i_max N/A j_max N/A N/A secondary N/A N/A i_max N/A j_max N/A N/A mask N/A N/A np zeros N/A labels shape bool N/A N/A mask N/A N/A i_max N/A j_max 1 N/A N/A result mask N/A