From 36836525da20cf1ae0eb52c4f66554a205128190 Mon Sep 17 00:00:00 2001 From: tbaudier Date: Wed, 14 Mar 2018 14:18:10 +0100 Subject: [PATCH] Add orientation in clitkImage2DicomDose --- tools/clitkImage2DicomDoseGenericFilter.txx | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tools/clitkImage2DicomDoseGenericFilter.txx b/tools/clitkImage2DicomDoseGenericFilter.txx index 38df32a..1c4e88f 100644 --- a/tools/clitkImage2DicomDoseGenericFilter.txx +++ b/tools/clitkImage2DicomDoseGenericFilter.txx @@ -189,6 +189,13 @@ Image2DicomDoseGenericFilter::UpdateWithDimAndPixelType() itk::EncapsulateMetaData(*outputDict, "0020|0032", value.str()); DD(origin); + // orientation + typename InputImageType::DirectionType direction = image->GetDirection(); + value.str(""); + value<(*outputDict, "0020|0037", value.str()); + DD(direction); + // size typename InputImageType::SizeType imageSize = image->GetLargestPossibleRegion().GetSize(); //DD(imageSize); -- 2.47.1