-
Notifications
You must be signed in to change notification settings - Fork 57
add imgui file dialog example #950
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
|
That is a really useful example. I looked at it briefly and might expand it with sequence thumbnails and an asnyc/threaded data loader as I have a lot of different sequences in a dataset to evaluate but they are on a slowish network drive. |
|
If you can make a simple example that just uses imageio to load existing image files and just displays an
Sequences, as in image sequences? Sounds like making a numpy-like interface for lazy loading is the way to go, we do it a lot in another project: https://github.com/apasarkar/masknmf-toolbox/blob/main/masknmf/arrays/array_interfaces.py |
|
📚 Docs preview built and uploaded! https://www.fastplotlib.org/ver/examples-imgui-filedialog |
| """Load an image file and update the graphic.""" | ||
| try: | ||
| img_data = iio.imread(filepath) | ||
| self._image_graphic.data = img_data |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Need to create a new image graphic if the buffer shape doesn't match.
I got an easy solution by making the numpy array of the correct size as zeros (maybe even |
WIP, Relies on #868, might be simplified by #849.
This example could save another synthetic dataset to png or mp4 to showcase loading different sizes / # of dims.
Could also instead copy the imgui_basic example for the UI and put the open file / open folder in a menu: