6 6
0 0 0 0 0 0
0 1 1 0 0 0
0 1 1 0 0 0
0 0 0 0 0 0
0 0 0 0 1 1
0 0 0 0 1 1
8 |
Instance 1: Area=1.0, BBox=(1,1,2,2), Centroid=(1.50,1.50)
Instance 2: Area=1.0, BBox=(4,4,2,2), Centroid=(4.50,4.50)
Total instances: 2 |
Aligned \(2\times2\) blocks. The geometric contour area calculation results in \(1.0\). The centroid of the block in columns 1–2 and rows 1–2 is exactly \((1.50,\,1.50)\). |
4 6
0 0 0 0 0 0
0 1 1 1 1 0
0 0 0 1 0 0
0 0 0 0 0 0
4 |
Instance 1: Area=2.0, BBox=(1,1,4,2), Centroid=(2.40,1.20)
Total instances: 1 |
Asymmetric inverted “T” shaped object. The geometric contour area is \(2.0\). The centroid reflects the pixel distribution of the object. |