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

Class FastImageSampler

source code


A fast-n-dirty image sampler using Python Imaging Library routines. Currently this sampler doesn't support user-specified size_normalization 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]
 
_set_image(self, image) source code
 
__call__(self, image, x, y, sheet_xdensity, sheet_ydensity, width=1.0, height=1.0) source code

Inherited from ImageSampler (private): _del_image, _get_image

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]
  sampling_method = param.Integer(default= Image.NEAREST, doc= ...
Python Imaging Library sampling method for resampling an image.
  name = <param.parameterized.String object at 0xb589aac>
String identifier for this object.

Inherited from ImageSampler: image

Inherited from param.parameterized.Parameterized: print_level

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

_set_image(self, image)

source code 
Overrides: ImageSampler._set_image

__call__(self, image, x, y, sheet_xdensity, sheet_ydensity, width=1.0, height=1.0)
(Call operator)

source code 
Overrides: ImageSampler.__call__

Class Variable Details [hide private]

sampling_method

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