Package topo :: Package outputfns :: Module basic :: Class PatternCombine
[hide private]
[frames] | no frames]

Class PatternCombine

source code

                                  object --+        
                                           |        
base.parameterizedobject.ParameterizedObject --+    
                                               |    
                  base.functionfamilies.OutputFn --+
                                                   |
                                                  PatternCombine

Combine the supplied pattern with one generated using a PatternGenerator.

Useful for operations like adding noise or masking out lesioned items or around the edges of non-rectangular shapes.



Nested Classes [hide private]

Inherited from base.parameterizedobject.ParameterizedObject: __metaclass__

Instance Methods [hide private]
 
__call__(self, x) source code

Inherited from base.functionfamilies.OutputFn: __add__

Inherited from base.parameterizedobject.ParameterizedObject: __getstate__, __init__, __repr__, __setstate__, __str__, as_uninitialized, debug, defaults, force_new_dynamic_value, get_param_values, get_value_generator, inspect_value, message, print_param_values, script_repr, verbose, warning

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __setattr__

Class Methods [hide private]

Inherited from base.parameterizedobject.ParameterizedObject: params, print_param_defaults

Class Variables [hide private]
  generator = <topo.base.parameterclasses.ClassSelectorParameter...
Pattern to combine with the supplied matrix.
  operator = <topo.base.parameterizedobject.Parameter object at ...
Binary Numeric function used to combine the two patterns.

Inherited from base.functionfamilies.OutputFn: norm_value

Inherited from base.parameterizedobject.ParameterizedObject: name, print_level

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__call__(self, x)
(Call operator)

source code 
Overrides: base.functionfamilies.OutputFn.__call__

Class Variable Details [hide private]

generator

Pattern to combine with the supplied matrix.
Value:
ClassSelectorParameter(PatternGenerator, default= Constant(), doc= """
        Pattern to combine with the supplied matrix.""")

operator

Binary Numeric function used to combine the two patterns.

Any binary Numeric array "ufunc" returning the same type of array as the operands and supporting the reduce operator is allowed here. See topo.patterns.basic.Composite.operator for more details.

Value:
Parameter(numpy.multiply, precedence= 0.98, doc= """
        Binary Numeric function used to combine the two patterns.

        Any binary Numeric array "ufunc" returning the same type of
        array as the operands and supporting the reduce operator is
        allowed here.  See topo.patterns.basic.Composite.operator for
        more details.              
        """)