Package topo :: Package patterns :: Module rds :: Class RandomDotStereogram
[hide private]
[frames] | no frames]

Class RandomDotStereogram

source code

                                  object --+        
                                           |        
base.parameterizedobject.ParameterizedObject --+    
                                               |    
          base.patterngenerator.PatternGenerator --+
                                                   |
                                                  RandomDotStereogram

Random dot stereogram using rectangular black and white patches.

Based on Matlab code originally from Jenny Read, implemented in Topographica by Tikesh Ramtohul (2006).



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]
  x = Number(precedence=-1)
X-coordinate location of pattern center.
  y = Number(precedence=-1)
Y-coordinate location of pattern center.
  size = Number(precedence=-1)
Determines the overall size of the pattern.
  orientation = <topo.base.parameterclasses.Number object at 0xa...
Polar angle of pattern, i.e., the orientation in the Cartesian coordinate system, with zero at 3 o'clock and increasing counterclockwise.
  scale = Number(default= 0.5)
Multiplicative strength of input pattern, defaulting to 1.0
  offset = Number(default= 0.5)
Additive offset to input pattern, defaulting to 0.0
  xdisparity = <topo.base.parameterclasses.Number object at 0xa9...
Disparity in the horizontal direction.
  ydisparity = <topo.base.parameterclasses.Number object at 0xa9...
Disparity in the vertical direction.
  dotdensity = <topo.base.parameterclasses.Number object at 0xa9...
Number of dots per unit area; 0.5=50% coverage.
  dotsize = Number(default= 0.1, bounds= (0.0, None), softbounds...
Edge length of each square dot.
  random_seed = <topo.base.parameterclasses.Integer object at 0x...
Seed value for the random position of the dots.

Inherited from base.patterngenerator.PatternGenerator: bounds, mask, output_fn, position, xdensity, 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]

orientation

Polar angle of pattern, i.e., the orientation in the Cartesian coordinate system, with zero at 3 o'clock and increasing counterclockwise.
Value:
Number(precedence=-1)

xdisparity

Disparity in the horizontal direction.
Value:
Number(default= 0.0, bounds= (-1.0, 1.0), softbounds= (-0.5, 0.5), precedence= 0.5\
0, doc= "Disparity in the horizontal direction.")

ydisparity

Disparity in the vertical direction.
Value:
Number(default= 0.0, bounds= (-1.0, 1.0), softbounds= (-0.5, 0.5), precedence= 0.5\
1, doc= "Disparity in the vertical direction.")

dotdensity

Number of dots per unit area; 0.5=50% coverage.
Value:
Number(default= 0.5, bounds= (0.0, None), softbounds= (0.1, 0.9), precedence= 0.52\
, doc= "Number of dots per unit area; 0.5=50% coverage.")

dotsize

Edge length of each square dot.
Value:
Number(default= 0.1, bounds= (0.0, None), softbounds= (0.05, 0.15), precedence= 0.\
53, doc= "Edge length of each square dot.")

random_seed

Seed value for the random position of the dots.
Value:
Integer(default= 500, bounds= (0, 1000), precedence= 0.54, doc= "Seed value for th\
e random position of the dots.")