From: David Sarrut Date: Fri, 3 Feb 2012 06:52:24 +0000 (+0100) Subject: correct fuzzyMapOnlyFlag X-Git-Tag: v1.3.0~104^2~8^2~8 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=c052120cffbe8dfec61446dd715a9dd145a4dccd;p=clitk.git correct fuzzyMapOnlyFlag --- 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;