# See the LICENSE file for details. License information is also available # on the ilastik web site at: # http://ilastik.org/license.html ############################################################################### from ilastik.config import cfg from yapsy.IPlugin import IPlugin from yapsy.PluginManager import PluginManager import os from collections import namedtuple from functools import partial import numpy # these directories are searched for plugins plugin_paths = cfg.get('ilastik', 'plugin_directories') plugin_paths = list( os.path.expanduser(d) for d in plugin_paths.split(',') if len(d) > 0) plugin_paths.append(os.path.join( os.path.split(__file__)[0], "plugins_default")) ########################## # different plugin types # ########################## class ObjectFeaturesPlugin(IPlugin): """Plugins of this class calculate object features.""" name = "Base object features plugin"
# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. # # Copyright 2011-2014, the ilastik developers from ilastik.config import cfg from yapsy.IPlugin import IPlugin from yapsy.PluginManager import PluginManager import os from collections import namedtuple from functools import partial import numpy # these directories are searched for plugins plugin_paths = cfg.get("ilastik", "plugin_directories") plugin_paths = list(os.path.expanduser(d) for d in plugin_paths.split(",") if len(d) > 0) plugin_paths.append(os.path.join(os.path.split(__file__)[0], "plugins_default")) ########################## # different plugin types # ########################## class ObjectFeaturesPlugin(IPlugin): """Plugins of this class calculate object features.""" name = "Base object features plugin" # TODO for now, only one margin will be set in the dialog. however, it # should be repeated for each feature, because in the future it
# See the LICENSE file for details. License information is also available # on the ilastik web site at: # http://ilastik.org/license.html ############################################################################### from ilastik.config import cfg from yapsy.IPlugin import IPlugin from yapsy.PluginManager import PluginManager import os from collections import namedtuple from functools import partial import numpy # these directories are searched for plugins plugin_paths = cfg.get('ilastik', 'plugin_directories') plugin_paths = list(os.path.expanduser(d) for d in plugin_paths.split(',') if len(d) > 0) plugin_paths.append(os.path.join(os.path.split(__file__)[0], "plugins_default")) ########################## # different plugin types # ########################## class ObjectFeaturesPlugin(IPlugin): """Plugins of this class calculate object features.""" name = "Base object features plugin" # TODO for now, only one margin will be set in the dialog. however, it # should be repeated for each feature, because in the future it
# on the ilastik web site at: # http://ilastik.org/license.html ############################################################################### from builtins import range from ilastik.config import cfg from yapsy.IPlugin import IPlugin from yapsy.PluginManager import PluginManager import os from collections import namedtuple from functools import partial import numpy # these directories are searched for plugins plugin_paths = cfg.get("ilastik", "plugin_directories") plugin_paths = list( os.path.expanduser(d) for d in plugin_paths.split(",") if len(d) > 0) plugin_paths.append(os.path.join( os.path.split(__file__)[0], "plugins_default")) ########################## # different plugin types # ########################## class ObjectFeaturesPlugin(IPlugin): """Plugins of this class calculate object features.""" name = "Base object features plugin"