Hello,
I want to write a plugin for FSLeyes. I have looked at the developer documentation, but I am quite new to software development and there are some things I couldn't figure out how to do.
Therefore, I have a few questions :
1. How can I access the overlay/Image list through lines of code?
Here's the code of my plugin so far :
import fsleyes.actions as actions
class Plugin_test_importing(actions.Action):
def __init__(self, *args, **kwargs):
actions.Action.__init__(self, self.run)
def run(self):
print(overlayList) # NameError: name 'overlayList' is not defined
I am able to load the plugin correctly into FSLeyes, but the last line return an error it is executed.
2. Once I am able to access an overlay/Image loaded in FSLeyes, is it possible to extract its data into a numpy array?
3. How can I edit an Image's values and update the view panel so that the new values are visible?
4. Are there existing plugins available that I could use as examples? The plugin example in the documentation is quite minimal but it helped me get started. I couldn't find any other plugins on the internet.
I apologize if some of these questions are answered in the developer documentation. Some small code snippets would be helpful to have.
Sincerely,
Stoyan Asenov
Engineering student
[log in to unmask]
########################################################################
To unsubscribe from the FSL list, click the following link:
https://www.jiscmail.ac.uk/cgi-bin/webadmin?SUBED1=FSL&A=1
|