Skip to content

Commit

Permalink
Merge pull request #38 from neuro-ml/dev
Browse files Browse the repository at this point in the history
fixed orientation for cl-detection
  • Loading branch information
maxme1 authored Jun 8, 2023
2 parents d4fdeb5 + 0a0a37c commit 4b3cbf8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion amid/__version__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '0.11.0'
__version__ = '0.11.1'
5 changes: 3 additions & 2 deletions amid/cl_detection.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

import numpy as np
import SimpleITK
from connectome import Source, Transform, meta
from connectome import Apply, Source, Transform, meta
from connectome.interface.nodes import Silent
from deli import load
from imops import crop_to_box
Expand Down Expand Up @@ -85,7 +85,8 @@ def spacing(i, _points):

@classmethod
def normalizer(cls):
return CropPadding()
# align the points' and image's axes
return Apply(points=lambda pts: {name: pt[::-1] for name, pt in pts.items()}) >> CropPadding()


class CropPadding(Transform):
Expand Down

0 comments on commit 4b3cbf8

Please sign in to comment.