[](https://travis-ci.org/mjirik/sed3)
[](https://coveralls.io/r/mjirik/sed3)
[](http://badge.fury.io/py/sed3)
sed3
====
3D viewer and seed editor
Example 1 - get seeds
=======
import sed3
import numpy as np
img = np.random.random([10, 12, 15])
img[6:9, 2:7, 1:5] += 2
img[7:9, 3:9, 8:14] += 3
ed = sed3.sed3(img)
ed.show()
print ed.seeds

Example 2 - static figure
=======
import sed3
import numpy as np
img = np.random.random([10, 12, 15])
img[6:9, 2:7, 1:5] += 2
img[7:9, 3:9, 8:14] += 3
sed3.show_slices(img)

Example 3 - more options
=======
import sed3
import numpy as np
img = np.random.random([10, 12, 15])
img[6:9, 2:7, 1:5] += 2
img[7:9, 3:9, 8:14] += 3
seeds = np.zeros(img.shape)
seeds[6:8, 4, 3:10] = 1
seeds[6:8, 6:11, 9:11] = 2
ed = sed3.sed3(img, seeds=seeds)
contour = np.zeros(img.shape)
contour[6:8, 3:10, 2:10] = 1
contour[6:8, 5:8, 4:7] = 2
ed = sed3.sed3(img, seeds=seeds, contour=contour, windowW=3.5, windowC=1.5)
seeds = ed.show()

Example 4 - PyQt version
=======
import sed3qt
import numpy as np
from PyQt4.QtGui import QApplication
img = np.random.random([10, 12, 15])
img[6:9, 2:7, 1:5] += 2
img[7:9, 3:9, 8:14] += 3
app = QApplication([])
ed = sed3.sed3qt(img)
ed.exec_()
print ed.seeds
Install notes
=============
sudo apt-get install python-matplotlib
pip install sed3
[](https://coveralls.io/r/mjirik/sed3)
[](http://badge.fury.io/py/sed3)
sed3
====
3D viewer and seed editor
Example 1 - get seeds
=======
import sed3
import numpy as np
img = np.random.random([10, 12, 15])
img[6:9, 2:7, 1:5] += 2
img[7:9, 3:9, 8:14] += 3
ed = sed3.sed3(img)
ed.show()
print ed.seeds

Example 2 - static figure
=======
import sed3
import numpy as np
img = np.random.random([10, 12, 15])
img[6:9, 2:7, 1:5] += 2
img[7:9, 3:9, 8:14] += 3
sed3.show_slices(img)

Example 3 - more options
=======
import sed3
import numpy as np
img = np.random.random([10, 12, 15])
img[6:9, 2:7, 1:5] += 2
img[7:9, 3:9, 8:14] += 3
seeds = np.zeros(img.shape)
seeds[6:8, 4, 3:10] = 1
seeds[6:8, 6:11, 9:11] = 2
ed = sed3.sed3(img, seeds=seeds)
contour = np.zeros(img.shape)
contour[6:8, 3:10, 2:10] = 1
contour[6:8, 5:8, 4:7] = 2
ed = sed3.sed3(img, seeds=seeds, contour=contour, windowW=3.5, windowC=1.5)
seeds = ed.show()

Example 4 - PyQt version
=======
import sed3qt
import numpy as np
from PyQt4.QtGui import QApplication
img = np.random.random([10, 12, 15])
img[6:9, 2:7, 1:5] += 2
img[7:9, 3:9, 8:14] += 3
app = QApplication([])
ed = sed3.sed3qt(img)
ed.exec_()
print ed.seeds
Install notes
=============
sudo apt-get install python-matplotlib
pip install sed3
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
sed3-1.1.29.tar.gz
(16.4 kB
view details)
File details
Details for the file sed3-1.1.29.tar.gz.
File metadata
- Download URL: sed3-1.1.29.tar.gz
- Upload date:
- Size: 16.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
eaaafae11e4fa8f3141b66fa886e1ed3bce3131b381dee6573433e0fd8b101b5
|
|
| MD5 |
0166958a47b02dd97a35af90913b67ed
|
|
| BLAKE2b-256 |
c5beaac9715c847ba1a190f5dd21daf5c0cb034127ad73c761f7b73d0709526e
|