From: tbaudier Date: Wed, 19 Dec 2018 14:50:37 +0000 (+0100) Subject: Debug opening dicom with rotation matrix X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?p=clitk.git;a=commitdiff_plain;h=5f801bf0b07486889123e941d6913d4369dfc86f Debug opening dicom with rotation matrix With the introduction of the choose in the Image reader to open the dicom with or without the patient coordinate system, I need to pass the value of the patient flag to take into account the transformation matrix --- diff --git a/tools/clitkDicom2Image.cxx b/tools/clitkDicom2Image.cxx index aa63b04..5c9889b 100644 --- a/tools/clitkDicom2Image.cxx +++ b/tools/clitkDicom2Image.cxx @@ -201,6 +201,7 @@ int main(int argc, char * argv[]) // Read write serie vvImageReader::Pointer reader = vvImageReader::New(); reader->SetInputFilenames(sorted_files); + reader->SetPatientCoordinateSystem(args_info.patientSystem_flag); reader->Update(vvImageReader::DICOM); if (reader->GetLastError().size() != 0) { std::cerr << reader->GetLastError() << std::endl;