hreader.Read();
gdcm::DataSet& ds = hreader.GetFile().GetDataSet();
- if (args_info.extract_series_flag) {
- gdcm::Attribute<0x20,0x000e> series_UID_att;
- series_UID_att.SetFromDataSet(ds);
- series_UID = series_UID_att.GetValue();
- }
+ gdcm::Attribute<0x20,0x000e> series_UID_att;
+ series_UID_att.SetFromDataSet(ds);
+ series_UID = series_UID_att.GetValue().c_str();
series_UIDs.insert(series_UID);
theorigin[series_UID] = gdcm::ImageHelper::GetOriginValue(hreader.GetFile());
header->SetMaxSizeLoadEntry(16384); // required ?
header->Load();
- if (args_info.extract_series_flag) {
- series_UID = header->GetEntryValue(0x20,0x000e).c_str();
- }
+ series_UID = header->GetEntryValue(0x20,0x000e).c_str();
series_UIDs.insert(series_UID);
theorigin[series_UID].resize(3);
# file clitkDicom2Image.ggo
package "clitk"
-version "Try to convert a DICOM into an image (.hdr, .vox...)"
+version "Try to convert a DICOM into an image (.hdr, .vox...) identifying all available series"
option "config" - "Config file" string no
option "verbose" v "Verbose" flag off
option "output" o "Output image filename" string yes
option "std_input" - "Take the like of input file from stdin, to support huge lists of filenames" flag off
option "focal_origin" - "Output files with FOCAL-like origin, instead of the origin present in the dicom files" flag off
-option "extract_series" s "Identify different series in the file list and create the MHDs accordinly" flag off
option "patientSystem" p "Open the image with patient coordinate system" flag off