documents:110816pyip_cooking
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision | ||
documents:110816pyip_cooking [2011/09/25 22:23] – kota | documents:110816pyip_cooking [2016/05/24 12:46] – external edit 127.0.0.1 | ||
---|---|---|---|
Line 9: | Line 9: | ||
=== Tiff file to numpy.ndarray === | === Tiff file to numpy.ndarray === | ||
- | <sxh python> | + | <code python> |
>>> | >>> | ||
>>> | >>> | ||
>>> | >>> | ||
>>> | >>> | ||
- | </sxh> | + | </code> |
* cv.imread reads only the first frame in tiff stack. | * cv.imread reads only the first frame in tiff stack. | ||
Line 21: | Line 21: | ||
=== Tiff file to Iplimage === | === Tiff file to Iplimage === | ||
- | <sxh python> | + | <code python> |
In [40]: img = cv.LoadImage('/ | In [40]: img = cv.LoadImage('/ | ||
In [41]: img | In [41]: img | ||
Out[41]: < | Out[41]: < | ||
- | </sxh> | + | </code> |
Line 67: | Line 67: | ||
* 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 78: | Line 78: | ||
[ 7., 7., 7., 7., 7.]], dtype=float32) | [ 7., 7., 7., 7., 7.]], dtype=float32) | ||
- | </sxh> | + | </code> |
< | < | ||
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 138: | Line 138: | ||
ipython -wthread | ipython -wthread | ||
</ | </ | ||
- | or incase of newer ipython | + | or incase of newer ipython |
< | < | ||
ipython --i | ipython --i | ||
Line 165: | Line 165: | ||
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.txt · Last modified: 2016/05/25 07:56 by kota