From 315a2310ec2ba4171d4acc210c4fc6c52e0aa7a7 Mon Sep 17 00:00:00 2001 From: Nick Tustison Date: Tue, 11 Jun 2024 18:42:24 -0700 Subject: [PATCH] BUG: Manifold parzen windows. --- ImageSegmentation/antsAtroposSegmentationImageFilter.hxx | 8 ++++---- .../antsManifoldParzenWindowsListSampleFunction.hxx | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/ImageSegmentation/antsAtroposSegmentationImageFilter.hxx b/ImageSegmentation/antsAtroposSegmentationImageFilter.hxx index ff8480bce..c2e8943bc 100644 --- a/ImageSegmentation/antsAtroposSegmentationImageFilter.hxx +++ b/ImageSegmentation/antsAtroposSegmentationImageFilter.hxx @@ -615,7 +615,7 @@ AtroposSegmentationImageFilter::Gener { this->m_MixtureModelComponents[n]->SetListSampleWeights(&weights[n]); this->m_MixtureModelComponents[n]->SetInputListSample(samples[n]); - this->m_MixtureModelComponents[n]->ClearInputListSample(); + // this->m_MixtureModelComponents[n]->ClearInputListSample(); if (this->m_UseMixtureModelProportions) { @@ -635,7 +635,7 @@ AtroposSegmentationImageFilter::Gener { this->m_MixtureModelComponents[n]->SetListSampleWeights(d, &weights[labelSet[d] - 1]); this->m_MixtureModelComponents[n]->SetIndexedInputListSample(d, samples[labelSet[d] - 1]); - this->m_MixtureModelComponents[n]->ClearInputListSample(d); + // this->m_MixtureModelComponents[n]->ClearInputListSample(d); } this->m_MixtureModelProportions[n] = 0.0; @@ -1279,7 +1279,7 @@ AtroposSegmentationImageFilter::Updat { this->m_MixtureModelComponents[n]->SetListSampleWeights(&weights); this->m_MixtureModelComponents[n]->SetInputListSample(sample); - this->m_MixtureModelComponents[n]->ClearInputListSample(); + // this->m_MixtureModelComponents[n]->ClearInputListSample(); } else { @@ -1290,7 +1290,7 @@ AtroposSegmentationImageFilter::Updat { this->m_MixtureModelComponents[n]->SetListSampleWeights(d, &weights); this->m_MixtureModelComponents[n]->SetIndexedInputListSample(d, sample); - this->m_MixtureModelComponents[n]->ClearInputListSample(d); + // this->m_MixtureModelComponents[n]->ClearInputListSample(d); } } this->m_MixtureModelProportions[n] = 0.0; diff --git a/ImageSegmentation/antsManifoldParzenWindowsListSampleFunction.hxx b/ImageSegmentation/antsManifoldParzenWindowsListSampleFunction.hxx index 1446e81d1..3d488475f 100644 --- a/ImageSegmentation/antsManifoldParzenWindowsListSampleFunction.hxx +++ b/ImageSegmentation/antsManifoldParzenWindowsListSampleFunction.hxx @@ -191,7 +191,7 @@ ManifoldParzenWindowsListSampleFunction::Evalua } else { - typename TreeGeneratorType::KdTreeType ::InstanceIdentifierVectorType neighbors; + typename TreeGeneratorType::KdTreeType::InstanceIdentifierVectorType neighbors; this->m_KdTreeGenerator->GetOutput()->Search(measurement, numberOfNeighbors, neighbors); for (unsigned int j = 0; j < numberOfNeighbors; j++) {