__init__(self, impulse_response, **filter_params)
Function that yields the impulse response. r
and c
are 1-dimensional vectors that represent row and column positions, in other words coordinates are (r[0],c[0]),(r[0],c[1]) etc. :None:None:`**filter_params`
are passed through.
In other words, impulse_response
would be called like this:
>>> def impulse_response(r, c, **filter_params): ... pass >>> >>> r = [0,0,0,1,1,1,2,2,2] >>> c = [0,1,2,0,1,2,0,1,2] >>> filter_params = {'kw1': 1, 'kw2': 2, 'kw3': 3} >>> impulse_response(r, c, **filter_params)
Gaussian filter: Use a 1-D gaussian in each direction without normalization coefficients.
This example is valid syntax, but we were not able to check execution>>> def filt_func(r, c, sigma = 1):See :
... return np.exp(-np.hypot(r, c)/sigma)
... filter = LPIFilter2D(filt_func)
Hover to see nodes names; edges to Self not shown, Caped at 50 nodes.
Using a canvas is more power efficient and can get hundred of nodes ; but does not allow hyperlinks; , arrows or text (beyond on hover)
SVG is more flexible but power hungry; and does not scale well to 50 + nodes.
All aboves nodes referred to, (or are referred from) current nodes; Edges from Self to other have been omitted (or all nodes would be connected to the central node "self" which is not useful). Nodes are colored by the library they belong to, and scaled with the number of references pointing them