Skip to content

Commit

Permalink
Merged in bugfix/RAM-3628_cbct_edge_distance (pull request #386)
Browse files Browse the repository at this point in the history
RAM-3628 lower clearance of cbct phantom to edge

Approved-by: Randy Taylor
  • Loading branch information
jrkerns committed May 28, 2024
2 parents 7c50b2e + 917ce8d commit 75f6215
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 2 deletions.
10 changes: 10 additions & 0 deletions docs/source/changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,16 @@
Changelog
=========

v 3.24.0
--------

CBCT
^^^^

* Some datasets were failing due to the proximity to the edge of the FOV. While we encourage an FOV that is 1cm+ larger than the
phantom to minimize edge artifacts and ensure the entire phantom is captured, we have reduced the required clearance
of the phantom to the edge by approximately half.

v 3.23.0
--------

Expand Down
2 changes: 1 addition & 1 deletion pylinac/ct.py
Original file line number Diff line number Diff line change
Expand Up @@ -2582,7 +2582,7 @@ def get_regions(
thres = thresmeth(edges)
bw = edges > thres
if clear_borders:
bw = segmentation.clear_border(bw, buffer_size=int(max(bw.shape) / 50))
bw = segmentation.clear_border(bw, buffer_size=min(int(max(bw.shape) / 100), 3))
if fill_holes:
bw = ndimage.binary_fill_holes(bw)
labeled_arr, num_roi = measure.label(bw, return_num=True)
Expand Down
2 changes: 1 addition & 1 deletion pylinac/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "3.23.0"
__version__ = "3.24.0"
19 changes: 19 additions & 0 deletions tests_basic/test_cbct.py
Original file line number Diff line number Diff line change
Expand Up @@ -1581,3 +1581,22 @@ class CatPhan604NegativeSliceOverlap(CatPhan604Mixin, TestCase):
unif_values = {"Center": 24, "Left": 23, "Right": 22, "Top": 23, "Bottom": 21}
mtf_values = {50: 0.40}
lowcon_visible = 6


class CatPhan504NearEdge(CatPhan504Mixin, TestCase):
file_name = "phantom_edge.zip"
expected_roll = 1.4
origin_slice = 41
hu_values = {
"Poly": -41,
"Acrylic": 120,
"Delrin": 322,
"Air": -1010,
"Teflon": 905,
"PMP": -189,
"LDPE": -98,
}
unif_values = {"Center": 12, "Left": 10, "Right": 9, "Top": 9, "Bottom": 11}
mtf_values = {50: 0.33}
lowcon_visible = 4
slice_thickness = 3

0 comments on commit 75f6215

Please sign in to comment.