JuliaImages / ImageView.jl

Interactive display of images and movies
MIT License
135 stars 34 forks source link

Question: Visualizing high resolution image is slow #300

Open mdhe1248 opened 8 months ago

mdhe1248 commented 8 months ago

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 commented 6 months ago

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 commented 3 months ago

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