CoolFace
Apppublic

Aluode/PerceptionLabPortable

sourceHugging Faceupdated 9mo agoView on Hugging Face
0likes
ImageView.cpython-310.pyc24 linesDownload Raw Back to __pycache__
1o

2�Yi��@sdZddlZddlZddlmZejdd�e�d�Z	e�3�Ze�dd�ej
dd	d4�Ze�e�e��e�d�e�d�e�d
�e�ddd�dd�ejejfZee�ejjdd�d�d7Ze�d
�e�ddd�dd�ejejfZee�ejjdd�d�d7Ze�d
�e�ddd�dd�ejejfZee�ejjdd�d�d7Zejedd�dd�dd�ejfedd�dd�dd�ejfedd�dd�dd�ejffdd�Zejee�ddejd�d�e� d�ej!j"�#d�e�$�e%dk�re�&�dSdS)a5This example demonstrates the use of ImageView with 3-color image stacks.6ImageView is a high-level widget for displaying and analyzing 2D and 3D data.7ImageView provides:8 9  1. A zoomable region (ViewBox) for displaying the image10  2. A combination histogram and gradient editor (HistogramLUTItem) for11     controlling the visual appearance of the image12  3. A timeline for selecting the currently displayed frame (for 3D data only).13  4. Tools for very basic analysis of image data (see ROI and Norm buttons)14 15�N)�	QtWidgetsz	row-major)ZimageAxisOrderzImageView Examplei TZrgba)ZdiscreteTimeLineZ	levelModezpyqtgraph example: ImageViewzHistogram label goes here)�d��r�Z�r)rr)�size)�r��)Zaxisg�?g@)Zxvals�16�__main__)'�__doc__�numpy�npZ	pyqtgraphZpgZpyqtgraph.QtrZsetConfigOptionsZmkQAppZappZQMainWindow�win�resizeZ	ImageViewZimvZsetCentralWidget�showZsetWindowTitleZsetHistogramLabelZonesZlinspaceZnewaxisZdataRedZgaussianFilter�random�normalZdataGrnZdataBluZconcatenate�dataZsetImage�shapeZplayZuiZroiBtnZ17setCheckedZ18roiClicked�__name__�exec�rr��E:\DocsHouse\542 percep lab latest\PerceptionLab\PerceptionLab_Portable\python_embed\Lib\site-packages\pyqtgraph/examples/ImageView.py�<module>s:
19202122***X�2324�
Aluode/PerceptionLabPortable · CoolFace