Surface Extraction: Creating a mesh from pixel-data using Python and VTK

In this post I will demonstrate how to use VTK to read in a series of DICOM files from a CT examination and extract a mesh surface of the bone structures. I will then show you how to visualize the mesh with VTK and save it, the mesh that is, into an STL file.

Continue reading

Advertisements

Interactive Plotting in IPython Notebook (Part 2/2): Plotly

Interactive Plotting in IPython Notebook (Part 2/2): Plotly

Summary

In this previous post I talked about interactive plotting packages that support the IPython Notebook and focused on Bokeh. Today I’ll be talking about Plotly, a much richer package that allows for a lot more functionality. I will also provide some very rudimentary examples that should allow you to get started straight away.

Continue reading

Interactive Plotting in IPython Notebook (Part 1/2): Bokeh

Interactive Plotting in IPython Notebook (Part 1/2): Bokeh

Summary

In this post I will talk about interactive plotting packages that support the IPython Notebook and allow you to zoom, pan, resize, or even hover and get values off your plots directly from an IPython Notebook. This post will focus on Bokeh while the next post will be about Plotly. I will also provide some very rudimentary examples that should allow to get started straight away.

Continue reading