Does ITK provide APIs or classes that I can use to communicate with a PACS/DICOM server? If not, does the GDCM library that ships with ITK provide this functionality? If yes either way, do we have C++ examples somewhere that I can look at for this?
As far as I know, ITK does not expose any of these functionalities that are part of GDCM and DCMTK. You should be able to do what you want using either of these libraries though.
So I can include some GDCM headers in my application, use those GDCM classes, and compile it against my ITK installation to send/receive data from PACS? Are there examples for this?
I don’t know of any example. However, in this case, you may want to build GDCM outside of ITK and then set its path when configuring ITK with ITK_USE_SYSTEM_GDCM set to ON. This should allow you have have access to the GDCM package through CMake when calling find_package(GDCM) in your own CMakeLists.txt. I don’t think GDCM is pruned when integrated in ITK, so if you don’t need any CMake information for your project, that may not be necessary