Exemplo n.º 1
0
ImageView.py -  Widget for basic image dispay and analysis
Copyright 2010  Luke Campagnola
Distributed under MIT/X11 license. See license.txt for more infomation.

Widget used for displaying 2D or 3D data. Features:
  - float or int (including 16-bit int) image display via ImageItem
  - zoom/pan via GraphicsView
  - black/white level controls
  - time slider for 3D data sets
  - ROI plotting
  - Image normalization through a variety of methods
"""
from interface.Qt import QtCore, QtGui, loadUiType
import interface.ui

Ui_Form, base = loadUiType(interface.ui.uidir + '/image_view.ui')

import pyqtgraph
import numpy

class ImageView(QtGui.QWidget):
    """
    Widget used for display and analysis of image data.
    Implements many features:

    * Displays 2D and 3D image data. For 3D data, a z-axis
      slider is displayed allowing the user to select which frame is displayed.
    * Displays histogram of image data with movable region defining the dark/light levels
    * Editable gradient provides a color lookup table
    * Frame slider may also be moved using left/right arrow keys as well as pgup, pgdn, home, and end.
    * Basic analysis features including:
Exemplo n.º 2
0
"""Contains all the Designer created widgets, one per module"""
from interface.Qt import loadUiType
import os
import sys
# Append the images to the module search path so we can find the resources file
sys.path.append(os.path.dirname(__file__) + "/../images/")

uidir = os.path.dirname(os.path.realpath(__file__))
Ui_addBackend, base = loadUiType(uidir + '/add_backend.ui')
Ui_preferences, base = loadUiType(uidir + '/preferences.ui')
Ui_plotWindow, base = loadUiType(uidir + '/plot_window.ui')
Ui_imageWindowSettings, base = loadUiType(uidir + '/image_window_settings.ui')
Ui_imageWindow, base = loadUiType(uidir + '/image_window.ui')
Ui_linePlotSettings, base = loadUiType(uidir + '/line_plot_settings.ui')

from interface.ui.data_window import DataWindow  # pylint: disable=unused-import
from interface.ui.add_backend import AddBackendDialog  # pylint: disable=unused-import
from interface.ui.preferences import PreferencesDialog  # pylint: disable=unused-import
from interface.ui.line_plot_settings import LinePlotSettings  # pylint: disable=unused-import
from interface.ui.plot_window import PlotWindow  # pylint: disable=unused-import
from interface.ui.image_window import ImageWindow  # pylint: disable=unused-import

Ui_mainWindow, base = loadUiType(uidir + '/main_window.ui')
Exemplo n.º 3
0
"""Contains all the Designer created widgets, one per module"""
from interface.Qt import loadUiType
import os
import sys
# Append the images to the module search path so we can find the resources file
sys.path.append(os.path.dirname(__file__)+"/../images/")

uidir = os.path.dirname(os.path.realpath(__file__))
Ui_addBackend, base = loadUiType(uidir + '/add_backend.ui')
Ui_preferences, base = loadUiType(uidir + '/preferences.ui')
Ui_plotWindow, base = loadUiType(uidir + '/plot_window.ui')
Ui_imageWindowSettings, base = loadUiType(uidir + '/image_window_settings.ui')
Ui_imageWindow, base = loadUiType(uidir + '/image_window.ui')
Ui_mainWindow, base = loadUiType(uidir + '/main_window.ui')
Ui_linePlotSettings, base = loadUiType(uidir + '/line_plot_settings.ui')

from interface.ui.data_window import DataWindow # pylint: disable=unused-import
from interface.ui.add_backend import AddBackendDialog # pylint: disable=unused-import
from interface.ui.preferences import PreferencesDialog # pylint: disable=unused-import
from interface.ui.line_plot_settings import LinePlotSettings # pylint: disable=unused-import
from interface.ui.plot_window import PlotWindow # pylint: disable=unused-import
from interface.ui.image_window import ImageWindow # pylint: disable=unused-import