Comments (7)
How did you produce the deformation field?
from ants.
How did you produce the deformation field?
That's exactly what I want to know too LOL
from ants.
Are you asking how to do image registration? Start with the script antsRegistrationSyNQuick.sh
from ants.
Are you asking how to do image registration? Start with the script
antsRegistrationSyNQuick.sh
No... I would like to obtain a deformation field file generated during the registration process
from ants.
I'm a little confused, running the registration script with its default parameters will produce a deformation field in NIFTI format.
from ants.
I'm a little confused, running the registration script with its default parameters will produce a deformation field in NIFTI format.
sry,there is something wrong with my expression. I registrat with python package antspy running in linux
my code is as follows, can i modify code to obtain the deformation field?
`
import ants
from scipy.ndimage import zoom
import nibabel as nib
import numpy as np
fixed = ants.image_read("MRI.nii.gz")
img = nib.load('CT.nii.gz')
moving = img.get_fdata()
scale = (0.9375, 0.9375, 0.6)
moving = zoom(moving, scale)
moving = nib.Nifti1Image(moving, img.affine, img.header)
nib.save(moving, 're_CT.nii.gz')
moving = ants.image_read("re_CT.nii.gz")
SyN = ants.registration(fixed=fixed, moving=moving, save_state=True)
result = ants.apply_transforms(fixed=fixed, moving=moving, transformlist=SyN['fwdtransforms'])
ants.image_write(result, 'moved.nii.gz')
`
from ants.
Ok I think I understand now
SyN['fwdtransforms']
This should be a list of strings, they are file names. The first one will be the deformation field, in NIFTI format.
They can be read with the read_transform
function
from ants.
Related Issues (20)
- ANTs Version: 2.5.1.post1-g128c124 still requires ANTSPATH HOT 5
- Confusion over mi vs mi2 metric HOT 2
- Unexpected antsRegistrationSynQuick Result HOT 1
- "ITK ERROR: ITK only supports orthonormal direction cosines" when using antsRegistrationSyN.sh HOT 11
- web interface / gui for ANTs? HOT 10
- Are Jacobean values log transformed by default in CreateJacobianDeterminantImage command? HOT 2
- Port antsRegistrationSyN.sh to Windows HOT 2
- antsApplyTransforms not able to read transform txt HOT 7
- deformation field units HOT 1
- ImageMath TimeSeriesDisassemble 'std::out_of_range' HOT 2
- ImageMath TimeSeriesAssemble HOT 9
- Warping MNI Atlas to Native Space Through Single Subject Template HOT 4
- antsApplyTransforms should check input type
- missing shared libraries when installed from conda / mamba HOT 10
- antsRegistrationSyN.sh -t so fail HOT 4
- To do: Check all allocated memory is initialized HOT 1
- Unclosed brackets not detected in antsRegistration command line parameters HOT 3
- iMath TruncateImageIntensity segfaults on certain input HOT 3
- Workflow for building registration using docker HOT 4
- Ubuntu ANTs build is broken (repository version) HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ants.