Giter Site home page Giter Site logo

voxelvolume's Introduction

VoxelVolume

Tool to render voxel volumes. This code is still very much WIP.

Data Format

The main binary (bin/main when built) expects the name of a folder as its argument, with a file called "meta.txt" in it. meta.txt should contain a single line of the form

<width> <height> <depth> <basename>

For example, if the data set was the Stanford Volume Archive MRBrain dataset, meta.txt should contain:

256 256 108 MRBrain

where width, height, and depth are integers and basename is a string which will be used to load the volume data. Volume data should be 16 bit binary data, of size width * height in files named as follows:

basename.1
basename.2
//....
basename.n

where basename is the basename specifed in the metadata file, and n goes from 1 to the depth (inclusive) specified in meta.txt

Compiling

You must have:

  • CMake
  • fontconfig (if you have X, you probably have this)
  • freetype2 (if you have X, you probably have this)
  • GLEW
  • GLM

The code may build under Cygwin or OSX, but this code wasn't written with an eye to portability and thus likely only works on Linux.

if you want to build the basic renderer (which just continually scrolls through the dataset, not particularly interesting) you also need GLUT.

To build, create a directory somewhere outside of the source tree and then

cmake path/to/source
make

and to run

cd bin/
./main path/to/data/folder

voxelvolume's People

Contributors

sapphire-arches 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.