Package topo :: Package command :: Module analysis :: Class measure_corner_angle_pref
[hide private]
[frames] | no frames]

Class measure_corner_angle_pref

source code


Generate the preference map for angle shapes, by collating the response to patterns.
Nested Classes [hide private]

Inherited from param.parameterized.Parameterized: __metaclass__

Instance Methods [hide private]
 
_feature_list(self, p)
Return the list of features to vary, generate hue code static image
source code
 
_make_key_image(self, p)
Generate the image with keys to hues used to code angles the image is saved on-the-fly, in order to fit the current choice of angle range
source code

Inherited from analysis.featureresponses.MeasureResponseCommand: __call__

Inherited from param.parameterized.ParameterizedFunction: __reduce__, __str__, script_repr

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

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

Class Methods [hide private]

Inherited from param.parameterized.ParameterizedFunction: instance

Inherited from param.parameterized.Parameterized: params, print_param_defaults

Static Methods [hide private]

Inherited from param.parameterized.ParameterizedFunction: __new__

Class Variables [hide private]
  scale = param.Number(default= 1.0)
Multiplicative strength of input pattern.
  size = param.Number(default= 0.2)
The size of the pattern to present.
  positions = param.Integer(default= 6)
  x_range = param.NumericTuple((-1.0, 1.0))
The range of X values to test.
  y_range = param.NumericTuple((-1.0, 1.0))
The range of Y values to test.
  num_or = param.Integer(default= 4, bounds= (1, None), softboun...
Number of orientations to test.
  angle_0 = param.Number(default= 0.25* pi, bounds= (0.0, pi), s...
First angle to test.
  angle_1 = param.Number(default= 0.75* pi, bounds= (0.0, pi), s...
Last angle to test.
  num_angle = param.Integer(default= 4, bounds= (1, None), softb...
Number of angles to test.
  key_img_fname = param.Filename(default= 'command/key_angles.pn...
Name of the file with the image used to code angles with hues.
  pattern_presenter = PatternPresenter(apply_output_fns=False, c...
Function object for presenting PatternGenerator-created patterns.
  static_parameters = param.List(default= ["size", "scale", "off...
List of names of parameters of this class to pass to the pattern_presenter as static parameters, i.e.
  name = <param.parameterized.String object at 0xb3159ec>
String identifier for this object.

Inherited from analysis.featureresponses.PositionMeasurementCommand: divisions

Inherited from analysis.featureresponses.MeasureResponseCommand: apply_output_fns, display, duration, generator_sheets, offset, sheet_views_prefix, subplot, weighted_average

Inherited from param.parameterized.Parameterized: print_level

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

_feature_list(self, p)

source code 
Return the list of features to vary, generate hue code static image
Overrides: analysis.featureresponses.MeasureResponseCommand._feature_list

Class Variable Details [hide private]

num_or

Number of orientations to test.
Value:
param.Integer(default= 4, bounds= (1, None), softbounds= (1, 24), doc= "Number of \
orientations to test.")

angle_0

First angle to test.
Value:
param.Number(default= 0.25* pi, bounds= (0.0, pi), softbounds= (0.0, 0.5* pi), doc\
= "First angle to test.")

angle_1

Last angle to test.
Value:
param.Number(default= 0.75* pi, bounds= (0.0, pi), softbounds= (0.5* pi, pi), doc=\
 "Last angle to test.")

num_angle

Number of angles to test.
Value:
param.Integer(default= 4, bounds= (1, None), softbounds= (1, 12), doc= "Number of \
angles to test.")

key_img_fname

Name of the file with the image used to code angles with hues.
Value:
param.Filename(default= 'command/key_angles.png', doc= "Name of the file with the \
image used to code angles with hues.")

pattern_presenter

Function object for presenting PatternGenerator-created patterns.

This class helps coordinate a set of patterns to be presented to a set of GeneratorSheets. It provides a standardized way of generating a set of linked patterns for testing or analysis, such as when measuring preference maps or presenting test patterns. Subclasses can provide additional mechanisms for doing this in different ways.

Value:
PatternPresenter(apply_output_fns=False, contrast_parameter='michelson_contrast', \
divisions=None, duration=1.0, generator_sheets=[], name='PatternPresenter00097', p\
rint_level=100)

static_parameters

List of names of parameters of this class to pass to the pattern_presenter as static parameters, i.e. values that will be fixed to a single value during measurement.
Value:
param.List(default= ["size", "scale", "offset"])