This commit is contained in:
x07maop
2015-08-24 08:28:12 +02:00
parent 92a7e39edf
commit bf5427bd04
28 changed files with 768 additions and 435 deletions
+21
View File
@@ -0,0 +1,21 @@
import ch.psi.pshell.imaging.Filter as Filter
from ch.psi.pshell.imaging.Utils import *
class MyFilter(Filter):
def process(self, image, data):
image = grayscale(image)
image = blur(image)
image = sobel(image)
return image
#Setting the filter to a source
src1.setFilter(MyFilter())
#Creating a new source with the filter
src2.setFilter(None)
add_image_source(MyFilter("f1"), True)
#f1.passive = True
src2.addListener(f1)