vanandrew / warpkit

Python library for neuroimaging transforms.
Other
6 stars 2 forks source link

Add command-line interface for phase unwrapping #12

Open tsalo opened 2 months ago

tsalo commented 2 months ago

The unwrapped phase data could be useful for purposed outside of distortion correction (e.g., phase regression, improved T2* estimation), so I was thinking it could be cool to have the unwrapping steps in warpkit as a command-line interface. I'm happy to open a PR if that sounds alright.

vanandrew commented 2 months ago

That sounds good. I sort of have that written at the moment with the --debug flag. But probably needs to be reworked into a proper save function.

vanandrew commented 2 months ago

Relevant lines for unwrapped phases when running with the --debug flag on: https://github.com/vanandrew/warpkit/blob/f9d145fd15208fc7ccd324da9ce535398263a4fe/warpkit/unwrap.py#L780-L788