-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathREADME.txt
More file actions
188 lines (120 loc) · 6.81 KB
/
README.txt
File metadata and controls
188 lines (120 loc) · 6.81 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
Release 1.9.x --- svn release 793++
Homepage: http://www.picsl.upenn.edu/ANTS/
Introduction -- ANTS is a tool for computational neuroanatomy based on
medical images. ANTS reads any image type that can be read by ITK
(www.itk.org), that is, jpg, tiff, hdr, nii, nii.gz, mha/d and more
image types as well. For the most part, ANTS will output float images
which you can convert to other types with the ANTS
ConvertImagePixelType tool. ImageMath has a bunch of basic utilities
such as multiplication, inversion and many more advanced tools such as
computation of the Lipschitz norm of a deformation field. ANTS
programs may be called from the command line on almost any platform
.... you can compile the code yourself or use the precompiled binaries
for Windows (Vista), OSX (Darwin) or linux (32 bit or 64 bit).
Download the binaries that are correct for you. If you are a naive
user (not from a medical imaging background) then you might still find
the tools here useful. Many of the operations available, for
instance, in PhotoShop are available in ANTS and many more are
available as well. For instance, ANTS tools may be useful in face
mapping / morphing and also in generating animations from two
different images, for instance, interpolating between frames in a
movie. But, mainly, ANTS is useful for brain mapping, segmentation,
measuring cortical thickness and in generating automated or
semi-automated labeling of three-dimensional imagery (e.g. labeling
hippocampus or cortical regions or lobes of the lung). Many
prior-based segmentation possibilities are available in the Atropos
tool, including three tissue segmentation, structure-specific
segmentation and brain extracton.
The ants.pdf file has more details and examples.
New Stuff 1.9.x : Requires git-itk. must be compiled with USE_REVIEW on.
official release of atropos segmentation tool.
checked compilation on windows os.
we now save vector nii.gz files and do not store component images.
improves ImageMath tensor functions.
many operations may be performed on vector images.
some enhancements include:
you can warp a vector field represented as a nii.gz via WarpImageMultiTransform
MeasureMinMaxMean and MultiplyImages support vector images.
the only functionality that we "lost" is the ability to use a bspline interpolator with WIMT. the BSplineInterpolateImageFunction doesnt support vector valued pixels.
Atropos updated and validated.
New Stuff 1.9.2 :
New atropos interface + ROIStatistics in ImageMath
New Stuff 1.9.1 :
Atropos refactored , vtk dependencies allowed , additional tools for surface-based mapping (not much tested), augmented warping for vtk files
Must compile ITK with USE_REVIEW_STATISTICS ON if you want Atropos functionality
Should compile ITK with USE_REVIEW ON
Should compile ITK with USE_OPTIMIZED_REGISTRATION ON
Should have ITK v 3.20 or greater.
New Stuff 1.9 :
Atropos revisions + various utilities.
New Stuff 1.8 :
Sped up CC metric -- comparable to PR but faster.
Fixed the MI metric -- fast and functional.
WarpTimeSeries --- for deforming 4D or vector images.
New Stuff 1.7 :
Now using SymmetricSecondOrderPixelType -- fixes some DT bugs with Nifti I/O etc.
This means our nii tensors have SYMMATRIX as intent (as with standard)
Update in parameters for convergence and inversion -- aids performance.
TensorToVector coloring --- also preliminary integration of vector field
Speed up number one for the CC metric (number two coming later).
Atropos ! new tool for segmentation.
Nick's N4 bias correction tool.
Updates to buildtemplateparallel that allow parallel use on multicore machines.
Various utilities and a few improvements in usage.
New Stuff 1.6 :
Check DT tensor ordering in DTI Read/Write
HistogramMatching in ImageMath
ConvertImagePixelType utility
Affine averaging in buildtemplateparallel
Updated time-dependent diffeomorphic mapping (option --geodesic 1 / 2 ).
Updated with a greedy exponential mapping diffeomorphic approach akin to DiffeomorphicDemons.
Bug fix in checking ANTS convergence.
Other miscellaneous including minor Apocrita changes and allowing spaces in command line interface.
# directory guide:
Documentation -- pdf / tex describing ANTS
Examples -- the executable programs and test data in Examples/Data
Scripts -- user-friendly scripts for template building and running studies
Utilities --- basic utilities
ImageRegistration -- base code for ImageRegistration
Temporary -- where temporary code lives
Tensor -- base code for diffusion tensor operations
Use cmake (cmake.org) to set up compilation.
To build ANTS, do the following:
1. get ANTS
svn checkout https://advants.svn.sourceforge.net/svnroot/advants ANTS
2. get itk :
cvs -d :pserver:anoncvs@www.itk.org:/cvsroot/Insight co Insight
3. compile itk and ANTS -- link ANTS to itk build directory
ccmake ANTS/Examples/
4. call ctest in the compile directory and verify that the tests pass
5. in general, to perform a mapping :
# include the mask, if desired. mask is inclusive.
ANTS 3 -m PR[tp22_s1.nii,template.nii.gz,1,4] -i 50x20x10 -o tp22map -t SyN[0.25] -x mask.nii.gz -r Gauss[3,0]
# The ANTS executable reflects the variational optimization problem
# which balances regularization of the transformation model's parameters
# and the quality of matchins as driven by a similarity (or data) term
#
# explanation : -m PR -- the similarity metric => PR[fixed.nii,moving,nii,weight,metric-radius]
# : -i 50x20 -- the number of iterations and number of resolution levels
# : -o tp22map -- the output naming convention (can add an extension)
# : -t SyN/Elast/Exp/Syn[time] --- transformation model
# : -r Gauss/Bspline -- the regularization models
# Gauss[gradient-regularize,deformation-regularize]
# : -x mask -- an inclusive mask -- dictates what information to use in registration
# -- defined in the fixed domain but works on both domains
# : -m other metrics : PSE MSQ MI etc -- some are label-image (or point-set) metrics
# and some are intensity metrics
#
# Call ANTS with no params to get detailed help
#
# warp the tp22 to template image
WarpImageMultiTransform 3 tp22_s1.nii tp22totemplate.nii -R template.nii.gz -i tp22mapAffine.txt tp22mapInverseWarp.nii
# warp the template image to tp22 -- note reversal of order from above
WarpImageMultiTransform 3 template.nii.gz templatetotp22.nii -R tp22_s1.nii tp22mapWarp.nii tp22mapAffine.txt
# or call ants.sh for a standard approach.
#
# use CreateJacobianDeterminantImage to get log-Jacobian (volumetric change) images
# and programs StudentsTestOnImages or GLM to peform a statistical study
# one might also use SurfaceCurvature to do a curvature study
# or LaplacianThickness to do a thickness study
#