Dcmtk: Tutorial
movescu -aet MYAE -aec PACSNAME -aet MOVE_DESTINATION pacs_host 104 -k StudyInstanceUID=1.2.3.4... where MOVE_DESTINATION must match the AE title of your storescp . Compile with -ldcmdata -ldcmnet -loflog -lofstd .
storescp --output-directory ./received 11112 storescu -aet MYAE -aec TARGETAE localhost 11112 patient.dcm 4.8 Query a PACS for studies (C‑FIND) Create a query file query.wl : dcmtk tutorial
dcmodify -ma "StudyDescription=CT Chest" study.dcm dcmgpdir -r +D ./dicom_folder/ DICOMDIR 4.6 Network – receive studies (basic SCP) Start a listener on port 11112, storing files in ./received/ : storescp --output-directory
findscu -aet MYAE -aec PACSNAME pacs_host 104 -W query.wl First query to get StudyInstanceUID, then: then: return 0
return 0;
dcmdump +P PatientName +P StudyDate +P Modality patient.dcm dcmj2pnm +oj input.dcm output.png Options: +oj (JPEG lossless), +oy (JPEG lossy), +ob (BMP) 4.3 Anonymise a DICOM file Create a script or use dcmodify to clear tags: