DICOM medical image processing: DCMTK configuration in vs2012

Source: Internet
Author: User

Background:

Recently, due to project requirements, the original development IDE environment was upgraded from vs2008 to vs2012. I thought that the DCMTK open source library after compilation can be directly transplanted from vs2008 to vs2012. However, after adding the inclusion directory and dependent libraries through the project properties, a large number of Link errors will occur during compilation (mostly related to dcmdata. lib and oflog. Lib ).

Solution:

Re-follow the original blog predecessors Liu beifeng Er (Great God has been transferred to Netease blog: http://blog.163.com/[Email protected]/), Use the cmake tool and select the local vs2012 compiler to recompile the source code of dcmtk3.6.0.

However, a large number of Link errors still exist after performing the preceding steps:

It can be inferred from the error that some of the project dependent libraries in the above blog are still incorrect. After searching for the blog post on DCMTK installation, the dependency between the various library files of DCMTK was found (see http://blog.csdn.net/jackmacro/article/details/5332654 ).

Supplement the dependency library in Liu beifeng's blog. The original dependency library is as follows:

Add dcmimgle as described in http://blog.csdn.net/jackmacro/article/details/5332654.

. Lib, dcmjpeg. Lib, and their dependent libraries ijg8, ijg12, ijg16, and dcmimage. After completing the supplement, the project dependency library is as follows:

Re-compile the project and compile it smoothly. Here, we use the JPEG lossless compression of the DCM image given in the DCMTK forum to compress the DCM image smoothly.

Detailed vs2012 project code: http://download.csdn.net/detail/zssureqh/7734777

The vs2012 version is cn_visual_studio_ultimate_2012_x86_dvd_920954.

The DCMTK version is 3.6.0.

 

 

[Email protected]

Time: 2014-08-09

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.