当前位置: 首页>>代码示例>>Python>>正文


Python Operator.__init__方法代码示例

本文整理汇总了Python中lazyflow.graph.Operator.__init__方法的典型用法代码示例。如果您正苦于以下问题:Python Operator.__init__方法的具体用法?Python Operator.__init__怎么用?Python Operator.__init__使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在lazyflow.graph.Operator的用法示例。


在下文中一共展示了Operator.__init__方法的14个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: __init__

# 需要导入模块: from lazyflow.graph import Operator [as 别名]
# 或者: from lazyflow.graph.Operator import __init__ [as 别名]
 def __init__(self,parent):   
     Operator.__init__(self,parent)
     self.source = OpArrayPiper(self)
     self.fixerSource = OpArrayPiper(self)
     
     self.source.inputs["Input"].connect(self.inputs["Input"])
     self.fixerSource.inputs["Input"].connect(self.inputs["fixAtCurrent"])
开发者ID:ClausRipp,项目名称:lazyflow,代码行数:9,代码来源:operators.py

示例2: __init__

# 需要导入模块: from lazyflow.graph import Operator [as 别名]
# 或者: from lazyflow.graph.Operator import __init__ [as 别名]
    def __init__(self, graph):
        Operator.__init__(self, graph=graph)
        self._was_executed = False
        self._inner_op = OpInner(self)

        self._inner_op.Input.connect(self.Input)
        self.Output.connect(self._inner_op.Output)
开发者ID:bheuer,项目名称:lazyflow,代码行数:9,代码来源:testOutputOutputConnection.py

示例3: __init__

# 需要导入模块: from lazyflow.graph import Operator [as 别名]
# 或者: from lazyflow.graph.Operator import __init__ [as 别名]
 def __init__(self, graph, register = True):
     Operator.__init__(self, graph, register)
     
     self.graph = graph
     self.loader = OpStackLoader(self.graph)
     self.op5ifyer = Op5ifyer(self.graph)
     self.outpiper = OpArrayPiper(self.graph)
     self.inverter = OpGrayscaleInverter(self.graph)
     self.converter = OpRgbToGrayscale(self.graph)
开发者ID:fblumenthal,项目名称:ilastik,代码行数:11,代码来源:stackloader.py

示例4: __init__

# 需要导入模块: from lazyflow.graph import Operator [as 别名]
# 或者: from lazyflow.graph.Operator import __init__ [as 别名]
 def __init__(self,parent):
     Operator.__init__(self, parent, register=True)
     
     self.multi = Op50ToMulti(graph=self.graph)
     self.stacker = OpMultiArrayStacker(graph=self.graph)
     self.smoother = OpGaussianSmoothing(graph=self.graph)
     self.destSigma = 1.0
     self.windowSize = 4
     self.operatorList = [OpGaussianSmoothing,OpLaplacianOfGaussian,\
                     OpStructureTensorEigenvalues,OpHessianOfGaussianEigenvalues,\
                     OpGaussianGradientMagnitude,OpDifferenceOfGaussians]
     self.opInstances = []
开发者ID:LimpingTwerp,项目名称:lazyflow,代码行数:14,代码来源:imgFilterOperators.py

示例5: __init__

# 需要导入模块: from lazyflow.graph import Operator [as 别名]
# 或者: from lazyflow.graph.Operator import __init__ [as 别名]
        def __init__(self, voluminaData, graph=None, parent=None):
            """
            voluminaData - An array in txyzc order.
            """
            Operator.__init__(self, graph=graph, parent=parent)
            # We store the data in a custom order
            self._data = voluminaData.transpose([0, 3, 2, 1, 4])
            oslot = self.outputs["Data"]
            oslot.meta.shape = self._data.shape
            oslot.meta.dtype = self._data.dtype

            oslot.meta.axistags = vigra.defaultAxistags("tzyxc")  # Non-volumina ordering: datasource will re-order
            self.inputs["Changedata"].meta.axistags = oslot.meta.axistags
开发者ID:kemaleren,项目名称:volumina,代码行数:15,代码来源:_testing.py

示例6: __init__

