documents:110816pyip_cooking
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| documents:110816pyip_cooking [2011/09/26 09:50] – kota | documents:110816pyip_cooking [2016/05/25 07:56] (current) – [plot 3D coordinates using Mayavi] kota | ||
|---|---|---|---|
| Line 85: | Line 85: | ||
| * tested with python2.6, openCV 2.2, numpy 1.6.1, OSX10.6.8 | * tested with python2.6, openCV 2.2, numpy 1.6.1, OSX10.6.8 | ||
| - | <sxh python> | + | <code python> |
| >>> | >>> | ||
| >>> | >>> | ||
| Line 99: | Line 99: | ||
| [100, 100, 100, 100, 100]], dtype=uint8) | [100, 100, 100, 100, 100]], dtype=uint8) | ||
| - | </sxh> | + | </code> |
| < | < | ||
| Line 108: | Line 108: | ||
| An example script for loading (x, y, y) coordinates data from tab-delimited text file and plot them in 3D using [[http:// | An example script for loading (x, y, y) coordinates data from tab-delimited text file and plot them in 3D using [[http:// | ||
| - | <sxh python> | + | <code python |
| from matplotlib import mlab as matp | from matplotlib import mlab as matp | ||
| filename = '/ | filename = '/ | ||
| Line 123: | Line 123: | ||
| plin1 = plot3d([x1[idx], | plin1 = plot3d([x1[idx], | ||
| maya.show() | maya.show() | ||
| - | </sxh> | + | </code> |
| [{{ : | [{{ : | ||
| Line 138: | Line 138: | ||
| ipython -wthread | ipython -wthread | ||
| </ | </ | ||
| - | or incase of newer ipython | + | or incase of newer ipython |
| < | < | ||
| ipython --i | ipython --i | ||
| Line 160: | Line 160: | ||
| Note that in this example, | Note that in this example, | ||
| - | <sxh python> | + | <code python> |
| from mayavi import mlab as maya | from mayavi import mlab as maya | ||
| - | </sxh> | + | </code> |
| since the namespace " | since the namespace " | ||
| + | |||
| + | ==== plot 3D trajectory using Mayavi ==== | ||
| + | |||
| + | To evaluate 3D particle tracking results, trajectories could be plotted by color coding the time. | ||
| + | |||
| + | [{{ : | ||
documents/110816pyip_cooking.1317030614.txt.gz · Last modified: 2016/05/24 12:46 (external edit)
