gdcm

How to read a multiple frames DICOM file by c++ library?

风格不统一 提交于 2019-12-07 17:31:36
问题 How do you read a multiple frame DICOM file that is a single file contains many 2D XA images (for example, barre.nom.fr/medical/samples). I know the software (dicom2), java library (dcm4che2) and matlab method( dicomread ) can do this, but is there any method in c++ libraries like VTK, ITK or GDCM can read this type of data out? 回答1: If you want to use GDCM, simply check out the Examples/Cxx directory, in particurar the HelloVizWorld dummy example. 回答2: Please use dcmtk . Its a open source c+

how to install gdcm python wrapping on Windows System?

a 夏天 提交于 2019-12-02 14:17:28
问题 After reading this:https://github.com/neurosnap/mudicom/blob/master/docs/install.rst Download from here:https://github.com/malaterre/GDCM/releases install it and Copy the gdcm.py&gdcmswig.py to site-packages folder, run this sample code: https://pypi.python.org/pypi/mudicom Errors: File "C:\Python27\lib\site-packages\gdcmswig.py", line 119 def value(self) -> "PyObject *": ^ SyntaxError: invalid syntax Then I found here: Problems with new module in Python (x,y) 2.7 But I want to use in py2.7

how to install gdcm python wrapping on Windows System?

a 夏天 提交于 2019-12-02 13:27:27
After reading this: https://github.com/neurosnap/mudicom/blob/master/docs/install.rst Download from here: https://github.com/malaterre/GDCM/releases install it and Copy the gdcm.py&gdcmswig.py to site-packages folder, run this sample code: https://pypi.python.org/pypi/mudicom Errors: File "C:\Python27\lib\site-packages\gdcmswig.py", line 119 def value(self) -> "PyObject *": ^ SyntaxError: invalid syntax Then I found here: Problems with new module in Python (x,y) 2.7 But I want to use in py2.7 version, any suggestions? after I move to python 3.6, install all packages, error: File "D:/Projects

PyDICOM can't read pixel data and needs GDCM or Pillow

╄→尐↘猪︶ㄣ 提交于 2019-12-02 02:13:52
问题 I'm using pydicom and my code is pretty straightforward: image = np.stack([s.pixel_array for s in scans]) But this gives a runtime error: RuntimeError: The following handlers are available to decode the pixel data however they are missing required dependencies: GDCM (req. GDCM), Pillow (req. Pillow) I'm not sure what to do. Any help would be.. helpful. 回答1: If GDCM is giving you problems, give Pillow a go. python -m pip install pillow Make sure to install in the correct environment. 来源: https

PyDICOM can't read pixel data and needs GDCM or Pillow

血红的双手。 提交于 2019-12-02 00:24:11
I'm using pydicom and my code is pretty straightforward: image = np.stack([s.pixel_array for s in scans]) But this gives a runtime error: RuntimeError: The following handlers are available to decode the pixel data however they are missing required dependencies: GDCM (req. GDCM), Pillow (req. Pillow) I'm not sure what to do. Any help would be.. helpful. If GDCM is giving you problems, give Pillow a go. python -m pip install pillow Make sure to install in the correct environment. 来源: https://stackoverflow.com/questions/54657768/pydicom-cant-read-pixel-data-and-needs-gdcm-or-pillow