The following article discusses how can we get frame geometry of the image view object in PyQTGaph. Frame geometry is the geometry of the image view corresponding to the main window, it describes the position and size of the image view. 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 geometry of the frame frameGeometry() methodis used with the image view object. It takes no arguments and returns a QRect 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.