skimage 0.17.2

NotesParametersReturnsBackRef
ir2tf(imp_resp, shape, dim=None, is_real=True)

This function makes the necessary correct zero-padding, zero convention, correct fft2, etc... to compute the transfer function of IR. To use with unitary Fourier transform for the signal (ufftn or equivalent).

Notes

The input array can be composed of multiple-dimensional IR with an arbitrary number of IR. The individual IR must be accessed through the first axes. The last dim axes contain the space definition.

Parameters

imp_resp : ndarray

The impulse responses.

shape : tuple of int

A tuple of integer corresponding to the target shape of the transfer function.

dim : int, optional

The last axis along which to compute the transform. All axes by default.

is_real : boolean, optional

If True (default), imp_resp is supposed real and the Hermitian property is used with rfftn Fourier transform.

Returns

y : complex ndarray

The transfer function of shape shape .

Compute the transfer function of an impulse response (IR).

See Also

ufftn
uifftn
uirfftn
urfftn

Examples

This example is valid syntax, but we were not able to check execution
>>> np.all(np.array([[4, 0], [0, 0]]) == ir2tf(np.ones((2, 2)), (2, 2)))
True
This example is valid syntax, but we were not able to check execution
>>> ir2tf(np.ones((2, 2)), (512, 512)).shape == (512, 257)
True
This example is valid syntax, but we were not able to check execution
>>> ir2tf(np.ones((2, 2)), (512, 512), is_real=False).shape == (512, 512)
True
See :

Back References

The following pages refer to to this document either explicitly or contain code examples using this.

skimage.restoration.uft.ir2tf

Local connectivity graph

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


File: /skimage/restoration/uft.py#343
type: <class 'function'>
Commit: