Skip to content

Commit

Permalink
Fix location retrieval
Browse files Browse the repository at this point in the history
  • Loading branch information
malago86 committed Apr 19, 2022
1 parent f901ce0 commit 5a96db2
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions Victre/Pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -1383,13 +1383,13 @@ def insert_lesions(self, lesion_type=None, n=-1, lesion_file=None, lesion_size=N
]))

loc = {"dm": self.get_coordinates_dm([
cand[1] + lesion.shape[1] / 2,
cand[2] + lesion.shape[2] / 2,
cand[0] + lesion.shape[0] / 2]),
cand[1],
cand[2],
cand[0]]),
"dbt": self.get_coordinates_dbt([
cand[1] + lesion.shape[1] / 2,
cand[2] + lesion.shape[2] / 2,
cand[0] + lesion.shape[0] / 2])}
cand[1],
cand[2],
cand[0]])}

self.lesion_locations["dm"].append(
list(np.round([loc["dm"][0], loc["dm"][1], cand_type]).astype(int)))
Expand Down

0 comments on commit 5a96db2

Please sign in to comment.