Exemple #1
0
def SubmitLotsOfImages():
	c=MakeClientConnection()
	directory=str()
	if(os.uname()[0]=='Linux'):
		directory='/mnt/windows/TestRead/'
	else:
		directory="C:\\TestRead\\StoreTest\\"
	images=os.listdir(directory)
	for image in images:
		ds=dicom.open(directory+image)
		ret=c.Store(ds)
		print ret
Exemple #2
0
def OpenDataset():
    ds=dicom.open("test_dicom_file")
    return ds