From: tbaudier Date: Wed, 14 Mar 2018 13:18:10 +0000 (+0100) Subject: Add orientation in clitkImage2DicomDose X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=36836525da20cf1ae0eb52c4f66554a205128190;p=clitk.git Add orientation in clitkImage2DicomDose --- 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);