Skip to content

Commit

Permalink
Merge pull request #1531 from ANTsX/antsAIMI
Browse files Browse the repository at this point in the history
DOC: Recommend Mattes MI as the default metric
  • Loading branch information
cookpa committed May 1, 2023
2 parents 1c5c422 + edf71eb commit 7b33cc6
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions Examples/antsAI.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -1595,19 +1595,20 @@ InitializeCommandLineOptions(itk::ants::CommandLineParser * parser)
{
std::string description =
std::string("These image metrics are available: ") +
std::string("MI: joint histogram and Mattes: mutual information and GC: global correlation.");
std::string("Mattes: Mattes mutual information (recommended), GC: global correlation, MI: joint histogram mutual information");

OptionType::Pointer option = OptionType::New();
option->SetLongName("metric");
option->SetShortName('m');
option->SetUsageOption(0,
"MI[fixedImage,movingImage,<numberOfBins=32>,<samplingStrategy={None,Regular,Random}>,<"
"samplingPercentage=[0,1]>]");
option->SetUsageOption(1,
"Mattes[fixedImage,movingImage,<numberOfBins=32>,<samplingStrategy={None,Regular,Random}>,<"
"samplingPercentage=[0,1]>]");
option->SetUsageOption(
2, "GC[fixedImage,movingImage,<radius=NA>,<samplingStrategy={None,Regular,Random}>,<samplingPercentage=[0,1]>]");
option->SetUsageOption(3,
"MI[fixedImage,movingImage,<numberOfBins=32>,<samplingStrategy={None,Regular,Random}>,<"
"samplingPercentage=[0,1]>]");

option->SetDescription(description);
parser->AddOption(option);
}
Expand Down

0 comments on commit 7b33cc6

Please sign in to comment.