Source code for ilastik.applets.objectExtraction.objectExtractionApplet

###############################################################################
#   ilastik: interactive learning and segmentation toolkit
#
#       Copyright (C) 2011-2014, the ilastik developers
#                                <team@ilastik.org>
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
# In addition, as a special exception, the copyright holders of
# ilastik give you permission to combine ilastik with applets,
# workflows and plugins which are not covered under the GNU
# General Public License.
#
# See the LICENSE file for details. License information is also available
# on the ilastik web site at:
#		   http://ilastik.org/license.html
###############################################################################
from ilastik.applets.base.standardApplet import StandardApplet
from ilastik.applets.objectExtraction.opObjectExtraction import OpObjectExtraction
from ilastik.applets.objectExtraction.objectExtractionSerializer import ObjectExtractionSerializer

[docs]class ObjectExtractionApplet(StandardApplet): """Calculates object features for each object in an image. Features are provided by plugins, which are responsible for performing the actual computation. """ def __init__(self, name="Object Extraction", workflow=None, projectFileGroupName="ObjectExtraction", interactive=True): super(ObjectExtractionApplet, self).__init__(name=name, workflow=workflow, interactive=interactive) self._serializableItems = [ ObjectExtractionSerializer(self.topLevelOperator, projectFileGroupName) ] @property def singleLaneOperatorClass(self): return OpObjectExtraction @property def broadcastingSlots(self): return ['Features'] @property def singleLaneGuiClass(self): from ilastik.applets.objectExtraction.objectExtractionGui import ObjectExtractionGui from ilastik.applets.objectExtraction.objectExtractionGui import ObjectExtractionGuiNonInteractive if self.interactive: return ObjectExtractionGui else: return ObjectExtractionGuiNonInteractive @property def dataSerializers(self): return self._serializableItems