Code Monkey home page Code Monkey logo

dicom's Introduction

DICOM plugin for Brayns

Description

This module implements the visualization of DICOM datasets with Brayns

Build on Linux

Prerequiries

  • Build Brayns and install it into ${BRAYNS_INSTALLATION_FOLDER}
  • Install dcmtk
sudo apt install libdcmtk-dev

Build from source

git clone https://github.com/favreau/Brayns-UC-DICOM
cd Brayns-UC-DICOM
mkdir build
cd build
CMAKE_PREFIX_PATH=${BRAYNS_INSTALLATION_FOLDER} cmake .. -DCMAKE_PREFIX_PATH=${BRAYNS_INSTALLATION_FOLDER} -DCMAKE_BUILD_TYPE=Release

This will build and install libdicom.so

Usage

  • Set PATH and LD_LIBRARY_PATH
export PATH=${BRAYNS_INSTALLATION_FOLDER}/bin:${PATH}
export LD_LIBRARY_PATH=${BRAYNS_INSTALLATION_FOLDER}/lib:${LD_LIBRARY_PATH}
  • Run Brayns application either with command line '--plugin dicom'
braynsService --http-server :5000 --plugin dicom

User interface

A user interface is currently available as a docker container

docker run -ti --rm -p 8080:8080 bluebrain/brayns-ui

Once the container is running, access the web UI at http://localhost:8080?host=localhost:5000

Python

Install the brayns package in your favourite Python 3 virtual environment:

virtualenv -p python3 venv
. ./env/bin/activate
pip install brayns

Connect to Brayns and load DICOM data:

from brayns import Client
brayns = Client('localhost:5000')

# Set renderer that supports volumes
brayns.set_renderer(current='scivis', head_light=True, samples_per_pixel=1)

# Load data
brayns.add_model(path='...') # Path to the DICOM folder

# Set rendering parameters
p = brayns.ScivisRendererParams()
p.shadows_enabled = False
p.ao_weight = 1
brayns.set_renderer_params(p)
brayns.set_volume_parameters(
    specular=(0,0,0),gradient_shading=False, single_shade=False,
    adaptive_sampling=True,adaptive_max_sampling_rate=1, sampling_rate=1)

For more information about the Brayns Python interface, see the documentation.

Screenshots

DICOM

dicom's People

Contributors

favreau avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.