GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||||||||||||||||||||
GeezerVison is showing github.com — add imgui file dialog example by FlynnOConnell · Pull Request #950 · fastplotlib/fastplotlib 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. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
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 |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
📚 Docs preview built and uploaded! https://www.fastplotlib.org/ver/examples-imgui-filedialog |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| """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.
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.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
I got an easy solution by making the numpy array of the correct size as zeros (maybe even |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| self._image_graphic.data = img_data | ||
| else: | ||
| # shape mismatch: remove old graphic and create a new one | ||
| subplot = self._image_graphic._plot_area |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
EdgeWindow has a figure instance so you can use that to get the subplot. Graphic._plot_area isn't part of the public API
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
@Vipitis Instead of fixing the the issues above I used claude to extract a data loader from one of my other repos into a python package imgui_data_loader you might be interested in! @kushalkolar I will do the above at some point or could just import that data loader |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Requested changes must be addressed to merge this pull request.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.