Skip to content

Commit 95c7abf

Browse files
authored
Merge pull request #1976 from gdevenyi/update-commandline-docs
DOC: Update all command-line help to correspond to code
2 parents aaa34d6 + f20bba3 commit 95c7abf

54 files changed

Lines changed: 199 additions & 123 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

Examples/ANTSIntegrateVelocityField.cxx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,8 +163,11 @@ ANTSIntegrateVelocityField(std::vector<std::string> args, std::ostream * /*out_s
163163

164164
if (argc < 4)
165165
{
166-
std::cerr << "Usage: " << argv[0] << " reference_image VelocityIn.mhd DeformationOut.nii.gz time0 time1 dT "
166+
std::cerr << "Usage: " << argv[0] << " reference_image VelocityIn.mhd DeformationOut.nii.gz time0 time1 dT "
167167
<< std::endl;
168+
std::cerr << " time0: start time for integration (e.g. 0)" << std::endl;
169+
std::cerr << " time1: end time for integration (e.g. 1)" << std::endl;
170+
std::cerr << " dT: time step for integration (e.g. 0.1)" << std::endl;
168171
if (argc >= 2 && (std::string(argv[1]) == std::string("--help") || std::string(argv[1]) == std::string("-h")))
169172
{
170173
return EXIT_SUCCESS;

Examples/ANTSJacobian.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -597,7 +597,7 @@ ANTSJacobian(std::vector<std::string> args, std::ostream * /*out_stream = nullpt
597597

598598
if (argc < 3)
599599
{
600-
std::cout << "Usage: " << argv[0] << " ImageDim gWarp outfile uselog maskfn normbytotalbool projectionvector "
600+
std::cout << "Usage: " << argv[0] << " ImageDim gWarp outfile {uselog=0} {maskfn} {normbytotalbool=0} {projectionvector}"
601601
<< std::endl;
602602
std::cout << " for example " << std::endl
603603
<< " ANTSJacobian 3 myWarp.nii Output 1 templatebrainmask.nii 1 1x0 " << std::endl;

Examples/ANTSUseDeformationFieldToGetAffineTransform.cxx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -469,8 +469,8 @@ ANTSUseDeformationFieldToGetAffineTransform(std::vector<std::string> args, std::
469469
<< " zzzWarp.nii.gz load_ratio(ex: 0.01) [rigid | affine] OutAffine.txt [mask.nii.gz]" << std::endl;
470470
std::cout << " we expect the input deformation field in the same physical space as the images you want to "
471471
<< std::endl;
472-
std::cout << "load_ratio: ratio of points to be loaded from deformation field (to save memory) " << std::endl;
473-
std::cout << " the mask gives the region from which points will be selected ... " << std::endl;
472+
std::cout << "load_ratio: ratio of points to be loaded from deformation field (to save memory, e.g. 0.01)" << std::endl;
473+
std::cout << " mask.nii.gz: optional mask to restrict point selection (default: no mask)" << std::endl;
474474
if (argc >= 2 && (std::string(argv[1]) == std::string("--help") || std::string(argv[1]) == std::string("-h")))
475475
{
476476
return EXIT_SUCCESS;

Examples/AverageTensorImages.cxx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,8 +136,8 @@ AverageTensorImages(std::vector<std::string> args, std::ostream * /*out_stream =
136136
{
137137
if (argc - 4 < 1)
138138
{
139-
std::cerr << "Basic useage ex: " << std::endl;
140-
std::cerr << argv[0] << " ImageDimension average.nii mathtype list-of-files-via-wildcard " << std::endl;
139+
std::cerr << "Usage: " << std::endl;
140+
std::cerr << argv[0] << " ImageDimension average.nii mathtype list-of-files-via-wildcard " << std::endl;
141141
std::cerr << " e.g. \n AverageTensorImages 3 average.nii 1 *registered.nii " << std::endl;
142142
std::cerr << " mathtype=[0=log-euclidean, 1=euclidean] " << std::endl;
143143
if (argc >= 2 && (std::string(argv[1]) == std::string("--help") || std::string(argv[1]) == std::string("-h")))

Examples/ClusterImageStatistics.cxx

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -334,16 +334,17 @@ ClusterImageStatistics(std::vector<std::string> args, std::ostream * /*out_strea
334334
std::cout << " Given an ROI and Label Image, find the max and average value \n in a value image where the value "
335335
"> some user-defined threshold \n and the cluster size is larger than some min size. \n "
336336
<< std::endl;
337-
std::cout << "Usage: \n " << std::endl;
337+
std::cout << "Usage: " << std::endl;
338338
std::cout << argv[0]
339-
<< " ImageDimension ROIMask.ext LabelImage.ext OutPrefix MinimumClusterSize ValueImageThreshold "
340-
"Image1WithValuesOfInterest.ext ... ImageNWithValuesOfInterest.ext \n \n "
339+
<< " ImageDimension ROIMask.ext LabelImage.ext OutPrefix {MinimumClusterSize=1} {ValueImageThreshold=0} "
340+
"Image1WithValuesOfInterest.ext ... ImageNWithValuesOfInterest.ext"
341341
<< std::endl;
342-
std::cout << " ROIMask.ext -- overall region of interest \n \n LabelImage.ext -- labels for the sub-regions, e.g. "
343-
"Brodmann or just unique labels (see LabelClustersUniquely ) \n \n OutputPrefix -- all output has "
344-
"this prefix \n \n MinimumClusterSize -- the minimum size of clusters of interest \n \n "
345-
"ValueImageThreshold -- minimum value of interest \n \n Image*WithValuesOfInterest.ext --- "
346-
"image(s) that define the values you want to measure \n ";
342+
std::cout << " ROIMask.ext -- overall region of interest" << std::endl;
343+
std::cout << " LabelImage.ext -- labels for sub-regions (see LabelClustersUniquely)" << std::endl;
344+
std::cout << " OutPrefix -- prefix for all output files" << std::endl;
345+
std::cout << " MinimumClusterSize -- minimum cluster size in voxels (default: 1)" << std::endl;
346+
std::cout << " ValueImageThreshold -- minimum value of interest (default: 0)" << std::endl;
347+
std::cout << " Image*WithValuesOfInterest.ext -- image(s) that define the values to measure" << std::endl;
347348
if (argc >= 2 && (std::string(argv[1]) == std::string("--help") || std::string(argv[1]) == std::string("-h")))
348349
{
349350
return EXIT_SUCCESS;

Examples/ComposeMultiTransform.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,7 @@ ComposeMultiTransform(std::vector<std::string> args, std::ostream * /*out_stream
330330
{
331331
std::cout << "ComposeMultiTransform ImageDimension output_field [-R reference_image] "
332332
<< "{[deformation_field | [-i] affine_transform_txt ]}" << std::endl;
333-
std::cout << " Usage has the same form as WarpImageMultiTransform " << std::endl;
333+
std::cout << " Composes multiple transforms (warp fields and/or affine) into a single combined transform." << std::endl;
334334
std::cout << " For Example: " << std::endl;
335335
std::cout << std::endl;
336336
std::cout << argv[0] << " Dimension outwarp.nii -R template.nii ExistingWarp.nii ExistingAffine.nii "

Examples/ConvertImagePixelType.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ ConvertImagePixelType(std::vector<std::string> args, std::ostream * /*out_stream
138138

139139
if (argc < 3)
140140
{
141-
std::cout << "Usage: " << argv[0] << " infile.nii out.ext TYPE-OPTION " << std::endl;
141+
std::cout << "Usage: " << argv[0] << " infile.nii out.ext TYPE-OPTION (default: 0 = char) " << std::endl;
142142
std::cout << " ext is the extension you want, e.g. tif. " << std::endl;
143143
std::cout << " TYPE-OPTION : TYPE " << std::endl;
144144
std::cout << " 0 : char " << std::endl;

Examples/ConvertInputImagePixelTypeToFloat.cxx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,8 @@ ConvertInputImagePixelTypeToFloat(std::vector<std::string> args, std::ostream *
122122

123123
if (argc < 3)
124124
{
125-
std::cout << "Usage: " << argv[0] << " infile.nii out.ext TYPE-OPTION " << std::endl;
125+
std::cout << "Usage: " << argv[0] << " infile.nii out.ext TYPE-OPTION (default: 0 = char) " << std::endl;
126+
std::cout << " TYPE-OPTION specifies the input image pixel type for reading (output is always float). " << std::endl;
126127
std::cout << " ext is the extension you want, e.g. tif. " << std::endl;
127128
std::cout << " TYPE-OPTION : TYPE " << std::endl;
128129
std::cout << " 0 : char " << std::endl;

Examples/CopyImageHeaderInformation.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ CopyImageHeaderInformation(std::vector<std::string> args, std::ostream * /*out_s
173173
{
174174
std::cout << "Usage: " << argv[0]
175175
<< " refimage.ext imagetocopyrefimageinfoto.ext imageout.ext boolcopydirection boolcopyorigin "
176-
"boolcopyspacing {bool-Image2-IsTensor}"
176+
"boolcopyspacing {bool-Image2-IsTensor=0}"
177177
<< std::endl;
178178
if (argc >= 2 && (std::string(argv[1]) == std::string("--help") || std::string(argv[1]) == std::string("-h")))
179179
{

Examples/CreateDTICohort.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -907,7 +907,7 @@ InitializeCommandLineOptions(itk::ants::CommandLineParser * parser)
907907
std::string("images. Van Hecke uses the noise-estimation method of Sijbers et ") +
908908
std::string("al. \"Automatic estimation of the noise variance from the ") +
909909
std::string("histogram of a magnetic resonance image\", Phys. Med. Biol. ") +
910-
std::string("52:1335-1348, 2007.");
910+
std::string("52:1335-1348, 2007. Default = 0 (no noise added).");
911911

912912
OptionType::Pointer option = OptionType::New();
913913
option->SetLongName("noise-sigma");

0 commit comments

Comments
 (0)