Sometimes (eg: with MR from HEH), the basic algorithm is not sufficient to sort dicom slices
The sorting reverse the slice order
}
}
+ //===========================================
+ // Reverse the slice order (for MR from HEH)
+ if (args_info.reverse_flag)
+ std::reverse(sorted_files.begin(), sorted_files.end());
+
//===========================================
// Read write serie
vvImageReader::Pointer reader = vvImageReader::New();
option "focal_origin" - "Output files with FOCAL-like origin, instead of the origin present in the dicom files" flag off
option "patientSystem" p "Open the image with patient coordinate system" flag off
option "instanceNumber" n "Sort the images regarding instance number in dicom tag" flag off
+option "reverse" r "Reverse the slice order" flag off