
    e              	       p   d Z ddlZddlZddlmZ  ej                  d        ej                  d      Z	 ej                         Zej                  dd        ej                  d	      Zej                  e       ej!                          ej#                  d
       ej%                  d        ej&                  d       ej(                  ddd      ddej*                  ej*                  f   z  Ze ej.                  ej0                  j3                  d      d      dz  z  Z ej&                  d       ej(                  ddd      ddej*                  ej*                  f   z  Ze ej.                  ej0                  j3                  d      d      dz  z  Z ej&                  d       ej(                  ddd      ddej*                  ej*                  f   z  Ze ej.                  ej0                  j3                  d      d      dz  z  Z ej8                  eddddddej*                  f   eddddddej*                  f   eddddddej*                  f   fd      Zej=                  e ej(                  ddej>                  d                ejA                  d       g dZ! ejD                   ej(                  ddd      e!      Z#ejI                  e#       ejJ                  jL                  jO                  d       ejQ                          e)dk(  r ejT                          yy)a  
This example demonstrates the use of ImageView with 3-color image stacks.
ImageView is a high-level widget for displaying and analyzing 2D and 3D data.
ImageView provides:

  1. A zoomable region (ViewBox) for displaying the image
  2. A combination histogram and gradient editor (HistogramLUTItem) for
     controlling the visual appearance of the image
  3. A timeline for selecting the currently displayed frame (for 3D data only).
  4. Tools for very basic analysis of image data (see ROI and Norm buttons)

    N)	QtWidgetsz	row-major)imageAxisOrderzImageView Examplei   T)discreteTimeLinezpyqtgraph example: ImageViewzHistogram label goes here)d      r   Z      r   )r   r   )size)   r         )axisg      ?g      @)xvals
   ))r   r   r   )-   r   =   )T   *   7   )r	   W   <   )         )   r   r   g           )poscolor__main__)+__doc__numpynp	pyqtgraphpgpyqtgraph.Qtr   setConfigOptionsmkQAppappQMainWindowwinresize	ImageViewimvsetCentralWidgetshowsetWindowTitlesetHistogramLabeloneslinspacenewaxisdataRedgaussianFilterrandomnormaldataGrndataBluconcatenatedatasetImageshapeplaycolorsColorMapcmapsetColorMapuiroiBtn
setChecked
roiClicked__name__exec     >/usr/lib/python3/dist-packages/pyqtgraph/examples/ImageView.py<module>rM      s     "   ; /bii#$ i 

3s bllD)   S  
   1 2   1 2 "''/
"[R[[S#%>q"**bjj?X%Y
Y 2RYY--:->G#M M
"''/
"[R[[S#%>q"**bjj?X%Y
Y 2RYY--:->G#M M
"''/
"[R[[b#%>q"**bjj?X%Y
Y 2RYY--:->G#M Mr~~Q1bjj !71aBJJ+>#?AqRTR\R\I\A]^ef TRTZZ]; < 
 r{{{r{{3Q/v>        zBGGI rK   