PyQtGraph – Getting Frame Geometry of the Image View
The following article discusses how can we get frame geometry of the image view object in PyQTGraph. 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. It 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() method is used with the image view object. It takes no arguments and returns a QRect object.