DICOM打印

Xilong Zhi
2010-09-15
2013-04-10
  • Xilong Zhi

    Xilong Zhi - 2010-09-15

    编译DCMTK之后会在相对应的APP文件夹下产生dcmpsprt.exe以及dcmprscu.exe这两个程序
    使用命令:
    D:\>dcmpsprt -v -c dcmpstat.cfg -printer PRINTER image.dcm
    会在database目录下生成三个文件
    然后在使用命令:
    D:\>dcmprscu -v -c dcmpstat.cfg -copies 1 database/SP_4b5f9496785f4404.dcm
    就能可以把文件发送到打印服务器上面去

     
  • Xilong Zhi

    Xilong Zhi - 2010-09-15

    从PACS服务器端取得DICOM图像

    编译好DCMTK之后会在app目录下生成findscu.exe以及movescu.exe的测试程序,可以把findscu.exe文件放到D盘的根目录中,打开cmd输入以下命令:
    D:\>findscu 192.168.1.7 4007 -aec "myonly" -v -k 0008,0052="STUDY" query.dcm -S
    假如Dicom服务器中有Dicom的文件就会返回Dicom文件的信息
    下面再记录一下movescu.exe的用法
    E:\>movescu 192.168.1.7 4008 -aec "myonly" -v -k 0020,000d="1.2.840.113619.2.67.2158294438.15745010109084247.20000" move.dcm -S
    把查询出来的UID替代0020,000d字段的信息,如果成功的话就会把Dicom服务器上面的Dicom文件拉取到客户端。

     
  • Xilong Zhi

    Xilong Zhi - 2010-09-15

    Dcmqrscp.cfg设置方法1(多客户端):

    #-----------------------------------------------
    #
    # Example configuration file for the dcmqrdb and dcmqrti applications.
    #
    #-----------------------------------------------

    # Global Configuration Parameters
    NetworkType = "tcp"
    NetworkTCPPort = 104
    MaxPDUSize = 16384
    MaxAssociations = 16
    Display = "no"

    HostTable BEGIN
    #
    # The HostTable defines symbolic names for collections of network
    # DICOM Application Entities. A symbolic name can represent a single
    # application entity or it can represent a group of application entities.
    # Each DICOM application entity is defined by a triple consisting of
    # Application Entitiy Title, host name and TCP/IP port number.
    #
    # Entry Format: SymbolicName = ( AETitle, HostName, Portnumber ), … |
    # SymbolicName = SymbolicName, …
    #
    # NOTE: in the current implementation you cannot substitute an IP address
    # for a hostname.
    #
    offis1 = (OFFIS, localhost, 8600)
    medsphere1 = (MEDSPHERE, localhost,9600)
    medsphere = (MedSphere, localhost,8600)
    findscu = (FINDSCU, localhost, 8600)
    movescu = (MOVESCU, localhost, 8600)
    storescu = (STORESCU, localhost, 8600)
    medsphere2 = (MedSphere, MACHINE3, 4006)
    medsphere3 = (MedSphere, machine1, 4006)
    medsphere4 = (MedSphere, tapesh, 8600)

    ANY = offis1 , medsphere1 , medsphere , findscu , movescu , storescu , medsphere2 , medsphere3 , medsphere4

    #
    HostTable END

    VendorTable BEGIN
    #
    # The VendorTable is used by the dcmqrdb and dcmqrti applications.
    # You can give a vendor name (r.h.s. entry below) to the dcmqrti
    # program and it will talk to all hosts and AEs of the vendor.
    # The dcmqrdb program can use the vendor table to restrict move destination
    # to hosts belonging to a vendor.
    # Also, the dcmqrti and dcmqrdb programs use the name defined on the left hand side
    # as the vendor name to display above images.
    #
    # The format:
    # VendorName = SymbolicName
    # The symbolic name should be defined in the HostTable.
    #
    "MedSphere CT Company" = ANY
    #
    VendorTable END

    AETable BEGIN
    #
    # Each row of the AETable defines an Application Entities (AE) Title known
    # to the dcmqrdb application. Each AE Title represents a separate
    # image database located in the specified file system directory (storage area).
    # Each AE Title has read/write, quota and peer access restrictions.
    #
    # Entry Format: AETitle StorageArea Access Quota Peers
    # AccessFormat: R | RW | W
    # Quota Format: ( maxStudies, maxBytesPerStudy )
    # Peers Format: ( Hostname, AETitle, Portnumber ), … |
    # Entry in HostTable |
    # ANY
    #
    #COMMON /home/dicom/db/COMMON R (200, 1024mb) ANY
    #ACME_STORE /home/dicom/db/ACME_STORE RW (9, 1024mb) acmeCTcompany
    #UNITED_STORE /home/dicom/db/UNITED_STORE RW (9, 1024mb) unitedMRcompany
    OFFIS D:\temp\OFFIS RW (6, 1024mb) ANY
    Azuriah D:\temp\Azuriah RW (6, 1024mb) ANY
    medsphere D:\temp\MEDSPHERE RW (200, 1024mb) ANY
    DicomEye D:\temp\DicomEye RW (200, 1024mb) ANY
    DicomPrint D:\temp\DicomPrint RW (200, 1024mb) ANY
    #
    AETable END

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks