From 900cc695b2a13048aca50fd5aba0d27a6ddf5a44 Mon Sep 17 00:00:00 2001 From: tbaudier Date: Fri, 9 Mar 2018 15:39:39 +0100 Subject: [PATCH] Update explanation about clitkExtractPatient --- segmentation/clitkExtractPatient.ggo | 3 ++- segmentation/clitkExtractPatientFilter.txx | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/segmentation/clitkExtractPatient.ggo b/segmentation/clitkExtractPatient.ggo index f494440..5b695ae 100644 --- a/segmentation/clitkExtractPatient.ggo +++ b/segmentation/clitkExtractPatient.ggo @@ -1,7 +1,8 @@ #File clitkExtractPatient.ggo package "clitkExtractPatient" version "1.0" -purpose "Input is binarized using initial thresholds, connected components are labeled (firstLabel). The air label (1) is removed. The remaining is binarized and relabeled, patient should now be the principal label (secondLabel). Two mechanismes are provided to influence the label images. Crop to reduce connectivity (image is restored to original size), eg for SBF. Decomposition through ersion and reconstruction through dilation (slow), eg for Pulmo bellows. Choose which labels to keep from second Label image. Final mask is cleaned by opening and closing." +purpose "Input is binarized using initial thresholds, connected components are labeled (firstLabel). The air label (1) is removed. The remaining is binarized and relabeled, patient should now be the principal label (secondLabel). Two mechanismes are provided to influence the label images. Crop to reduce connectivity (image is restored to original size), eg for SBF. Decomposition through erosion and reconstruction through dilation (slow), eg for Pulmo bellows. Choose which labels to keep from second Label image. Final mask is cleaned by opening and closing. +The image is padded first with air. If lungs are touching the border (so the air), set openingRadius to 1 in order to have lungs segmented inside the patient" option "config" - "Config file" string no option "imagetypes" - "Display allowed image types" flag off diff --git a/segmentation/clitkExtractPatientFilter.txx b/segmentation/clitkExtractPatientFilter.txx index fedf853..97f79c5 100644 --- a/segmentation/clitkExtractPatientFilter.txx +++ b/segmentation/clitkExtractPatientFilter.txx @@ -117,6 +117,7 @@ GenerateOutputInformation() { StartNewStep("Find low densities areas"); // Pad images with air to prevent patient touching the image border + // But the lungs can touch the outside air. In such case, use primaryOpeningRadius with 1 kernel typedef itk::ConstantPadImageFilter PadFilterType; typename PadFilterType::Pointer padFilter = PadFilterType::New(); padFilter->SetInput(input); -- 2.47.1