Package topo :: Package pattern :: Module image :: Class FastPatternSampler
[hide private]
[frames] | no frames]

Class FastPatternSampler

source code

                       object --+    
                                |    
param.parameterized.Parameterized --+
                                    |
                                   FastPatternSampler

A fast-n-dirty pattern sampler using Python Imaging Library routines. Currently this sampler doesn't support user-specified scaling or cropping but rather simply scales and crops the image to fit the given matrix size without distorting the aspect ratio of the original picture.
Nested Classes [hide private]

Inherited from param.parameterized.Parameterized: __metaclass__

Instance Methods [hide private]
 
__init__(self, pattern=None, image=None, whole_pattern_output_fn=IdentityOF(name='IdentityOF00072', norm_value=None, print_leve..., background_value_fn=None)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
__call__(self, x, y, sheet_xdensity, sheet_ydensity, scaling, width=1.0, height=1.0) source code

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

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

Class Methods [hide private]

Inherited from param.parameterized.Parameterized: params, print_param_defaults

Class Variables [hide private]
  sampling_method = param.Integer(default= PIL.NEAREST, doc= ...
Python Imaging Library sampling method for resampling an image.

Inherited from param.parameterized.Parameterized: name, print_level

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, pattern=None, image=None, whole_pattern_output_fn=IdentityOF(name='IdentityOF00072', norm_value=None, print_leve..., background_value_fn=None)
(Constructor)

source code 
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
Overrides: object.__init__
(inherited documentation)

Class Variable Details [hide private]

sampling_method

Python Imaging Library sampling method for resampling an image. Defaults to Image.NEAREST.
Value:
param.Integer(default= PIL.NEAREST, doc= """
       Python Imaging Library sampling method for resampling an image.
       Defaults to Image.NEAREST.""")