Commit 5c7c033caea87e14956d0402c64e5248dfbcf5fa
1 parent
6662c428
Exists in
ff_mask
forcing struct ff to be uint8
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
invesalius/data/styles.py
| ... | ... | @@ -1804,7 +1804,7 @@ class FloodFillMaskInteractorStyle(DefaultInteractorStyle): |
| 1804 | 1804 | x, y, z = self.calcultate_scroll_position(position) |
| 1805 | 1805 | |
| 1806 | 1806 | if self.config.target == "3D": |
| 1807 | - bstruct = generate_binary_structure(3, 1) | |
| 1807 | + bstruct = np.array(generate_binary_structure(3, 1), dtype='uint8') | |
| 1808 | 1808 | self.viewer.slice_.do_threshold_to_all_slices() |
| 1809 | 1809 | else: |
| 1810 | 1810 | _bstruct = generate_binary_structure(2, 1) | ... | ... |