import PyQt4.QtCore as qcore import PyQt4.QtGui as qt from PyQt4.QtCore import SIGNAL import vigra import vigra.ufunc if sys.version_info[0] > 2: xrange = range try: from VigraQt import OverlayViewer, ImageCursor except Exception as e: vigra._fallbackModule( 'VigraQt', ''' %s If VigraQt is missing on your system, you can download it from https://github.com/hmeine/vigraqt/#vigraqt4''' % str(e)) from VigraQt import OverlayViewer, ImageCursor import quickdialog import weakref import viewer2svg class Crosshair(ImageCursor): def __init__(self, *args): ImageCursor.__init__(self, *args) self.visible = False self.position = qcore.QPoint(-1, -1)
import math, os, numpy, PyQt4 import PyQt4.QtCore as qcore import PyQt4.QtGui as qt from PyQt4.QtCore import SIGNAL import vigra import vigra.ufunc try: from VigraQt import OverlayViewer, ImageCursor except Exception, e: vigra._fallbackModule('VigraQt', ''' %s If VigraQt is missing on your system, you can download it from https://github.com/hmeine/vigraqt/#vigraqt4''' % str(e)) from VigraQt import OverlayViewer, ImageCursor import quickdialog import weakref import viewer2svg class Crosshair(ImageCursor): def __init__(self, *args): ImageCursor.__init__(self, *args) self.visible = False self.position = qcore.QPoint(-1, -1) def setVisible(self, what=True): self.visible = what
from PyQt4.QtCore import SIGNAL import vigra import vigra.ufunc if sys.version_info[0] > 2: xrange = range try: from VigraQt import OverlayViewer, ImageCursor except Exception as e: vigra._fallbackModule( "VigraQt", """ %s If VigraQt is missing on your system, you can download it from https://github.com/hmeine/vigraqt/#vigraqt4""" % str(e), ) from VigraQt import OverlayViewer, ImageCursor import quickdialog import weakref import viewer2svg class Crosshair(ImageCursor): def __init__(self, *args): ImageCursor.__init__(self, *args) self.visible = False
import math, os, numpy, PyQt4 import PyQt4.QtCore as qcore import PyQt4.QtGui as qt from PyQt4.QtCore import SIGNAL import vigra import vigra.ufunc try: from VigraQt import OverlayViewer, ImageCursor except Exception, e: vigra._fallbackModule( 'VigraQt', ''' %s If VigraQt is missing on your system, you can download it from http://kogs-www.informatik.uni-hamburg.de/~meine/software/vigraqt/.''' % str(e)) from VigraQt import OverlayViewer, ImageCursor import quickdialog import weakref import viewer2svg class ImageViewer(OverlayViewer): activeViewers = weakref.WeakValueDictionary() def __init__(self, image, normalize=True, title=None, parent=None):
####################################################################### import math, os, numpy, PyQt4 import PyQt4.QtCore as qcore import PyQt4.QtGui as qt from PyQt4.QtCore import SIGNAL import vigra import vigra.ufunc try: from VigraQt import OverlayViewer, ImageCursor except: vigra._fallbackModule('VigraQt', ''' It can be obtained at http://kogs-www.informatik.uni-hamburg.de/~meine/software/vigraqt/.''') from VigraQt import OverlayViewer, ImageCursor import quickdialog import weakref class ImageViewer(OverlayViewer): activeViewers = weakref.WeakValueDictionary() def __init__(self, image, normalize = True, title = None, parent = None): OverlayViewer.__init__(self, parent) self.setImage(image, normalize) self._savedExpression = "x" self._lastSaveType = 2
import math, os, numpy, PyQt4 import PyQt4.QtCore as qcore import PyQt4.QtGui as qt from PyQt4.QtCore import SIGNAL import vigra import vigra.ufunc try: from VigraQt import OverlayViewer, ImageCursor except Exception, e: vigra._fallbackModule('VigraQt', ''' %s If VigraQt is missing on your system, you can download it from http://kogs-www.informatik.uni-hamburg.de/~meine/software/vigraqt/.''' % str(e)) from VigraQt import OverlayViewer, ImageCursor import quickdialog import weakref class ImageViewer(OverlayViewer): activeViewers = weakref.WeakValueDictionary() def __init__(self, image, normalize = True, title = None, parent = None): OverlayViewer.__init__(self, parent) self.setImage(image, normalize) self._savedExpression = "x"