mercure-imaging / mercure

mercure DICOM Orchestrator
https://mercure-imaging.org
MIT License
67 stars 32 forks source link

send.py dcmsend arguments extension #48

Closed alipairon closed 1 year ago

alipairon commented 1 year ago

Hello!

I would like to suggest adding as an option the "-dn" flag for dcmsend command in send.py

It's useful when SCP accepts the compressed and uncompressed syntaxes at the same time (and most of them are), the dcmsend without this flag will prefer the uncompressed one and will decompress it before sending it to SCP.

tblock79 commented 1 year ago

The -dn flag forces dcmsend to never decompress the images. This would break compliance with the DICOM standard because according to the DICOM standard, every DICOM node must be able to provide images also in decompressed format. Otherwise, the connection would fail if the receiver/target is unable to handle compressed images. Therefore, setting the -dn flag would not be a good idea.

We can take a look at whether dcmsend could be replaced with storescu, which offers more flexibility for configuring the proposed transfer syntax.