Comments (8)
the major area where you will improve performance will be here:
,Random,0.05 => ,Regular, 0.25
you may also want a -x option, i.e. some kind of mask to focus the registration
another helpful thing is
-r [ fixed, moving , 1 ]
to initialize .... starter parameters are here:
https://github.com/stnava/ANTs/blob/master/Scripts/newAntsExample.sh
finally, you might try ANT
antsAffineInitializer
if need be ....
from ants.
for the -r
flag is there expected to be an inverse transformation and also is that transform from the -r
flag included in the composite? i'm trying to clean up the way nipype reads and collects these transforms.
from ants.
you should also add
-z, --collapse-output-transforms (1)/0
so that regardless of the number of .mat type transforms, they are all
collapsed into one ... although i believe this is default behavior.
brian
On Tue, May 7, 2013 at 9:25 PM, Satrajit Ghosh [email protected]:
for the -r flag is there expected to be an inverse transformation and
also is that transform from the -r flag included in the composite? i'm
trying to clean up the way nipype reads and collects these transforms.โ
Reply to this email directly or view it on GitHubhttps://github.com//issues/17#issuecomment-17581361
.
from ants.
Yes, -z 1 is the default behavior.
Also, to answer Satra's questions --- "no" to the first and "yes" to the second.
from ants.
thanks guys.
running it now with the command below taken from the ANTSexample that brian pointed me to (here -z 0 is being used). should i change the nipype default to work with -z 1 (@hjmjohnson : what do you think?)
i'm presuming that -z 1 will not generate the various transform0/1/2... files
in this case, let's say i wanted to get the affine component of the composite - is there a way to extract/generate that from the composite?
appendix:
(in nipype we like to be verbose)
'/software/ANTS/versions/130123/antsRegistration --collapse-linear-transforms-to-fixed-image-header 0 --collapse-output-transforms 0 --dimensionality 3 --initial-moving-transform [ /gablab/p/CBMPARC/satra/human_2_anatomy.nii, /gablab/p/CBMPARC/satra/human_1_anatomy.nii, 1 ] --interpolation Linear --output [ transform, output_warped_image.nii.gz ] --transform Translation[ 0.1 ] --metric Mattes[ /gablab/p/CBMPARC/satra/human_2_anatomy.nii, /gablab/p/CBMPARC/satra/human_1_anatomy.nii, 1, 32 ,Regular,0.1 ] --convergence [ 10000x0x0, 1e-08, 20 ] --smoothing-sigmas 4x2x1vox --shrink-factors 6x4x2 --use-estimate-learning-rate-once 1 --use-histogram-matching 0 --transform Rigid[ 0.1 ] --metric Mattes[ /gablab/p/CBMPARC/satra/human_2_anatomy.nii, /gablab/p/CBMPARC/satra/human_1_anatomy.nii, 1, 32 ,Regular,0.1 ] --convergence [ 10000x0x0, 1e-08, 20 ] --smoothing-sigmas 4x2x1vox --shrink-factors 6x4x2 --use-estimate-learning-rate-once 1 --use-histogram-matching 0 --transform Affine[ 0.1 ] --metric Mattes[ /gablab/p/CBMPARC/satra/human_2_anatomy.nii, /gablab/p/CBMPARC/satra/human_1_anatomy.nii, 1, 32 ,Regular,0.1 ] --convergence [ 10000x0x0, 1e-08, 20 ] --smoothing-sigmas 4x2x1vox --shrink-factors 6x4x2 --use-estimate-learning-rate-once 1 --use-histogram-matching 0 --transform SyN[ 0.3, 3.0, 0.0 ] --metric Mattes[ /gablab/p/CBMPARC/satra/human_2_anatomy.nii, /gablab/p/CBMPARC/satra/human_1_anatomy.nii, 1, 32 ] --convergence [ 10x0x0, 1e-08, 20 ] --smoothing-sigmas 2x1x0vox --shrink-factors 4x2x1 --use-estimate-learning-rate-once 1 --use-histogram-matching 1 --winsorize-image-intensities [ 0.0, 1.0 ] --write-composite-transform 1'
from ants.
and this time it did not create transform0DerivedInitialMovingTranslation.mat
. is there a reason why it would create it once but not again?
from ants.
The -z 1 option collapses all linear transforms together into a single affine transform file.
from ants.
i'm closing this for now - the memory consumption might still be an issue - given that brian's starter parameters aren't meant to be really used. will reopen if this problem persists.
from ants.
Related Issues (20)
- Suggestions for accommodating larger deformations during atlas building HOT 3
- Oasia template registration to MNI152 HOT 2
- Template Construction and Native Space HOT 1
- convert CorticalThicknessNormalizedToTemplate.nii.gz to the MNI template HOT 4
- Atropos fails on macOS with ANTs 2.5.0 HOT 9
- Extract the mean cortical thickness of brain regions HOT 1
- running antsRegistrationSyn.sh on a remote server takes too long time HOT 6
- I am not sure I understood the command explanation in ANTsDoc pdf HOT 1
- missing libITKIOTransformMINC-5.3.so.1 HOT 4
- flags in ANTS to run DenseRigid registration HOT 1
- Ants Longitudinal CT Template-Build Stage fail HOT 12
- Inquiry Regarding Suboptimal Results in Macaque T1 Image Segmentation Using antsbrainextraction.sh HOT 7
- Equivalent buildtemplateparallel.sh to antsMultivariateTemplateConstruction2.sh calls HOT 14
- How can i get deformation field๏ผ HOT 7
- Minified, multi-architectural container images HOT 10
- Poor non-linear registration (SyN) for intra-participant T1 to fMRI EPI HOT 1
- Warnings possibly indicating problems HOT 3
- Clean up fully merged branches HOT 3
- Determining optimal hyperparameter settings for abdominal CT image registration HOT 6
- Warnings are raised when ANTs is used via CMake FetchContent HOT 4
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.