Module ImportFrom alias alias alias Import alias Import alias Import alias identifier ImportFrom alias alias alias alias Import alias identifier Import alias ImportFrom alias alias alias ImportFrom alias ImportFrom alias ImportFrom alias FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad NameLoad attr Num keyword AttributeLoad NameLoad attr Expr Call NameLoad NameLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr TupleLoad Num Num Num Num keyword AttributeLoad NameLoad attr Expr Call NameLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad NameLoad attr TupleLoad Num Num keyword AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad Expr Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad NameLoad attr TupleLoad Num Num keyword AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad Expr Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad NameLoad attr TupleLoad Num Num keyword AttributeLoad NameLoad attr Expr Call NameLoad Call NameLoad NameLoad Call AttributeLoad NameLoad attr ListLoad ListLoad Num Num Num Num ListLoad Num Num Num Num ListLoad Num Num Num Num keyword AttributeLoad NameLoad attr decorator_list FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad NameLoad attr TupleLoad Num Num keyword AttributeLoad NameLoad attr Assign SubscriptStore NameLoad Index TupleLoad Num Num Num Assign NameStore Call NameLoad NameLoad Expr Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad NameLoad attr TupleLoad Num Num keyword AttributeLoad NameLoad attr Assign SubscriptStore NameLoad ExtSlice Index Num Slice Num Num Num Assign SubscriptStore NameLoad Index TupleLoad Num Num Num Assign SubscriptStore NameLoad Index TupleLoad Num Num Num Assign NameStore Call NameLoad NameLoad Expr Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args defaults body Assign NameStore SubscriptLoad Call AttributeLoad AttributeLoad NameLoad attr attr TupleLoad Num Num ExtSlice Slice Num Slice Num Assign SubscriptStore NameLoad Index CompareLt NameLoad Num Num Assign NameStore Call AttributeLoad NameLoad attr With Call AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Str NameLoad Assign NameStore Call NameLoad NameLoad Expr Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call NameLoad NameLoad NameLoad Expr Call NameLoad Call AttributeLoad NameLoad attr Call AttributeLoad Call NameLoad NameLoad attr decorator_list FunctionDef arguments args defaults body Assign NameStore ListLoad Call AttributeLoad NameLoad attr TupleLoad Num Num keyword NameLoad Call AttributeLoad NameLoad attr TupleLoad Num Num Num keyword NameLoad Call AttributeLoad NameLoad attr TupleLoad Num Num keyword AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr TupleLoad Num Num Num keyword AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr TupleLoad Num Num keyword NameLoad Call AttributeLoad NameLoad attr TupleLoad Num Num Num keyword NameLoad For NameStore NameLoad body Expr Yield TupleLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr With Call AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Str NameLoad Assign NameStore Call NameLoad NameLoad Expr Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad NameLoad attr TupleLoad Num Num Assign SubscriptStore NameLoad ExtSlice Slice Num Num Slice Num Num Num Assign SubscriptStore NameLoad ExtSlice Slice Num Num Slice Num Num Num Assign SubscriptStore NameLoad ExtSlice Slice Num Num Slice Num Num Num Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr Num Num Num Num For NameStore Call NameLoad Num body Assign SubscriptStore NameLoad Index TupleLoad BinOpAdd NameLoad NameLoad NameLoad Num Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr Num Num Num Num For NameStore Call NameLoad Num body Assign SubscriptStore NameLoad Index TupleLoad BinOpAdd NameLoad NameLoad NameLoad Num Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore CompareLt BinOpAdd BinOpPow BinOpSub NameLoad Num Num BinOpPow BinOpSub NameLoad Num Num BinOpPow Num Num Assign NameStore CompareLt BinOpAdd BinOpPow BinOpSub NameLoad Num Num BinOpPow BinOpSub NameLoad Num Num BinOpPow Num Num Assign SubscriptStore NameLoad Index NameLoad Num Assign SubscriptStore NameLoad Index NameLoad Num Assign NameStore Call NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr ListLoad ListLoad Num Num ListLoad Num Num AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad keyword Str Expr Call NameLoad UnaryOpNot Call AttributeLoad NameLoad attr CompareEq NameLoad Num decorator_list FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad NameLoad attr ListLoad ListLoad Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num ListLoad Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num ListLoad Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num ListLoad Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num ListLoad Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num ListLoad Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num ListLoad Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num ListLoad Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num ListLoad Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num ListLoad Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num ListLoad Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num ListLoad Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num ListLoad Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num ListLoad Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num keyword AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr ListLoad ListLoad Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num ListLoad Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num ListLoad Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num ListLoad Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num ListLoad Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num ListLoad Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num ListLoad Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num ListLoad Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num ListLoad Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num ListLoad Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num ListLoad Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num ListLoad Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num ListLoad Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num ListLoad Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num keyword AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad Expr Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args defaults body Assign NameStore Call NameLoad Num Num keyword Num keyword Num Assign NameStore SubscriptLoad NameLoad ExtSlice Slice Num Ellipsis Assign NameStore BinOpMult Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Assign NameStore Call NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Expr Call NameLoad NameLoad NameLoad decorator_list If CompareEq NameLoad Str body Expr Call NameLoad
N/A __future__ division print_function absolute_import N/A os N/A warnings N/A numpy np numpy.testing assert_equal run_module_suite assert_raises assert_ N/A scipy.ndimage ndi N/A skimage skimage io draw data_dir skimage.data binary_blobs skimage.util img_as_ubyte skimage.morphology skeletonize_3d test_skeletonize_wrong_dim N/A N/A N/A N/A N/A im N/A N/A np zeros 5 dtype N/A np uint8 N/A N/A assert_raises ValueError skeletonize_3d im N/A im N/A N/A np zeros N/A 5 5 5 5 dtype N/A np uint8 N/A N/A assert_raises ValueError skeletonize_3d im N/A test_skeletonize_1D N/A N/A N/A N/A N/A im N/A N/A np ones N/A 5 1 dtype N/A np uint8 N/A res N/A skeletonize_3d im N/A N/A assert_equal res im N/A test_skeletonize_no_foreground N/A N/A N/A N/A N/A im N/A N/A np zeros N/A 5 5 dtype N/A np uint8 N/A result N/A skeletonize_3d im N/A N/A assert_equal result im N/A test_skeletonize_all_foreground N/A N/A N/A N/A N/A im N/A N/A np ones N/A 3 4 dtype N/A np uint8 N/A N/A assert_equal N/A skeletonize_3d im N/A N/A np array N/A N/A 0 0 0 0 N/A 1 1 1 1 N/A 0 0 0 0 dtype N/A np uint8 N/A test_skeletonize_single_point N/A N/A N/A N/A N/A im N/A N/A np zeros N/A 5 5 dtype N/A np uint8 N/A N/A im N/A N/A 3 3 1 N/A result N/A skeletonize_3d im N/A N/A assert_equal result im N/A test_skeletonize_already_thinned N/A N/A N/A N/A N/A im N/A N/A np zeros N/A 5 5 dtype N/A np uint8 N/A N/A im N/A N/A 3 N/A 1 -1 1 N/A N/A im N/A N/A 2 -1 1 N/A N/A im N/A N/A 4 0 1 N/A result N/A skeletonize_3d im N/A N/A assert_equal result im N/A test_dtype_conv N/A N/A N/A N/A N/A img N/A N/A N/A N/A np random random N/A 16 16 N/A N/A 2 N/A 2 N/A N/A img N/A N/A img 0.5 0 N/A orig N/A N/A img copy N/A N/A N/A warnings catch_warnings N/A N/A N/A N/A warnings simplefilter ignore UserWarning N/A res N/A skeletonize_3d img N/A N/A assert_equal N/A res dtype N/A np uint8 N/A N/A assert_equal img orig N/A N/A assert_equal N/A N/A res max N/A N/A N/A img_as_ubyte img max N/A test_input N/A N/A N/A N/A N/A imgs N/A N/A N/A np ones N/A 8 8 dtype float N/A N/A np ones N/A 4 8 8 dtype float N/A N/A np ones N/A 8 8 dtype N/A np uint8 N/A N/A np ones N/A 4 8 8 dtype N/A np uint8 N/A N/A np ones N/A 8 8 dtype bool N/A N/A np ones N/A 4 8 8 dtype bool N/A img imgs N/A N/A N/A N/A check_input img N/A check_input N/A N/A img N/A N/A N/A orig N/A N/A img copy N/A N/A N/A warnings catch_warnings N/A N/A N/A N/A warnings simplefilter ignore UserWarning N/A res N/A skeletonize_3d img N/A N/A assert_equal img orig N/A test_skeletonize_num_neighbours N/A N/A N/A N/A N/A image N/A N/A np zeros N/A 300 300 N/A N/A image N/A N/A 10 -10 N/A 10 100 1 N/A N/A image N/A N/A -100 -10 N/A 10 -10 1 N/A N/A image N/A N/A 10 -10 N/A -100 -10 1 N/A N/A rs cs N/A N/A draw line 250 150 10 280 N/A i N/A range 10 N/A N/A N/A image N/A N/A N/A rs i cs 1 N/A N/A rs cs N/A N/A draw line 10 150 250 280 N/A i N/A range 20 N/A N/A N/A image N/A N/A N/A rs i cs 1 N/A N/A ir ic N/A N/A np indices N/A image shape N/A circle1 N/A N/A N/A N/A ic 135 2 N/A N/A ir 150 2 N/A 30 2 N/A circle2 N/A N/A N/A N/A ic 135 2 N/A N/A ir 150 2 N/A 20 2 N/A N/A image N/A circle1 1 N/A N/A image N/A circle2 0 N/A result N/A skeletonize_3d image N/A mask N/A N/A np array N/A N/A 1 1 N/A 1 1 N/A np uint8 N/A blocks N/A N/A ndi correlate result mask mode constant N/A N/A assert_ N/A N/A N/A np any N/A blocks 4 N/A test_two_hole_image N/A N/A N/A N/A N/A img_o N/A N/A np array N/A N/A 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 N/A 0 0 0 0 0 0 1 1 1 1 1 0 0 0 0 0 N/A 0 0 0 0 1 1 1 1 1 1 1 1 1 0 1 0 N/A 0 0 1 1 1 1 1 1 1 1 1 1 1 1 1 0 N/A 0 1 1 1 1 0 0 1 1 1 0 0 1 1 1 0 N/A 0 1 1 1 0 0 0 1 1 1 0 0 1 1 1 0 N/A 0 0 1 1 0 0 0 1 1 1 0 0 1 1 1 0 N/A 0 0 1 1 1 0 0 1 1 1 0 0 1 1 1 0 N/A 0 0 0 1 1 0 0 1 1 1 0 0 1 1 1 0 N/A 0 0 0 1 1 1 1 1 1 1 1 1 1 1 1 0 N/A 0 0 0 0 1 1 1 1 1 1 1 1 1 1 1 0 N/A 0 0 0 0 1 1 1 1 1 1 1 1 1 1 1 0 N/A 0 0 0 0 0 0 1 1 1 1 1 1 1 0 0 0 N/A 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 dtype N/A np uint8 N/A img_f N/A N/A np array N/A N/A 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 N/A 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 N/A 0 0 0 0 0 0 1 1 0 1 1 0 0 0 0 0 N/A 0 0 0 0 1 1 0 0 1 0 0 1 0 0 0 0 N/A 0 0 0 1 0 0 0 0 1 0 0 0 1 0 0 0 N/A 0 0 1 0 0 0 0 0 1 0 0 0 0 1 0 0 N/A 0 0 1 0 0 0 0 0 1 0 0 0 0 1 0 0 N/A 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 N/A 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 N/A 0 0 0 0 1 0 0 0 1 0 0 0 0 1 0 0 N/A 0 0 0 0 0 1 1 0 1 0 0 0 1 0 0 0 N/A 0 0 0 0 0 0 0 1 0 1 1 1 0 0 0 0 N/A 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 N/A 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 dtype N/A np uint8 N/A res N/A skeletonize_3d img_o N/A N/A assert_equal res img_f N/A test_3d_vs_fiji N/A N/A N/A N/A N/A img N/A binary_blobs 32 0.05 n_dim 3 seed 1234 N/A img N/A img N/A N/A -2 N/A N/A img N/A N/A N/A img astype N/A np uint8 255 N/A img_s N/A skeletonize_3d img N/A img_f N/A N/A io imread N/A N/A N/A os path join data_dir _blobs_3d_fiji_skeleton.tif N/A N/A assert_equal img_s img_f N/A N/A N/A __name__ __main__ N/A N/A N/A run_module_suite