|
DICOMSDL
0.79.20110728
DICOMSoftwareDevelopmentLibrary
|
You can get the source code, binaries and installer for python at the http://code.google.com/p/dicomsdl .
DICOM SDL needs cmake (www.cmake.org) to compile. DICOM SDL was successfully compiled and ran on following environments
- Microsoft Windows x86/x64 using Microsoft visual studio 2008
- CentOS x64 5.4 using gcc 4.1.2
- Ubuntu x64 10.10 using gcc 4.4.5
- Mac OS X 10.5 (ppc) using xcode 3.1.2
- Mac OS X 10.6 (intel) using Xcode 3.2.5 (gcc 4.2.1)
DICOM SDL is also expected to be compiled successfully at other Linux x86/x64 and intel MacOS platforms.
-# edit <code>config_cmake.bat</code> and run it.
-# do `nmake.exe install`
-# edit <code>config_cmake.sh</code> and run it.
-# do `make install`
You may get an error message like this if you try to build rpm installer under RedHat or CentOS linux.
error: Installed (but unpackaged) file(s) found:
... .../site-packages/dicom.pyo
One of the workarounds to revolve this problem is modifying [pythondir]/distutils/command/build_rpm.py.
[pythondir]/distutils/command/build_rpm.py. ('install', 'install_script',
("%s install "
"--root=$RPM_BUILD_ROOT"
-O1 option ('install', 'install_script',
("%s install -O1 "
"--root=$RPM_BUILD_ROOT"
ref. https://bugzilla.redhat.com/show_bug.cgi?id=530685
Compiled binaries will go into ./build directory. Includes dicom.h, dicomcfg.h, dicomsdl.lib, ... into your project and just add line #include "dicom.h" into your program codes.
config_cmake.sh and turn on flags DPYTHON_BUILD_EXT and DPYTHON_INSTALL_EXTsudo apt-get install g++ swig python-dev rpmsudo ./config_cmake.shsudo makeDICOMSDL can utilize power of IPP in managing JPEG2000 images. It has been tested in Win32 platform.
Requirement
Open config_cmake.bat, and edit flags and options like this. Path to IPP and code sample should be changed according to your environment.
set OPTION=%OPTION% -DUSE_IPP_CODEC=ON set OPTION=%OPTION% -DIPP_INCLUDE:string="c:\Program Files (x86)\Intel\ComposerXE-2011\ipp\include" set OPTION=%OPTION% -DIPP_LIBPATH:string="c:\Program Files (x86)\Intel\ComposerXE-2011\ipp\lib\ia32" set OPTION=%OPTION% -DIPP_SAMPLEROOT:string="x\ipp-samples" set OPTION=%OPTION% -DIPP_UICBINPATH:string="x\ipp-samples\image-codecs\uic\_bin\ia32_cl9"
1.8.6