Esempio n. 1
0
# 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"
Esempio n. 2
0
# 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
Esempio n. 3
0
# 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
Esempio n. 4
0
# 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"