mirror of
https://github.com/wassname/scikit-image.git
synced 2026-10-29 13:30:24 +08:00
MAINT: use region.area
This commit is contained in:
1 parent
4b714c54f2
commit
ea70724216
1 file changed
+1
-1
@@ -46,7 +46,7 @@ ax.imshow(image_label_overlay)
|
||||
for region in regionprops(label_image):
|
||||
|
||||
# skip small images
|
||||
if region['Area'] < 100:
|
||||
if region.area < 100:
|
||||
continue
|
||||
|
||||
# draw rectangle around segmented coins
|
||||
|
||||
Reference in new issue
Block a user