...
 
Commits (2)
......@@ -7,6 +7,7 @@ set (EXAMPLE_IMAGES
set (EXAMPLE_PYTHON
median.py
cython_average.py
)
if (BUILD_EXAMPLES)
......
#!/usr/bin/env python
import os
import sys
#temp fix until python has an install command
sys.path.append(os.path.join(os.path.dirname(__file__), "../../lib"))
import kazepy as K
img = K.File.read('images/lena.png')
averageblock = K.Block("average")
averageblock.set_input("input",img)
averageblock.set_option("radius", 7)
averageblock.execute()
averaged = averageblock.get_output("output")
averaged.write('cython_average.png')
#!/usr/bin/env python
import os
import sys
#temp fix until python has an install command
sys.path.append(os.path.join(os.path.dirname(__file__), "../../lib"))
import kazepy as K
......