Aspect Ratio for the fancy imshow, need your opinions!
Currently, the simple imshow(), just shows the image at its native size with no resizing possible. In the QT plugin version imshow(img, fancy=True), allows the image to be resized with the window to any aspect ratio. What is the preference of everyone here? Would you rather I leave it so it can be resized to any ratio (with the possibility of it not being the correct aspect ratio on launch, if it is very small, or very large). Or would you prefer that the aspect ratio be kept constant? Cheers, Chris
Hi Chris 2009/11/6 Chris Colbert <sccolbert@gmail.com>:
What is the preference of everyone here? Would you rather I leave it so it can be resized to any ratio (with the possibility of it not being the correct aspect ratio on launch, if it is very small, or very large). Or would you prefer that the aspect ratio be kept constant?
My vote goes for constant aspect ratio -- I very seldom need to deform an image to see the effect of stretching it out. Regards Stéfan
Ok, I've modified the qt imshow and fancy imshow to maintain the aspect ratio of the image when the window is resized. Woot! I'm done for the night! Chris 2009/11/6 Stéfan van der Walt <stefan@sun.ac.za>:
Hi Chris
2009/11/6 Chris Colbert <sccolbert@gmail.com>:
What is the preference of everyone here? Would you rather I leave it so it can be resized to any ratio (with the possibility of it not being the correct aspect ratio on launch, if it is very small, or very large). Or would you prefer that the aspect ratio be kept constant?
My vote goes for constant aspect ratio -- I very seldom need to deform an image to see the effect of stretching it out.
Regards Stéfan
Hey Chris 2009/11/7 Chris Colbert <sccolbert@gmail.com>:
I've modified the qt imshow and fancy imshow to maintain the aspect ratio of the image when the window is resized.
Having the aspect ratio maintained works very well, thanks! The histograms are also really fast now. You can pull a patch to fix cursor position tracking from my 'io' branch. Cheers Stéfan
participants (2)
-
Chris Colbert
-
Stéfan van der Walt