Package topo :: Package pattern :: Module basic :: Class OrientationContrast
[hide private]
[frames] | no frames]

Class OrientationContrast

source code


Circular pattern for testing responses to differences in contrast.

The pattern contains a sine grating ring surrounding a sine grating disk, each with parameters (orientation, size, scale and offset) that can be changed independently.

Nested Classes [hide private]

Inherited from param.parameterized.Parameterized: __metaclass__

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

Inherited from SineGrating: function

Inherited from param.parameterized.Parameterized: __getstate__, __init__, __repr__, __setstate__, __str__, debug, defaults, force_new_dynamic_value, get_param_values, get_value_generator, inspect_value, message, print_param_values, script_repr, set_default, set_dynamic_time_fn, set_param, state_pop, state_push, verbose, warning

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

Class Methods [hide private]

Inherited from param.parameterized.Parameterized: params, print_param_defaults

Class Variables [hide private]
  orientationcenter = param.Number(default= 0.0, bounds= (0.0, 2...
Orientation of the center grating.
  orientationsurround = param.Number(default= 0.0, bounds= (0.0,...
Orientation of the surround grating.
  sizecenter = param.Number(default= 0.5, bounds= (0.0, None), s...
Size of the center grating.
  sizesurround = param.Number(default= 1.0, bounds= (0.0, None),...
Size of the surround grating.
  scalecenter = param.Number(default= 1.0, bounds= (0.0, None), ...
Scale of the center grating.
  scalesurround = param.Number(default= 1.0, bounds= (0.0, None)...
Scale of the surround grating.
  offsetcenter = param.Number(default= 0.0, bounds= (0.0, None),...
Offset of the center grating.
  offsetsurround = param.Number(default= 0.0, bounds= (0.0, None...
Offset of the surround grating.
  smoothing = param.Number(default= 0.0, bounds= (0.0, None), so...
Width of the Gaussian fall-off inside and outside the ring.
  thickness = param.Number(default= 0.015, bounds= (0.0, None), ...
Thickness (line width) of the ring.
  aspect_ratio = param.Number(default= 1.0, bounds= (0.0, None),...
Ratio of width to height; size*aspect_ratio gives the overall width.
  size = param.Number(default= 0.5)
Determines the overall size of the pattern.
  name = <param.parameterized.String object at 0xb1ffd6c>
String identifier for this object.

Inherited from SineGrating: frequency, phase

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

Inherited from param.parameterized.Parameterized: print_level

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

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

source code 

Call the subclass's '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]

orientationcenter

Orientation of the center grating.
Value:
param.Number(default= 0.0, bounds= (0.0, 2* pi), doc= "Orientation of the center g\
rating.")

orientationsurround

Orientation of the surround grating.
Value:
param.Number(default= 0.0, bounds= (0.0, 2* pi), doc= "Orientation of the surround\
 grating.")

sizecenter

Size of the center grating.
Value:
param.Number(default= 0.5, bounds= (0.0, None), softbounds= (0.0, 10.0), doc= "Siz\
e of the center grating.")

sizesurround

Size of the surround grating.
Value:
param.Number(default= 1.0, bounds= (0.0, None), softbounds= (0.0, 10.0), doc= "Siz\
e of the surround grating.")

scalecenter

Scale of the center grating.
Value:
param.Number(default= 1.0, bounds= (0.0, None), softbounds= (0.0, 10.0), doc= "Sca\
le of the center grating.")

scalesurround

Scale of the surround grating.
Value:
param.Number(default= 1.0, bounds= (0.0, None), softbounds= (0.0, 10.0), doc= "Sca\
le of the surround grating.")

offsetcenter

Offset of the center grating.
Value:
param.Number(default= 0.0, bounds= (0.0, None), softbounds= (0.0, 10.0), doc= "Off\
set of the center grating.")

offsetsurround

Offset of the surround grating.
Value:
param.Number(default= 0.0, bounds= (0.0, None), softbounds= (0.0, 10.0), doc= "Off\
set of the surround grating.")

smoothing

Width of the Gaussian fall-off inside and outside the ring.
Value:
param.Number(default= 0.0, bounds= (0.0, None), softbounds= (0.0, 0.5), doc= "Widt\
h of the Gaussian fall-off inside and outside the ring.")

thickness

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

aspect_ratio

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