We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6baec97 commit 7f29af0Copy full SHA for 7f29af0
siibra/features/image/sections.py
@@ -83,6 +83,14 @@ def __repr__(self):
83
def section(self) -> CellbodyStainedSection:
84
return self._section
85
86
+ def get_boundingbox(self):
87
+ """ Enforce that the bounding box spans the full section thickness."""
88
+ bbox_section = self._section.get_boundingbox()
89
+ bbox = self._patch.boundingbox
90
+ bbox.minpoint[1] = bbox_section.minpoint[1]
91
+ bbox.maxpoint[1] = bbox_section.maxpoint[1]
92
+ return bbox
93
+
94
@property
95
def profile(self) -> "Contour":
96
return self._profile
0 commit comments