Sun Jul 17 12:09:23 2022 image_components_test(): Python version: 3.6.9 Test image_components(). components_1d_test(): components_1d() finds and labels connected components in a 1D integer vector. A: [0 0 1 2 4 0 0 4 0 0 0 8 9 9 1 2 3 0 0 5 0 1 6 0 0 0 4 0] Number of components = 6 C: [0 0 1 1 1 0 0 2 0 0 0 3 3 3 3 3 3 0 0 4 0 5 5 0 0 0 6 0] components_2d_test(): components_2d() finds and labels connected components in a 2D integer array. A: [[0 0 0 0 0 0 0 0 0] [0 0 1 0 0 1 0 0 0] [0 1 1 0 1 1 1 0 0] [0 1 1 1 1 1 1 0 0] [0 0 1 1 1 0 0 0 0] [0 0 1 1 1 0 0 0 0] [0 1 1 1 0 1 0 1 0] [0 1 1 0 0 1 0 1 0] [0 0 1 0 0 0 0 1 0] [0 0 0 0 1 0 1 1 0] [0 1 0 1 1 0 1 0 0] [0 1 1 1 1 1 0 0 0] [0 0 1 1 0 1 0 1 0] [0 0 1 1 0 1 0 1 0] [0 1 1 0 1 0 1 1 0] [0 1 0 0 1 0 1 1 0] [0 0 0 0 0 0 0 0 0]] Number of components = 6 C: [[0 0 0 0 0 0 0 0 0] [0 0 1 0 0 1 0 0 0] [0 1 1 0 1 1 1 0 0] [0 1 1 1 1 1 1 0 0] [0 0 1 1 1 0 0 0 0] [0 0 1 1 1 0 0 0 0] [0 1 1 1 0 2 0 3 0] [0 1 1 0 0 2 0 3 0] [0 0 1 0 0 0 0 3 0] [0 0 0 0 4 0 3 3 0] [0 4 0 4 4 0 3 0 0] [0 4 4 4 4 4 0 0 0] [0 0 4 4 0 4 0 5 0] [0 0 4 4 0 4 0 5 0] [0 4 4 0 6 0 5 5 0] [0 4 0 0 6 0 5 5 0] [0 0 0 0 0 0 0 0 0]] components_3d_test(): components_3d() finds and labels connected components in a 3D integer block. A is a 3D block of order 64 x 64 x 26 Number of nonzero A values is 1099 Number of components = 6 Component Size 0 163 1 210 2 90 3 222 4 312 5 102 ------ -------- Total 1099 image_components_test(): Normal end of execution. Sun Jul 17 12:09:23 2022