Skip to content
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

Question: Visualizing high resolution image is slow #300

Open
mdhe1248 opened this issue Dec 12, 2023 · 2 comments
Open

Question: Visualizing high resolution image is slow #300

mdhe1248 opened this issue Dec 12, 2023 · 2 comments

Comments

@mdhe1248
Copy link

When visualizing a high resolution image, ImageView seems quite slow (slower than ImageJ). To speed up, is it possible to limit the image resolution to that of monitor; but visualize the original resolution when a region is zoomed in? I guess when the image resolution is larger than that of monitor, it may not necessary to load all the pixels.

@jwahlstrand
Copy link
Collaborator

I'd assume the slowness has to do with ImageView using Cairo to draw an image into a memory buffer, which is then shown by GTK. There's little to no GPU involvement, as far as I understand it. There are probably ways to eke out more performance within the current approach (perhaps by doing what you say), but it would probably be more efficient to use GL or the equivalent to do the rescaling and drawing. That would require someone rewriting the Canvas code in GtkObservables to use GL rather than Cairo.

@mkitti
Copy link
Member

mkitti commented May 2, 2024

With ImageJ is an image pyramid being used (such as with BigDataViewer) ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants