From 5f801bf0b07486889123e941d6913d4369dfc86f Mon Sep 17 00:00:00 2001 From: tbaudier Date: Wed, 19 Dec 2018 15:50:37 +0100 Subject: [PATCH] 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 --- tools/clitkDicom2Image.cxx | 1 + 1 file changed, 1 insertion(+) 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; -- 2.47.1