PyQtGraph – Getting Frame Size of the Image View
The following article discusses how frame size of the image view object can be retrieved using PyQTGraph. Frame size is the size of the image view corresponding to the main window. PyQtGraph is a graphics and user interface Python library for functionalities commonly required in designing and science applications. Its provides fast, interactive graphics for displaying data (plots, video, etc.). Implements many features like displaying 2D and 3D image data. For 3D data, a z-axis slider is displayed allowing the user to select which frame will be displayed. Displays histogram of image data with movable region defining the dark/light levels and editable gradient provides a color lookup table for reference.
For creating an image view ImageView() is used
imv = pg.ImageView()
To get the frame size framesize() is used. It takes no arguments and returns a QSize object
Attention geek! Strengthen your foundations with the Python Programming Foundation Course and learn the basics.
To begin with, your interview preparations Enhance your Data Structures concepts with the Python DS Course. And to begin with your Machine Learning Journey, join the Machine Learning – Basic Level Course