# 需要导入模块: from lazyflow.graph import Operator [as 别名]
# 或者: from lazyflow.graph.Operator import __init__ [as 别名]
    def __init__(self, *args, **kwargs):
        Operator.__init__(self, *args, **kwargs)
        self.source = OpArrayPiper(parent=self)
        self.source.inputs["Input"].connect(self.inputs["Input"])

        self.stacker = OpMultiArrayStacker(parent=self)

        self.multi = Op50ToMulti(parent=self)

        self.stacker.inputs["Images"].connect(self.multi.outputs["Outputs"])

        # Give our feature IDs input a default value (connected out of the box, but can be changed)
        self.inputs["FeatureIds"].setValue( self.DefaultFeatureIds )
开发者ID:kemaleren,项目名称:lazyflow,代码行数:15,代码来源:vigraOperators.py

示例7: __init__

# 需要导入模块: from lazyflow.graph import Operator [as 别名]
# 或者: from lazyflow.graph.Operator import __init__ [as 别名]
 def __init__(self, *args, **kwargs):
     Operator.__init__(self, *args, **kwargs)
     self._propagate_dirty = False
开发者ID:kemaleren,项目名称:lazyflow,代码行数:5,代码来源:generic.py

示例8: __init__

# 需要导入模块: from lazyflow.graph import Operator [as 别名]
# 或者: from lazyflow.graph.Operator import __init__ [as 别名]
 def __init__(self, *args, **kwargs):
     Operator.__init__(self, *args, **kwargs)
     self.source = OpArrayPiper(parent=self)
     self.source.Input.connect(self.Input)
开发者ID:ilastik,项目名称:lazyflow,代码行数:6,代码来源:opPixelFeaturesPresmoothed.py

示例9: __init__

# 需要导入模块: from lazyflow.graph import Operator [as 别名]
# 或者: from lazyflow.graph.Operator import __init__ [as 别名]
 def __init__(self, parent = None):
     Operator.__init__(self, parent)
     self._forest_count = 4
     # TODO: Make treecount configurable via an InputSlot
     self._tree_count = 25
开发者ID:bheuer,项目名称:lazyflow,代码行数:7,代码来源:classifierOperators.py

示例10: __init__

# 需要导入模块: from lazyflow.graph import Operator [as 别名]
# 或者: from lazyflow.graph.Operator import __init__ [as 别名]
 def __init__(self, parent=None, graph=None):
     Operator.__init__(self, parent, graph)
     self.internalOp = OpB(self)
     self.internalOp.Input.connect(self.Input)
     self.inputBackup = self.Input
开发者ID:ilastik,项目名称:lazyflow,代码行数:7,代码来源:testInputInputConnection.py

示例11: __init__

# 需要导入模块: from lazyflow.graph import Operator [as 别名]
# 或者: from lazyflow.graph.Operator import __init__ [as 别名]
 def __init__(self, parent=None, graph=None):
     Operator.__init__(self,parent,graph)
开发者ID:JensNRAD,项目名称:lazyflow,代码行数:4,代码来源:testSlotCallbacks.py

示例12: __init__

# 需要导入模块: from lazyflow.graph import Operator [as 别名]
# 或者: from lazyflow.graph.Operator import __init__ [as 别名]
 def __init__(self, g, fn):
     Operator.__init__(self,g)
     self._data = np.load(fn)
     oslot = self.outputs["Data5D"]
     oslot._shape = self._data.shape
     oslot._dtype = self._data.dtype
开发者ID:lcroitor,项目名称:volumeeditor,代码行数:8,代码来源:from_lazyflow.py

示例13: __init__

# 需要导入模块: from lazyflow.graph import Operator [as 别名]
# 或者: from lazyflow.graph.Operator import __init__ [as 别名]
 def __init__(self, g, data):
     Operator.__init__(self,g)
     self._data = data
     oslot = self.outputs["Data"]
     oslot._shape = self._data.shape
     oslot._dtype = self._data.dtype
开发者ID:lcroitor,项目名称:volumeeditor,代码行数:8,代码来源:_testing.py

示例14: __init__

# 需要导入模块: from lazyflow.graph import Operator [as 别名]
# 或者: from lazyflow.graph.Operator import __init__ [as 别名]
 def __init__(self, parent):      
     Operator.__init__(self, parent)
     self._lock = Lock()
     self._innerOps = []
开发者ID:unidesigner,项目名称:lazyflow,代码行数:6,代码来源:operators.py


注:本文中的lazyflow.graph.Operator.__init__方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。