Skip to content

Commit

Permalink
Deleted outdated code
Browse files Browse the repository at this point in the history
  • Loading branch information
clementpoiret committed Mar 15, 2022
1 parent 27ad1d6 commit 74036f4
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions roiloc/locator.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,16 +153,3 @@ def inverse_transform(self,
reference = self._image

return ants.decrop_image(image, reference)


def test():
image = ants.image_read(
"~/Datasets/MemoDev/ManualSegmentation/mb190108/tse.nii.gz",
reorient="LPI")
locator = RoiLocator(contrast="t2", roi="hippocampus", bet=True)

right, _ = locator.fit_transform(image)
print(locator.get_coords())
right_orig = locator.inverse_transform(right)

assert right_orig.shape == image.shape

0 comments on commit 74036f4

Please sign in to comment.