//#include #include "gdcm.h" #include "gdcmHeaderHelper.h" //"/mnt/esavoir/DICOM/1.3.46.670589.5.2.14.2198403904.1050334349.261378/1.3.46.670589.5.2.14.2198403904.1050336422.225973" //$ for i in `ls` ; do explacr filein=$i | grep "Image Number"; explacr filein=$i| grep "Instance"| grep Media ; done; int main(int argc, char* argv[]) { gdcmSerieHeaderHelper *serie = new gdcmSerieHeaderHelper(); serie->AddFileName( "/mnt/esavoir/DICOM/1.3.46.670589.5.2.14.2198403904.1050334349.261378/1.3.46.670589.5.2.14.2198403904.1050336422.225973/1.3.46.670589.5.2.14.2198403904.1050336422.139570" ); //Image Number = 1 serie->AddFileName( "/mnt/esavoir/DICOM/1.3.46.670589.5.2.14.2198403904.1050334349.261378/1.3.46.670589.5.2.14.2198403904.1050336422.225973/1.3.46.670589.5.2.14.2198403904.1050336422.333707" ); //Image Number = 2 serie->AddFileName( "/mnt/esavoir/DICOM/1.3.46.670589.5.2.14.2198403904.1050334349.261378/1.3.46.670589.5.2.14.2198403904.1050336422.225973/1.3.46.670589.5.2.14.2198403904.1050336422.511333" ); //Image Number = 3 serie->AddFileName( "/mnt/esavoir/DICOM/1.3.46.670589.5.2.14.2198403904.1050334349.261378/1.3.46.670589.5.2.14.2198403904.1050336422.225973/1.3.46.670589.5.2.14.2198403904.1050336422.679529" ); //Image Number = 4 serie->AddFileName( "/mnt/esavoir/DICOM/1.3.46.670589.5.2.14.2198403904.1050334349.261378/1.3.46.670589.5.2.14.2198403904.1050336422.225973/1.3.46.670589.5.2.14.2198403904.1050336422.859559" ); //Image Number = 5 serie->AddFileName( "/mnt/esavoir/DICOM/1.3.46.670589.5.2.14.2198403904.1050334349.261378/1.3.46.670589.5.2.14.2198403904.1050336422.225973/1.3.46.670589.5.2.14.2198403904.1050336423.216068" ); //Image Number = 7 serie->AddFileName( "/mnt/esavoir/DICOM/1.3.46.670589.5.2.14.2198403904.1050334349.261378/1.3.46.670589.5.2.14.2198403904.1050336422.225973/1.3.46.670589.5.2.14.2198403904.1050336423.389302" ); //Image Number = 8 serie->AddFileName( "/mnt/esavoir/DICOM/1.3.46.670589.5.2.14.2198403904.1050334349.261378/1.3.46.670589.5.2.14.2198403904.1050336422.225973/1.3.46.670589.5.2.14.2198403904.1050336423.43143" ); //Image Number = 6 serie->OrderGdcmFileList(); }