gdcm

Installing GDCM on Windows — ImportError

情到浓时终转凉″ 提交于 2021-02-08 08:12:50
问题 I am trying to install GDCM on Windows (10, x64) so I can use the GDCM package with Python 3.6.5, and am finding it completely impossible. I have tried every combination of: Installing GDCM-2.8.7-Windows-x86_64, GDCM-2.8.7-Windows-x86.exe, GDCM-2.8.4-Windows-x86.exe (separately, of course) Adding To PYTHONPATH: C:\Program Files\Python36; C:\Program Files\Python36\Lib; C:\Program Files\Python36\DLLs; C:\Program Files\Python36\Scripts; C:\Program Files\GDCM 2.8; C:\Program Files\GDCM 2.8\lib; C

Problems with new module in Python (x,y) 2.7

北慕城南 提交于 2019-12-24 19:23:48
问题 I'm trying to use Python(x,y) version 2.7 to deal with some compressed DICOM data. I've installed the mudicom module using pip install and that worked fine. However, I also need the gdcm 2.6 module and I had to jump some hoops to install that using its .exe file and get it added to my PATH. I then added gdcm.py and gdcmswig.py to my site packages folder and added _gdcmswig.pyd to my DLLs folder as per instructions on another forum I found. Now Python at least seems to see that I have gdcm,

Qt + GDCM problems with the libs

♀尐吖头ヾ 提交于 2019-12-24 13:08:21
问题 I'm trying to use the library gdcm in my project. However I'm with some problem. gdcmGlobal.cxx:-1: error: undefined reference to gdcm::System::FileIsDirectory(char const*)' gdcmGlobal.cxx:-1: error: undefined reference to gdcm::System::FileIsDirectory(char const*)' gdcmGlobal.cxx:-1: error: undefined reference to gdcm::System::FileExists(char const*)' :-1: error: C:\Program_Library\gdcm-2.0.18-mingw32\bin/libgdcmDICT.a(gdcmGlobal.cxx.obj): bad reloc address 0xf in section .text$

gdcmimg to convert stack of DICOM images into a vti file?

痞子三分冷 提交于 2019-12-24 06:54:24
问题 I've compiled GDCM using CMake (using VS2012). However, I can't find gdcm2vtk.exe in my bin/Debug folder. I was able to find gdcmimg.exe , would that one work to convert a stack of images into 3D? I've read somewhere that if I'm able to generate a vti file from the stack of images then I'll be able to show it using ActiViz. Is there any known reason why I'm not seeing the file gdcm2vtk.exe? It is in the source code (I can find the gdcm2vtk.cxx source code). 回答1: The GDCM applications are not

gdcmimg to convert stack of DICOM images into a vti file?

限于喜欢 提交于 2019-12-24 06:54:11
问题 I've compiled GDCM using CMake (using VS2012). However, I can't find gdcm2vtk.exe in my bin/Debug folder. I was able to find gdcmimg.exe , would that one work to convert a stack of images into 3D? I've read somewhere that if I'm able to generate a vti file from the stack of images then I'll be able to show it using ActiViz. Is there any known reason why I'm not seeing the file gdcm2vtk.exe? It is in the source code (I can find the gdcm2vtk.cxx source code). 回答1: The GDCM applications are not

gdcmimg to convert stack of DICOM images into a vti file?

心不动则不痛 提交于 2019-12-24 06:54:07
问题 I've compiled GDCM using CMake (using VS2012). However, I can't find gdcm2vtk.exe in my bin/Debug folder. I was able to find gdcmimg.exe , would that one work to convert a stack of images into 3D? I've read somewhere that if I'm able to generate a vti file from the stack of images then I'll be able to show it using ActiViz. Is there any known reason why I'm not seeing the file gdcm2vtk.exe? It is in the source code (I can find the gdcm2vtk.cxx source code). 回答1: The GDCM applications are not

Convert bmp image into DICOM

﹥>﹥吖頭↗ 提交于 2019-12-24 00:58:17
问题 I have 800 images in BMP format and I would like to convert them into DICOM. I have started like this, but it is not working for some reason. My experience with VTK is limited: file_in = 'C:/programfile/image.bmp' file_out = 'test1.dcm' vtkGDCMImageReader() 回答1: Here it is in python: r = vtkBMPReader() r.SetFileName( 'test1.bmp' ) w = vtkGDCMImageWriter() w.SetInput( r.GetOutput() ) w.SetFileName( 'test1.dcm' ) w.Write() If your input BMP uses lookup table, you can simply pass it: r =

How to read a DICOM file of Dynamic DSA image

不羁岁月 提交于 2019-12-11 22:24:51
问题 I have a Dynamic DSA image of DICOM format, it consists of a header of patient information etc and a series of X-ray image data to show the bone motion in only one file. Is there any method in librarys like VTK, ITK or GDCM can read this data out? 回答1: To load a multiframe DICOM in VTK, simply use GDCM, in particular gdcmviewer: $ gdcmviewer input.dcm 来源: https://stackoverflow.com/questions/19318858/how-to-read-a-dicom-file-of-dynamic-dsa-image

How can I install GDCM with the Python wrapper?

那年仲夏 提交于 2019-12-11 07:27:10
问题 I'm on Ubuntu 16.04 and have been trying like crazy to install GDCM so I can use it with Python. I have pipenv installed, and I suspect that's causing issues. I did sudo apt-get install libgdcm2.6 python-gdcm . It seems to install fine, but when I run python and then import gdcm , it complains there's no module named gdcm . Has anyone come across this? 回答1: This means that the python cannot find the gdcm package within its environment. So your package is not installed properly, and/or your

Generating a simple CT DICOM image using GDCM

江枫思渺然 提交于 2019-12-11 05:09:11
问题 I need to generate a series of CT DICOM images (512x512, MONOCHROME) using the GDCM library. Because of the structure of the application that I am working on, it is ideal for me to separately prepare gdcm::Image and gdcm::File instances for each image and at the end pass them on to gdcmImageWriter using the SetFile() and SetImage() methods. The gdcmImageWriter::write() fails to write DICOM images. I have already looked at the source code of the VTKGDCMImageWriter class and this GDCM example