本文整理汇总了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"])
示例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)
示例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)
示例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 = []
示例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
示例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 )
示例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
示例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)
示例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
示例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
示例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)
示例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
示例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
示例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 = []