-
Notifications
You must be signed in to change notification settings - Fork 27
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
View last image stretches non-square images. #884
Comments
Trying to trace this and not totally got to the bottom of it but it something to do with how the viewport is scaled across the canvas. If I create a square canvas by changing the imageSequenceViewer code to make size (around line 87)
This totally solves the problem. So I assume that the openGL drawing code I assume something in the viewCanvas code onPaint function about line 890
The previous code made a canvas that was shaped to the image. I think either the viewport or the ortho projection code effectively scales the pixels again to stretch the individual pixels to the same aspect ratio as the image as a whole, rather than leaving them square. If the canvas is square (with the hack above) the self.w and self.h are equal and the pixels are square. |
I have pushed the fix above that creates a square canvas. Fixes the issue but in an ugly way. |
The view last image function brings up the image viewer and non-square images are stretched oddly.
The data is correct and hovering the mouse returns the correct pixel locations but it is as though the image is rectangular, but the pixel themselves are stretch to be rectangular so the non-square aspect is effectively doubled. All a bit strange.
The text was updated successfully, but these errors were encountered: