Exemple #1
0
from ilastik.applets.layerViewer.layerViewerGui import LayerViewerGui

import os.path
import sys

from PyQt4.QtGui import QWidget, QProgressDialog, \
    QMessageBox, QFileDialog
from PyQt4.QtCore import Qt, QString, QVariant, pyqtSignal, QObject, QDir

import PyQt4

import logging
from lazyflow.operators.opInterpMissingData import logger as remoteLogger

remoteLogger.setLevel(logging.DEBUG)
loggerName = __name__
logger = logging.getLogger(loggerName)
logger.setLevel(logging.DEBUG)


def qstring2str(s):
    assert type(s) == QString
    return unicode(s.toUtf8(), "utf-8").encode(sys.getfilesystemencoding())


class FillMissingSlicesGui(LayerViewerGui):

    _standardPatchSizes = [1, 2, 4, 8] + [16 * i for i in range(1, 6)]
    _standardHaloSizes = [8 * i for i in range(7)]

    _recentDetectorDir = QDir.homePath()
from ilastik.applets.layerViewer.layerViewerGui import LayerViewerGui

import os.path
import sys

from PyQt4.QtGui import QWidget, QProgressDialog, \
    QMessageBox, QFileDialog
from PyQt4.QtCore import Qt, QString, QVariant, pyqtSignal, QObject, QDir

import PyQt4

import logging
from lazyflow.operators.opInterpMissingData import logger as remoteLogger


remoteLogger.setLevel(logging.DEBUG)
loggerName = __name__
logger = logging.getLogger(loggerName)
logger.setLevel(logging.DEBUG)


def qstring2str(s):
    assert type(s) == QString
    return unicode(s.toUtf8(), "utf-8").encode(sys.getfilesystemencoding())


class FillMissingSlicesGui(LayerViewerGui):

    _standardPatchSizes = [1, 2, 4, 8] + [16*i for i in range(1, 6)]
    _standardHaloSizes = [8*i for i in range(7)]