From 5c7c033caea87e14956d0402c64e5248dfbcf5fa Mon Sep 17 00:00:00 2001 From: Thiago Franco de Moraes Date: Wed, 17 Aug 2016 15:34:24 -0300 Subject: [PATCH] forcing struct ff to be uint8 --- invesalius/data/styles.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/invesalius/data/styles.py b/invesalius/data/styles.py index e488642..cab22eb 100644 --- a/invesalius/data/styles.py +++ b/invesalius/data/styles.py @@ -1804,7 +1804,7 @@ class FloodFillMaskInteractorStyle(DefaultInteractorStyle): x, y, z = self.calcultate_scroll_position(position) if self.config.target == "3D": - bstruct = generate_binary_structure(3, 1) + bstruct = np.array(generate_binary_structure(3, 1), dtype='uint8') self.viewer.slice_.do_threshold_to_all_slices() else: _bstruct = generate_binary_structure(2, 1) -- libgit2 0.21.2