Skip to content

Commit

Permalink
Merge branch 'master' into formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
louisblankemeier authored Sep 25, 2023
2 parents 8ed337f + 5f4e282 commit 6a60cb0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 10 deletions.
2 changes: 2 additions & 0 deletions comp2comp/aaa/aaa.py
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,8 @@ def __call__(self, inference_pipeline):
areas = [cv2.contourArea(c) for c in contours]
sorted_areas = np.sort(areas)

areas = [cv2.contourArea(c) for c in contours]
sorted_areas = np.sort(areas)
contours = contours[areas.index(sorted_areas[-1])]

img.copy()
Expand Down
12 changes: 2 additions & 10 deletions comp2comp/hip/hip_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,7 @@ def compute_rois(medical_volume, segmentation, model, output_dir, save=False):
) = get_femural_head_roi(
right_femur_mask, medical_volume, output_dir, "right_intertrochanter"
)
(
left_neck_roi,
left_neck_centroid,
left_neck_hu,
) = get_femural_neck_roi(
(left_neck_roi, left_neck_centroid, left_neck_hu,) = get_femural_neck_roi(
left_femur_mask,
medical_volume,
left_intertrochanter_roi,
Expand All @@ -54,11 +50,7 @@ def compute_rois(medical_volume, segmentation, model, output_dir, save=False):
left_head_centroid,
output_dir,
)
(
right_neck_roi,
right_neck_centroid,
right_neck_hu,
) = get_femural_neck_roi(
(right_neck_roi, right_neck_centroid, right_neck_hu,) = get_femural_neck_roi(
right_femur_mask,
medical_volume,
right_intertrochanter_roi,
Expand Down

0 comments on commit 6a60cb0

Please sign in to comment.