-
Notifications
You must be signed in to change notification settings - Fork 103
Example: Python
Erik Smistad edited this page Mar 9, 2017
·
3 revisions
The semantics of the python bindings are very similar to C++. Below is an example of how to import an image and display it in a window.
import fast
importer = fast.ImageFileImporter.New()
importer.setFilename(fast.Config.getTestDataPath() + 'US/US-2D.jpg')
renderer = fast.ImageRenderer.New()
renderer.setInputConnection(importer.getOutputPort())
window = fast.SimpleWindow.New()
window.set2DMode()
window.addRenderer(renderer)
window.start()
If this wiki page lacks some information or is incorrect please let us know! You can edit this wiki page yourself, send an email to ersmistad@gmail.com or