Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

COMP: Fix compilation syntax errors from failed build #1303

Merged
merged 1 commit into from
Feb 5, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions ImageSegmentation/itkWeightedVotingFusionImageFilter.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -522,24 +522,24 @@ WeightedVotingFusionImageFilter<TInputImage, TOutputImage>
}

const RealType patchSimilarity = [&] () -> RealType {
// use nonnormalized vector for MSQ
// use non-normalized vector for MSQ
switch(this->m_SimilarityMetric)
{
case NonLocalPatchBasedImageFilterEnums::SimilarityMetric::MEAN_SQUARES):
case NonLocalPatchBasedImageFilterEnums::SimilarityMetric::MEAN_SQUARES:
// use non-normalized vectors for MSE
return this->ComputeNeighborhoodPatchSimilarity(
this->m_AtlasImages[i], searchIndex, targetPatch, useOnlyFirstAtlasImage);
break;
case NonLocalPatchBasedImageFilterEnums::SimilarityMetric::PEARSON_CORRELATION):
case NonLocalPatchBasedImageFilterEnums::SimilarityMetric::PEARSON_CORRELATION:
// use normalized vector for PC
return this->ComputeNeighborhoodPatchSimilarity(
this->m_AtlasImages[i], searchIndex, normalizedTargetPatch, useOnlyFirstAtlasImage );
break;
default:
itkGenericException("Invalid SimilarityMetric Chosen.");
itkGenericExceptionMacro("Invalid SimilarityMetric Chosen.");
}
return 0.0;
}
}();

if( patchSimilarity < minimumPatchSimilarity )
{
Expand Down