Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Face template #7

Open
DavidBarriere opened this issue Jul 28, 2023 · 3 comments
Open

Face template #7

DavidBarriere opened this issue Jul 28, 2023 · 3 comments

Comments

@DavidBarriere
Copy link

Hi,
Excellent work !

I am trying to reproduce the face template with similar histological brain sections from 3 animals.
Actually the function cannot reach to converge efficiently but I think is because of my png2nifti conversion which create a weird header.
Could you please explain how did you convert your png (or other) as nifti in your example ?

Thank you.

D

@ntustison
Copy link
Owner

I don't remember exactly. I'm guessing I just used the ITK IO.

@DavidBarriere
Copy link
Author

Something as simple as follow ?
pip install itk-io
import itk

image = itk.imread('image.tiff')
itk.imwrite(image, 'image.nii.gz')

@ntustison
Copy link
Owner

Yeah, exactly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants