Showing posts with label wxPython. Show all posts
Showing posts with label wxPython. Show all posts

Monday, March 31, 2014

wxOpenGL frame work for rendering numpy data



wxOpenGL framework

This frame work lets you render and dynamically modify numpy data (quad-, triangle-meshes) via provided wxOpenGL framework. 

Application functions (keyboard keys):
+ E - Toggle edge visibility

Application functions (viewport manipulation):
+ Middle mouse button & mouse motion - rotate opject
+ Mouse wheel - Zoom
+ Ctrl & Middle mouse button & mouse motion - rotate object
+ Shift & Middle mouse button & mouse motion - translate object

The framework can be downloaded at:
https://www.dropbox.com/sh/ip306uavm7jpekg/2adXHWODU1

The package contains the application (wx_opengl.py) and a render object class (render_object.py) which may be used to add triangle / quad data and meshed to the application viewport. 

Wednesday, September 18, 2013

Low-cost, small animal thermal ablation system


 The goal of this project was to develop a cheap, simple and robust ablation system for creating small thermal lesions in animals. As soon as biological tissues are exposed to temperatures > 40 degree Celsius for several minutes (~>30) tissue necrosis occurs and introduces cell death. This technique is used in cancer therapy to kill cells and to destroy tumors. 
Schematic of small animal ablation example in a mouse brain to study brain cancer treatments.
The understanding of ablation techniques and the development of heating algorithms/strategies rely on animal research studies. To provide a low cost system for ablation studies in small animals (mice,rats) I developed a simple system including a graphic user interface.

Schematic connection sketch for the micro-controller and electronic board.
The system uses an Arduino-Uno Micro-Controller (MC) board and an ordinary, resistive thermistor. The graphic user interface (GUI) communicates with the MC about 4 times per second. In a first request voltage is read from the thermistor to determine the actual temperature. Then in a second step the GUI/program calculates the necessary voltage to reach the required set-temperature (defined by user) and  sends the info to the MC. On the MC the voltage reaching the thermistor will be set accordingly. An integrated PI (proportional/integral) controller regulates the voltage to keep the temperature at the thermistor constant.
Graphic user interface for the Thermistor control
Total costs of the utilities < $50 (Micro controller board $25, Thermistor $8, Wires, etc $17)

Links:
Thermistor:
http://www.mouser.com/ProductDetail/Honeywell/112-102EAJ-B01/?qs=F1jq4PciTHu%252b30xNPtI64w%3D%3D&gclid=CJzDjPjl1bkCFdSd4Aod5VYA8A

Tuesday, October 30, 2012

Surface rendering examples

Sample images. Surface rendering of CT image data


Just a few more sample images created with a wxPython OpenGL rendering application...