From c15077d9fe8597b9de9d0d354170b0eafd6f4bcd Mon Sep 17 00:00:00 2001 From: Sir0ga90 <1sergey99chursin0@gmail.com> Date: Fri, 1 Nov 2024 18:58:28 +0100 Subject: [PATCH] Fix dicom folder opening --- lib/src/dicomRoutines.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/src/dicomRoutines.cpp b/lib/src/dicomRoutines.cpp index 3c64f62..d30adf7 100644 --- a/lib/src/dicomRoutines.cpp +++ b/lib/src/dicomRoutines.cpp @@ -65,7 +65,7 @@ vtkSmartPointer VTKDicomRoutines::loadDicomImage( const std::strin rawVolumeData->DeepCopy(reader->GetOutput()); // check if load was successful - if( checkDataLoaded(rawVolumeData) ) + if( !checkDataLoaded(rawVolumeData) ) { cerr << "No DICOM data in directory" << endl; return NULL;