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).
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.
The impulse responses.
A tuple of integer corresponding to the target shape of the transfer function.
The last axis along which to compute the transform. All axes by default.
If True (default), imp_resp is supposed real and the Hermitian property is used with rfftn Fourier transform.
The transfer function of shape shape
.
Compute the transfer function of an impulse response (IR).
>>> np.all(np.array([[4, 0], [0, 0]]) == ir2tf(np.ones((2, 2)), (2, 2))) TrueThis example is valid syntax, but we were not able to check execution
>>> ir2tf(np.ones((2, 2)), (512, 512)).shape == (512, 257) TrueThis 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) TrueSee :
The following pages refer to to this document either explicitly or contain code examples using this.
skimage.restoration.uft.ir2tf
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