Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
282 changed files
with
20,970 additions
and
5,530 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# - Try to find DCMTK | ||
# Once done this will define | ||
# DCMTK_FOUND - System has DCMTK | ||
# DCMTK_INCLUDE_DIRS - The DCMTK include directories | ||
# DCMTK_LIBRARY_DIRS - The DCMTK link directories | ||
# DCMTK_LIBRARIES - The libraries needed to use DCMTK | ||
# DCMTK_DEFINITIONS - Compiler switches required for using DCMTK | ||
|
||
set(DCMTK_DEFINITIONS "-D HAVE_CONFIG_H") | ||
|
||
find_path(DCMTK_INCLUDE_DIR "dcmtk/dcmdata/dctk.h") | ||
find_library(DCMTK_LIBRARY dcmdata) | ||
|
||
set(DCMTK_INCLUDE_DIRS ${DCMTK_INCLUDE_DIR}) | ||
|
||
set(DCMTK_LIBRARIES ${DCMTK_LIBRARY} dcmnet dcmdata oflog ofstd) | ||
foreach(library iconv pthread wrap z) | ||
find_library(${library}_LIBRARY ${library}) | ||
if(${library}_LIBRARY) | ||
set(DCMTK_LIBRARIES ${DCMTK_LIBRARIES} ${${library}_LIBRARY}) | ||
endif() | ||
endforeach() | ||
|
||
get_filename_component(DCMTK_LIBRARY_DIRS "${DCMTK_LIBRARY}" PATH) | ||
|
||
include(FindPackageHandleStandardArgs) | ||
# handle the QUIETLY and REQUIRED arguments and set DCMTK_FOUND to TRUE | ||
# if all listed variables are TRUE | ||
find_package_handle_standard_args( | ||
DCMTK DEFAULT_MSG DCMTK_INCLUDE_DIR DCMTK_LIBRARY) | ||
|
||
mark_as_advanced(DCMTK_INCLUDE_DIR DCMTK_LIBRARY) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,23 @@ | ||
find_path(ICU_INCLUDE_DIR "unicode/ucnv.h") | ||
# icucore is for OS X | ||
find_library(ICU_LIBRARIES NAMES icuuc icucore) | ||
# - Try to find ICU | ||
# Once done this will define | ||
# ICU_FOUND - System has ICU | ||
# ICU_INCLUDE_DIRS - The ICU include directories | ||
# ICU_LIBRARIES - The libraries needed to use ICU | ||
# ICU_DEFINITIONS - Compiler switches required for using ICU | ||
|
||
find_package(PkgConfig) | ||
pkg_check_modules(PC_ICU QUIET icu-uc) | ||
set(ICU_DEFINITIONS ${PC_ICU_CFLAGS_OTHER}) | ||
|
||
find_path(ICU_INCLUDE_DIR "unicode/ucnv.h" HINTS ${PC_ICU_INCLUDE_DIRS}) | ||
find_library(ICU_LIBRARY NAMES icuuc HINTS ${PC_ICU_LIBRARY_DIRS} ) | ||
|
||
set(ICU_LIBRARIES ${ICU_LIBRARY} ) | ||
set(ICU_INCLUDE_DIRS ${ICU_INCLUDE_DIR} ) | ||
|
||
include(FindPackageHandleStandardArgs) | ||
find_package_handle_standard_args(ICU DEFAULT_MSG | ||
ICU_INCLUDE_DIR ICU_LIBRARIES) | ||
# handle the QUIETLY and REQUIRED arguments and set ICU_FOUND to TRUE | ||
# if all listed variables are TRUE | ||
find_package_handle_standard_args(ICU DEFAULT_MSG ICU_LIBRARY ICU_INCLUDE_DIR) | ||
|
||
mark_as_advanced(ICU_INCLUDE_DIR ICU_LIBRARY) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# - Try to find JsonCpp | ||
# Once done this will define | ||
# JsonCpp_FOUND - System has JsonCpp | ||
# JsonCpp_INCLUDE_DIRS - The JsonCpp include directories | ||
# JsonCpp_LIBRARIES - The libraries needed to use JsonCpp | ||
# JsonCpp_DEFINITIONS - Compiler switches required for using JsonCpp | ||
|
||
find_package(PkgConfig) | ||
pkg_check_modules(PC_JsonCpp QUIET jsoncpp) | ||
set(JsonCpp_DEFINITIONS ${PC_JsonCpp_CFLAGS_OTHER}) | ||
|
||
find_path(JsonCpp_INCLUDE_DIR "json/json.h" HINTS ${PC_JsonCpp_INCLUDE_DIRS}) | ||
find_library(JsonCpp_LIBRARY NAMES jsoncpp HINTS ${PC_JsonCpp_LIBRARY_DIRS} ) | ||
|
||
set(JsonCpp_LIBRARIES ${JsonCpp_LIBRARY} ) | ||
set(JsonCpp_INCLUDE_DIRS ${JsonCpp_INCLUDE_DIR} ) | ||
|
||
include(FindPackageHandleStandardArgs) | ||
# handle the QUIETLY and REQUIRED arguments and set JsonCpp_FOUND to TRUE | ||
# if all listed variables are TRUE | ||
find_package_handle_standard_args( | ||
JsonCpp DEFAULT_MSG JsonCpp_LIBRARY JsonCpp_INCLUDE_DIR) | ||
|
||
mark_as_advanced(JsonCpp_INCLUDE_DIR JsonCpp_LIBRARY) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,20 @@ | ||
DCMTK++ | ||
Odil | ||
======= | ||
|
||
DCMTK++ is a C++ wrapper library for the [DCMTK](http://dicom.offis.de/dcmtk.php.en) | ||
DICOM toolkit. | ||
Odil is a C++11 library for the [DICOM](http://dicom.nema.org/) standard. | ||
|
||
DCMTK++ is a C++ wrapper library for [DCMTK](http://dicom.offis.de/dcmtk.php.en), | ||
a C++ toolkit handling the DICOM medical imaging standard. DCMTK++ | ||
leverages C++ constructs to provide a more user-friendly API, notably | ||
for the networking part. Included in DCMTK++ are exception-based error | ||
handling, generic access to datasets elements, standard JSON | ||
representation of datasets, and generic implementation of messages, | ||
Odil leverages C++ constructs to provide a user-friendly API of the different | ||
parts of the DICOM standard. Included in Odil are exception-based error | ||
handling, generic access to datasets elements, standard JSON and XML | ||
representation of datasets, and generic implementation of messages, | ||
clients and servers for the various DICOM protocols. | ||
|
||
[![Build Status](https://travis-ci.org/lamyj/dcmtkpp.svg?branch=master)](https://travis-ci.org/lamyj/dcmtkpp) | ||
[![Coverage Status](https://coveralls.io/repos/lamyj/dcmtkpp/badge.svg)](https://coveralls.io/r/lamyj/dcmtkpp) | ||
Odil also provides conversion to and from | ||
[DCMTK](http://dicom.offis.de/dcmtk.php.en) data structures. | ||
|
||
Odil builds and run on: | ||
* Linux (Debian 7, Debian 8, Ubuntu 12.04, Ubuntu 14.04, both 32 and 64 bits) | ||
* OS X | ||
|
||
[![Build Status](https://travis-ci.org/lamyj/odil.svg?branch=master)](https://travis-ci.org/lamyj/odil) | ||
[![Coverage Status](https://coveralls.io/repos/lamyj/odil/badge.svg)](https://coveralls.io/r/lamyj/odil) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
version: "{build}" | ||
|
||
os: Visual Studio 2015 | ||
|
||
clone_folder: c:\projects\dcmtkpp | ||
|
||
environment: | ||
BOOST_ROOT: C:/Libraries/boost_1_59_0 | ||
BOOST_LIBRARYDIR: C:/Libraries/boost_1_59_0/lib64-msvc-14.0 | ||
ICU_INCLUDE_DIR: C:/Libraries/icu/include | ||
ICU_LIBRARY: C:/Libraries/icu/lib64/icuuc.lib | ||
JsonCpp_INCLUDE_DIR: c:/Libraries/jsoncpp_0_10_5/include | ||
JsonCpp_LIBRARY: c:/Libraries/jsoncpp_0_10_5/lib/jsoncpp.lib | ||
DCMTK_INCLUDE_DIR: C:/Libraries/dcmtk-3.6.1_20150924/include | ||
DCMTK_LIBRARY: C:/Libraries/dcmtk-3.6.1_20150924/lib/dcmdata.lib | ||
|
||
#init: | ||
#- ps: iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1')) | ||
|
||
install: | ||
# ICU4C | ||
- ps: Start-FileDownload http://download.icu-project.org/files/icu4c/56.1/icu4c-56_1-Win64-msvc10.zip | ||
- 7z x -oC:\Libraries icu4c-56_1-Win64-msvc10.zip | ||
# JsonCpp | ||
- ps: Start-FileDownload https://github.com/open-source-parsers/jsoncpp/archive/0.10.5.zip | ||
- 7z x -oC:\projects 0.10.5.zip | ||
- cd C:\projects\jsoncpp-0.10.5 | ||
- mkdir build | ||
- cd build | ||
- cmake -D CMAKE_INSTALL_PREFIX=c:\Libraries\jsoncpp_0_10_5 .. | ||
- cmake --build . --config release --target install | ||
# DCMTK | ||
- ps: Start-FileDownload http://dicom.offis.de/download/dcmtk/snapshot/dcmtk-3.6.1_20150924.tar.gz | ||
- 7z x -so dcmtk-3.6.1_20150924.tar.gz | 7z x -si -oC:\projects -ttar | ||
- cd C:\projects\dcmtk-3.6.1_20150924 | ||
- mkdir build | ||
- cd build | ||
- cmake -D CMAKE_INSTALL_PREFIX=c:\Libraries\dcmtk-3.6.1_20150924 .. | ||
- cmake --build . --config release --target install | ||
|
||
before_build: | ||
- cd c:\projects\dcmtkpp | ||
- md build | ||
- cd build | ||
- set PATH=C:\Program Files (x86)\MSBuild\14.0\Bin;%PATH% | ||
- cmake -DBOOST_ROOT="%BOOST_ROOT%" -DBOOST_LIBRARYDIR="%BOOST_LIBRARYDIR%" -DICU_INCLUDE_DIR="%ICU_INCLUDE_DIR%" -DICU_LIBRARY="%ICU_LIBRARY%" -DJsonCpp_INCLUDE_DIR="%JsonCpp_INCLUDE_DIR%" -DJsonCpp_LIBRARY="%JsonCpp_LIBRARY%" -DDCMTK_INCLUDE_DIR="%DCMTK_INCLUDE_DIR%" -DDCMTK_LIBRARY="%DCMTK_LIBRARY%" .. | ||
|
||
build: | ||
project: C:\projects\dcmtkpp\build\dcmtkpp.sln | ||
|
||
#on_finish: | ||
#- ps: $blockRdp = $true; iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1')) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
version: "{build}" | ||
|
||
os: Windows Server 2012 R2 | ||
|
||
clone_folder: c:\projects\odil | ||
|
||
environment: | ||
BOOST_ROOT: C:/Libraries/boost_1_59_0 | ||
BOOST_LIBRARYDIR: C:/Libraries/boost_1_59_0/lib64-msvc-14.0 | ||
ICU_INCLUDE_DIR: C:/Libraries/icu/include | ||
ICU_LIBRARY: C:/Libraries/icu/lib64/icuuc.lib | ||
JsonCpp_INCLUDE_DIR: c:/Libraries/jsoncpp_0_10_5/include | ||
JsonCpp_LIBRARY: c:/Libraries/jsoncpp_0_10_5/lib/jsoncpp.lib | ||
DCMTK_INCLUDE_DIR: C:/Libraries/dcmtk-3.6.1_20150924/include | ||
DCMTK_LIBRARY: C:/Libraries/dcmtk-3.6.1_20150924/lib/dcmdata.lib | ||
|
||
configuration: | ||
- Release | ||
|
||
install: | ||
# ICU4C | ||
- ps: Start-FileDownload http://download.icu-project.org/files/icu4c/56.1/icu4c-56_1-Win64-msvc10.zip | ||
- 7z x -bd -oC:\Libraries icu4c-56_1-Win64-msvc10.zip | ||
# JsonCpp | ||
- ps: Start-FileDownload https://github.com/lamyj/jsoncpp/releases/download/0.10.5/jsoncpp_0_10_5_Win64_msvc14.zip | ||
- 7z x -bd -oC:\Libraries jsoncpp_0_10_5_Win64_msvc14.zip | ||
# DCMTK | ||
- ps: Start-FileDownload https://github.com/lamyj/dcmtk/releases/download/DCMTK-3.6.1_20150924/dcmtk-3.6.1_20150924_Win64_msvc14.zip | ||
- 7z x -bd -oC:\Libraries dcmtk-3.6.1_20150924_Win64_msvc14.zip | ||
|
||
before_build: | ||
- cd c:\projects\odil | ||
- md build | ||
- cd build | ||
- cmake | ||
-DBOOST_ROOT="%BOOST_ROOT%" -DBOOST_LIBRARYDIR="%BOOST_LIBRARYDIR%" | ||
-DICU_INCLUDE_DIR="%ICU_INCLUDE_DIR%" -DICU_LIBRARY="%ICU_LIBRARY%" | ||
-DJsonCpp_INCLUDE_DIR="%JsonCpp_INCLUDE_DIR%" -DJsonCpp_LIBRARY="%JsonCpp_LIBRARY%" | ||
-DDCMTK_INCLUDE_DIR="%DCMTK_INCLUDE_DIR%" -DDCMTK_LIBRARY="%DCMTK_LIBRARY%" | ||
.. | ||
|
||
build: | ||
project: C:\projects\odil\build\odil.sln |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,17 @@ | ||
add_definitions("-D HAVE_CONFIG_H") | ||
find_package(DCMTK REQUIRED) | ||
find_package(JsonCpp REQUIRED) | ||
|
||
include_directories(${CMAKE_SOURCE_DIR}/src) | ||
include_directories(${CMAKE_SOURCE_DIR}/src ${JsonCpp_INCLUDE_DIRS}) | ||
add_definitions( | ||
${DCMTK_DEFINITIONS} | ||
-D BOOST_ASIO_DYN_LINK | ||
-D ODIL_MAJOR_VERSION=${odil_MAJOR_VERSION} | ||
) | ||
|
||
file(GLOB_RECURSE examples *.cpp) | ||
|
||
foreach(example_file ${examples}) | ||
get_filename_component(example ${example_file} NAME_WE) | ||
add_executable(${example} ${example_file}) | ||
target_link_libraries(${example} dcmtkpp dcmdata) | ||
target_link_libraries(${example} odil) | ||
endforeach() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.