dcmtk

Difference between dcm2pnm, dcmj2pnm and dcml2pnm

放肆的年华 提交于 2021-01-27 13:48:55
问题 The title says it all. What is the difference between dcm2pnm (http://support.dcmtk.org/docs/dcm2pnm.html), dcmj2pnm (http://support.dcmtk.org/docs/dcmj2pnm.html) and dcml2pnm (http://support.dcmtk.org/docs/dcml2pnm.html) commands of dcmtk toolkit (http://support.dcmtk.org/docs/pages.html)? They all seem to convert dicom images to other formats. Are there any special situations where one should be preferred over others? Edit: It seems dcml2pnm supports more formats. Why not use that for all

Visual Studio: MSB3073 error exited with code 1

我怕爱的太早我们不能终老 提交于 2020-07-05 05:37:33
问题 everyone. I am compiling DCMTK 3.6.1 in Visual Studio 2013. My OS is Windows 8. I also used CMake 3.2.3. I have already successfully compiled both x64 versions of debug and release for the ALL_BUILD project. However, for the INSTALL project, I can't compile it because the following error occurs: Error 1 error MSB3073: The command "setlocal "C:\Program Files (x86)\CMake\bin\cmake.exe" -DBUILD_TYPE=Release -P cmake_install.cmake if %errorlevel% neq 0 goto :cmEnd :cmEnd endlocal & call

Read a 3D Dicom image with DCMTK and convert it to OpenCV Mat

浪子不回头ぞ 提交于 2020-01-17 14:04:26
问题 I have a dicom 3D image which is [512,512,5] (rows, cols, slices). I want to read it with DCMTK toolkit and convert it to a OpenCV Mat object. The image is 16 bits unsigned int. My question is: Does anyone know the correct way to convert this dicom image into a Mat object? How to properly read all the slices with the method getOutputData ? 回答1: Based on the comments of @Alan Birtles, there is the possibility to specify the frame you want to read on the getOutputData method. After reading each

How to resolve LNK2019 error in Visual Studio when using Qt and DCMTK libraries?

谁说胖子不能爱 提交于 2019-12-24 06:45:09
问题 I know this question has been asked a lot of times already but I'm sorry, I just can't figure out what is wrong with what I've been doing. What I want is to read a DICOM image (by pixel because I have to perform operations on it) and display it on a Qt GUI. I have Windows 8 and Visual Studio 2013. I downloaded Qt opensource and also VS's plugin for it. I built Qt using cmake-gui. Then, I followed what was said on a discussion here in stackoverflow entitled "How to use DCMTK in Qt". I

Is there any N-Delete tool in dcmtk? [closed]

孤街醉人 提交于 2019-12-14 03:31:33
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 3 years ago . All, Is there any N-delete tools in DCMTK? If there isn't , Could someone please recommend a tool to me . I just want to delete the DICOM file stored in the pacs. Thanks. 回答1: N-DELETE is not for deleting DICOM objects in a PACS. It is e.g. used for the Print Management Service, i.e. for deleting a print job or

How to get the DCMTK library working in Qt Creator?

霸气de小男生 提交于 2019-12-13 02:39:19
问题 I am trying to get DCMTK working in Qt Creator, but I got stuck at step 5. Please let me know if the other steps are wrong. Tools: Qt Creator: Qt Creator 3.5.1 (opensource), based on Qt 5.5.1 (MSVC 2013, 32 bit) Visual Studio: Microsoft Visual Studio Ultimate 2013, version 12.0.40629.00 Update 5 DCMTK: v3.6.0 CMake: v3.3.2 What I did: I generated the project files using CMake I opened C:\dcmtk-bin\DCMTK.sln in Visual Studio and built ALL_BUILD I restarted Visual Studio in admin mode, opened C

CMake: “cl.exe not able to compile a simple test program”

一曲冷凌霜 提交于 2019-12-11 14:57:13
问题 I want to build DCMTK in Visual Studio 2010. I followed the advice here enter link description here, as the image shows. And I still get the same error. Any ideas? 回答1: Run the following script before running cmake. >vcvars32 (to set some system vars, C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\vcvars32.bat) 回答2: A similar problem has been reported here The solution is: First, check if you have .NET 4.5 on your system. If you do, that is very likely causing the problem. Try

Overwrite an image/pixel data in the dicom file using dcmtk

自作多情 提交于 2019-12-11 10:03:33
问题 I use dcmtk to read a dicom file and extract the image into a .tiff format. After doing some image processing I have an image which I would like to save in the source dicom file.That is overwriting the old image/pixel data with my new ones, while keeping rest of the data(uid,patient name,,etc) same. I use the following code to read dicom OFCondition status = src_fileformat.loadFile(src_path); if (status.good()) { Sint32 instanceNumber = 0; if (src_fileformat.getDataset()->findAndGetSint32(DCM

Create DicomImage from scratch using Dcmtk

二次信任 提交于 2019-12-11 01:28:44
问题 In order to save CT data I would like to create a DicomImage from scratch, similar like this can be done using DRTImageIOD . However, DicomImage does not have a default constructor. From the documentation it looks like the constructor can only load existing data. Is it possible to use DicomImage directly, or is going low-level through DcmFileFormat the only viable approach? (I am using Dcmtk 3.6.1) 回答1: As you can read in the documentation, the purpose of the DicomImage class is visualization

Called AE Title Not Recognised error in echoscu

偶尔善良 提交于 2019-12-11 00:40:27
问题 I was trying to test the connectivity of dcmqrscp. I have used the following command for starting dcmqrscp. dcmqrscp --config C:\Dicom\config\dcmqrscp.cfg Please find the below config file that I used. NetworkTCPPort = 11113 MaxPDUSize = 16384 MaxAssociations = 16 HostTable BEGIN acme1 = (ACME1, localhost, 1234) acme2 = (ACME2, localhost, 5678) acmeCTcompany = acme1, acme2 HostTable END VendorTable BEGIN "Acme CT Company" = acmeCTcompany VendorTable END AETable BEGIN ACME_STORE C:\Dicom\echo