mirror of
https://github.com/wassname/scikit-image.git
synced 2026-07-07 06:40:09 +08:00
MAINT: use region.area
This commit is contained in:
@@ -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