Gaussian OperatorΒΆ
[1]:
import logging
logging.basicConfig(level=logging.INFO)
import graphcat.notebook
import imagecat.notebook
graph = graphcat.StaticGraph()
imagecat.add_task(graph, "/text", imagecat.operator.render.text, string="Blur!")
imagecat.add_task(graph, "/gaussian", imagecat.operator.blur.gaussian, radius=["5px", "5px"])
imagecat.set_links(graph, "/text", ("/gaussian", "image"))
graphcat.notebook.display(graph)
image = graph.output("/gaussian")
INFO:imagecat.operator.render:Task /text text:
INFO:imagecat.operator.render: anchor: mm
INFO:imagecat.operator.render: fontindex: 0
INFO:imagecat.operator.render: fontname: /Users/tshead/src/imagecat/imagecat/LeagueSpartan-SemiBold.ttf
INFO:imagecat.operator.render: fontsize: 0.33h
INFO:imagecat.operator.render: layer: A
INFO:imagecat.operator.render: position: ('0.5w', '0.5h')
INFO:imagecat.operator.render: res: [256 256]
INFO:imagecat.operator.render: string: Blur!
INFO:imagecat.operator.render: output: Image(A: Layer(Role.ALPHA 256x256x1 float16))
INFO:imagecat.operator.blur:Task /gaussian gaussian:
INFO:imagecat.operator.blur: layer: None
INFO:imagecat.operator.blur: radius: ['5px', '5px']
INFO:imagecat.operator.blur: output: Image(A: Layer(Role.ALPHA 256x256x1 float16))
[2]:
image.layers["A"]
[2]: