From c052120cffbe8dfec61446dd715a9dd145a4dccd Mon Sep 17 00:00:00 2001 From: David Sarrut Date: Fri, 3 Feb 2012 07:52:24 +0100 Subject: [PATCH] correct fuzzyMapOnlyFlag --- itk/clitkSliceBySliceRelativePositionFilter.txx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/itk/clitkSliceBySliceRelativePositionFilter.txx b/itk/clitkSliceBySliceRelativePositionFilter.txx index 449ffff..a8d12ad 100644 --- a/itk/clitkSliceBySliceRelativePositionFilter.txx +++ b/itk/clitkSliceBySliceRelativePositionFilter.txx @@ -127,7 +127,7 @@ GenerateOutputInformation() PrintOptions(); } - if (this->GetFuzzyMapOnlyFlag()) this->ComputeFuzzyMapFlagOn(); + // if (this->GetFuzzyMapOnlyFlag()) this->ComputeFuzzyMapFlagOn(); // Get input pointer input = dynamic_cast(itk::ProcessObject::GetInput(0)); @@ -229,7 +229,7 @@ GenerateOutputInformation() mObjectSlices[i] = LabelizeAndCountNumberOfObjects(mObjectSlices[i], 0, true, 1, nb); // If no object and empty slices and if we need the full fuzzy map, create a dummy one. - if ((nb==0) && (this->GetComputeFuzzyMapFlag())) { + if ((nb==0) && (this->GetFuzzyMapOnlyFlag())) { typename FloatSliceType::Pointer one = FloatSliceType::New(); one->CopyInformation(mObjectSlices[0]); one->SetRegions(mObjectSlices[0]->GetLargestPossibleRegion()); @@ -306,13 +306,13 @@ GenerateOutputInformation() // should we stop after fuzzy map ? relPosFilter->SetFuzzyMapOnlyFlag(this->GetFuzzyMapOnlyFlag()); - relPosFilter->SetComputeFuzzyMapFlag(this->GetComputeFuzzyMapFlag()); + // relPosFilter->SetComputeFuzzyMapFlag(this->GetComputeFuzzyMapFlag()); // Go ! relPosFilter->Update(); // If we stop after the fuzzy map, store the fuzzy slices - if (this->GetComputeFuzzyMapFlag()) { + if (this->GetFuzzyMapOnlyFlag()) { mFuzzyMapSlices[i] = relPosFilter->GetFuzzyMap(); // writeImage(mFuzzyMapSlices[i], "slice_"+toString(i)+".mha"); } @@ -348,7 +348,7 @@ GenerateOutputInformation() this->template StopCurrentStep(m_working_input); // Join the fuzzy map if needed - if (this->GetComputeFuzzyMapFlag()) { + if (this->GetFuzzyMapOnlyFlag()) { this->m_FuzzyMap = clitk::JoinSlices(mFuzzyMapSlices, m_working_input, GetDirection()); this->template StopCurrentStep(this->m_FuzzyMap); if (this->GetFuzzyMapOnlyFlag()) return; -- 2.45.0