Package topo :: Package patterns :: Module teststimuli :: Class SineGratingRing
[hide private]
[frames] | no frames]

Class SineGratingRing

source code

                                  object --+        
                                           |        
base.parameterizedobject.ParameterizedObject --+    
                                               |    
          base.patterngenerator.PatternGenerator --+
                                                   |
                                                  SineGratingRing
Known Subclasses:
OrientationContrastPattern

A sine grating masked by a ring so that only the ring is visible.

Nested Classes [hide private]

Inherited from base.parameterizedobject.ParameterizedObject: __metaclass__

Instance Methods [hide private]
 
__call__(self, **params_to_override)
Call the subclasses 'function' method on a rotated and scaled coordinate system.
source code

Inherited from base.patterngenerator.PatternGenerator: function

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]
  aspect_ratio = <topo.base.parameterclasses.Number object at 0x...
Ratio of width to height; size*aspect_ratio gives the overall width.
  thickness = <topo.base.parameterclasses.Number object at 0xa8b...
Thickness (line width) of the ring.
  size = Number(default= 0.5, doc= "Top to bottom height of the ...
Top to bottom height of the disk
  smoothing = <topo.base.parameterclasses.Number object at 0xa8b...
Width of the Gaussian fall-off
  phase = Number(default= 1.0, doc= "phase of the sine grating")
phase of the sine grating
  frequency = <topo.base.parameterclasses.Number object at 0xa8b...
frequency of the sine grating

Inherited from base.patterngenerator.PatternGenerator: bounds, mask, offset, orientation, output_fn, position, scale, x, xdensity, y, ydensity

Inherited from base.parameterizedobject.ParameterizedObject: name, print_level

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__call__(self, **params_to_override)
(Call operator)

source code 

Call the subclasses 'function' method on a rotated and scaled coordinate system.

Creates and fills an array with the requested pattern. If called without any params, uses the values for the Parameters as currently set on the object. Otherwise, any params specified override those currently set on the object.

Overrides: base.patterngenerator.PatternGenerator.__call__
(inherited documentation)

Class Variable Details [hide private]

aspect_ratio

Ratio of width to height; size*aspect_ratio gives the overall width.
Value:
Number(default= 1.0, bounds= (0.0, None), softbounds= (0.0, 2.0), precedence= 0.31\
, doc= "Ratio of width to height; size*aspect_ratio gives the overall width.")

thickness

Thickness (line width) of the ring.
Value:
Number(default= 0.015, bounds= (0.0, None), softbounds= (0.0, 0.5), precedence= 0.\
60, doc= "Thickness (line width) of the ring.")

size

Top to bottom height of the disk
Value:
Number(default= 0.5, doc= "Top to bottom height of the disk")

smoothing

Width of the Gaussian fall-off
Value:
Number(default= 0.0, bounds= (0.0, None), softbounds= (0.0, 0.5), precedence= 0.61\
, doc= "Width of the Gaussian fall-off")

frequency

frequency of the sine grating
Value:
Number(default= 2.4, doc= "frequency of the sine grating")