Skip to content

Commit 7f29af0

Browse files
committed
implement get_boundinbox for 1 micron patch features
1 parent 6baec97 commit 7f29af0

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

siibra/features/image/sections.py

+8
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,14 @@ def __repr__(self):
8383
def section(self) -> CellbodyStainedSection:
8484
return self._section
8585

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+
8694
@property
8795
def profile(self) -> "Contour":
8896
return self._profile

0 commit comments

Comments
 (0)