Giter Club home page Giter Club logo

dcm2opengl's Introduction

dcm2opengl

This code collects gray value images (MRT scans), join pixels of special gray values (skin or bones) with opencv and generates a openGL 3D model (Window).

the code is very old (2013 ?) with old opengl and massive simplified.

Parameter in main.cpp code (not command line!):

  • FOLDER: path to the images folder
  • SIZE: The x-y-size of the dcm file in pixel
  • START and STOP: the values for the image number in the files (vhf.IMAGE_NUMBER.dcm)
  • JUMP: e.g. with a 10 at this place, only every 10th image and pixel is used for the result (faster!)
  • EXTRACTVALUE: use 600 or 700 for the skin, or use 1300 for the bones

Usage: click into window!

Initial the Windows is gray and empty.

  • space: add a layer to 3D
  • +: zoom in
  • -: zoom out
  • c: add a point to the layer

make

You need GLUT (tested with freeglut 3.2.1), glu (tested with 9.0.1) and openvc (tested with 4.2.0). Additionaly pkg-config is a good choice. GL is also used (tested mesa 19.3.4).

example files

https://imaging.nci.nih.gov/nbia-search/

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.