There was an error while loading. Please reload this page.
1 parent cb7ce2b commit d62d1f2Copy full SHA for d62d1f2
1 file changed
eitprocessing/roi/filter_by_size.py
@@ -87,7 +87,7 @@ def apply(self, mask: PixelMask) -> PixelMask:
87
"""
88
binary_array = ~np.isnan(mask.mask)
89
labeled_array, num_features = ndi.label(binary_array, structure=self.connectivity)
90
- mask_collection = PixelMaskCollection({})
+ mask_collection = PixelMaskCollection()
91
for region_label in range(1, num_features + 1):
92
region = labeled_array == region_label
93
if np.sum(region) >= self.min_region_size:
0 commit comments