예제 #1
0
    def __init__( self, workflow, projectFileGroupName ):
        Applet.__init__( self, "Generic Labeling" )

        self._topLevelOperator = OpLabeling(parent=workflow)
        self._topLevelOperator.name = "Labeling Top-Level Operator"
        self._serializableItems = [ LabelingSerializer( self._topLevelOperator, projectFileGroupName ) ]
        self._gui = None
예제 #2
0
    def __init__(self, graph, projectFileGroupName):
        Applet.__init__(self, "Generic Labeling")

        self._topLevelOperator = OpLabeling(graph=graph)
        self._serializableItems = [
            LabelingSerializer(self._topLevelOperator, projectFileGroupName)
        ]
        self._gui = None
    def __init__( self ):
        Applet.__init__( self, "Project Metadata" )
        
        self._projectMetadata = ProjectMetadata()

        self._gui = None # Created on first acess

        self._serializableItems = [ ProjectMetadataSerializer(self._projectMetadata, "ProjectMetadata"),
                                    Ilastik05ProjectMetadataDeserializer(self._projectMetadata) ]
예제 #4
0
    def __init__(self):
        Applet.__init__(self, "Project Metadata")

        self._projectMetadata = ProjectMetadata()

        self._gui = None  # Created on first acess

        self._serializableItems = [
            ProjectMetadataSerializer(self._projectMetadata,
                                      "ProjectMetadata"),
            Ilastik05ProjectMetadataDeserializer(self._projectMetadata)
        ]
    def __init__( self, workflow, projectFileGroupName ):
        Applet.__init__( self, "Pixel Classification" )

        self._topLevelOperator = OpPixelClassification( parent=workflow )

        # We provide two independent serializing objects:
        #  one for the current scheme and one for importing old projects.
        self._serializableItems = [PixelClassificationSerializer(self._topLevelOperator, projectFileGroupName), # Default serializer for new projects
                                   Ilastik05ImportDeserializer(self._topLevelOperator)]   # Legacy (v0.5) importer


        self._gui = None
        
        # GUI needs access to the serializer to enable/disable prediction storage
        self.predictionSerializer = self._serializableItems[0]

        # FIXME: For now, we can directly connect the progress signal from the classifier training operator
        #  directly to the applet's overall progress signal, because it's the only thing we report progress for at the moment.
        # If we start reporting progress for multiple tasks that might occur simulatneously,
        #  we'll need to aggregate the progress updates.
        self._topLevelOperator.opTrain.progressSignal.subscribe(self.progressSignal.emit)
    def __init__( self, graph, projectFileGroupName ):
        Applet.__init__( self, "Pixel Classification" )

        self._topLevelOperator = OpPixelClassification( graph=graph )

        # We provide two independent serializing objects:
        #  one for the current scheme and one for importing old projects.
        self._serializableItems = [PixelClassificationSerializer(self._topLevelOperator, projectFileGroupName), # Default serializer for new projects
                                   Ilastik05ImportDeserializer(self._topLevelOperator)]   # Legacy (v0.5) importer


        self._gui = None
        
        # GUI needs access to the serializer to enable/disable prediction storage
        self.predictionSerializer = self._serializableItems[0]

        # FIXME: For now, we can directly connect the progress signal from the classifier training operator
        #  directly to the applet's overall progress signal, because it's the only thing we report progress for at the moment.
        # If we start reporting progress for multiple tasks that might occur simulatneously,
        #  we'll need to aggregate the progress updates.
        self._topLevelOperator.opTrain.progressSignal.subscribe(self.progressSignal.emit)
예제 #7
0
#
# Simple standalone test for the IlastikShell
#
if __name__ == "__main__":
    #make the program quit on Ctrl+C
    import signal
    signal.signal(signal.SIGINT, signal.SIG_DFL)
    from PyQt4.QtGui import QApplication
    import sys
    from applet import Applet

    qapp = QApplication(sys.argv)
    
    # Create some simple applets to load
    defaultApplet = Applet()
    trackingApplet = Applet("Tracking")

    # Normally applets would provide their own menu items,
    # but for this test we'll add them here (i.e. from the outside).
    defaultApplet._menuWidget = QMenuBar()
    defaultApplet._menuWidget.setNativeMenuBar( False ) # Native menus are broken on Ubuntu at the moment
    defaultMenu = QMenu("Default Applet", defaultApplet._menuWidget)
    defaultMenu.addAction("Default Action 1")
    defaultMenu.addAction("Default Action 2")
    defaultApplet._menuWidget.addMenu(defaultMenu)
    
    trackingApplet._menuWidget = QMenuBar()
    trackingApplet._menuWidget.setNativeMenuBar( False ) # Native menus are broken on Ubuntu at the moment
    trackingMenu = QMenu("Tracking Applet", trackingApplet._menuWidget)
    trackingMenu.addAction("Tracking Options...")
예제 #8
0
#
# Simple standalone test for the IlastikShell
#
if __name__ == "__main__":
    #make the program quit on Ctrl+C
    import signal
    signal.signal(signal.SIGINT, signal.SIG_DFL)
    from PyQt4.QtGui import QApplication
    import sys
    from applet import Applet

    qapp = QApplication(sys.argv)

    # Create some simple applets to load
    defaultApplet = Applet()
    trackingApplet = Applet("Tracking")

    # Normally applets would provide their own menu items,
    # but for this test we'll add them here (i.e. from the outside).
    defaultApplet._menuWidget = QMenuBar()
    defaultApplet._menuWidget.setNativeMenuBar(
        False)  # Native menus are broken on Ubuntu at the moment
    defaultMenu = QMenu("Default Applet", defaultApplet._menuWidget)
    defaultMenu.addAction("Default Action 1")
    defaultMenu.addAction("Default Action 2")
    defaultApplet._menuWidget.addMenu(defaultMenu)

    trackingApplet._menuWidget = QMenuBar()
    trackingApplet._menuWidget.setNativeMenuBar(
        False)  # Native menus are broken on Ubuntu at the moment
    def __init__( self, graph, projectFileGroupName ):
        Applet.__init__( self, "Generic Labeling" )

        self._topLevelOperator = OpLabeling(graph=graph)
        self._serializableItems = [ LabelingSerializer( self._topLevelOperator, projectFileGroupName ) ]
        self._gui = None