Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
Already on GitHub? Sign in to your account
java gui --zoom out #10
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
evillalon commentedDec 6, 2010
Using downsampleBase=1.2 and maxDownsampleExponent=40 can create a problem when zooming out the image; the downsample values range from 1.2 up to 1.2^40 = 1469.772.
The lowest limit 1.2 is reached for the lower layers, e.g. 0, but the highest limit 1469.772
is approached for the highest layer (number of layers-1). The slide zooms out to the highest layer for a downsample of below 100 and, then, the image just keeps decreasing in size until it disappears from the GUI with a memory exception because the array of data requested for such large downsamples are very large in size, and probably never gets as high as the value 1469.772 before it just disappears. I think that there should also be a maxdownsample of around 65 -100 so that the downsample should not increase above it. In my opinion, a better choice is downsampleBase=1.15 and maxDownsampleExponent=30, which gives a maximum value of 1.15^30 = 66.21177. I do not know if the choices for these parameters should depend on the images but for the ones I am working with 1.15 and 30 are better.