X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=itk%2FclitkSliceBySliceRelativePositionFilter.txx;h=a8d12ada76206a2ea10d79e0bf2d7a30b22d6341;hb=e14bc09340c3ecb3c5370ce86b5b0afa572254be;hp=449ffff9f5a06162a5ed1b11b387a9ade104e549;hpb=9bbc85952f563dc766b73a864a5ccc0da5a6a654;p=clitk.git 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;