From e67c69acfc1c79fcb4119babcd2991be9f59d597 Mon Sep 17 00:00:00 2001 From: David Sarrut Date: Fri, 3 Feb 2012 07:57:12 +0100 Subject: [PATCH] Add verbose options --- itk/clitkSliceBySliceRelativePositionFilter.txx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/itk/clitkSliceBySliceRelativePositionFilter.txx b/itk/clitkSliceBySliceRelativePositionFilter.txx index 30cd8f9..16571ea 100644 --- a/itk/clitkSliceBySliceRelativePositionFilter.txx +++ b/itk/clitkSliceBySliceRelativePositionFilter.txx @@ -240,6 +240,10 @@ GenerateOutputInformation() int nb=0; mObjectSlices[i] = LabelizeAndCountNumberOfObjects(mObjectSlices[i], 0, true, 1, nb); + if (GetVerboseSlicesFlag()) { + std::cout << "slice " << i << " nb = " << nb << std::endl; + } + // If no object and empty slices and if we need the full fuzzy map, create a dummy one. if ((nb==0) && (this->GetFuzzyMapOnlyFlag())) { typename FloatSliceType::Pointer one = FloatSliceType::New(); @@ -297,6 +301,7 @@ GenerateOutputInformation() if (GetVerboseSlicesFlag()) { std::cout << "Slice " << i << std::endl; relPosFilter->VerboseStepFlagOn(); + //relPosFilter->WriteStepFlagOn(); } relPosFilter->WriteStepFlagOff(); // relPosFilter->VerboseMemoryFlagOn(); -- 2.47.1