1. A method for performing a signal-processing task on an input signal, the method comprising: estimating a blur kernel associated with said input signal, by utilizing recurrence of signal patches across multiple scales inside a reference signal which is a related version of said input signal; wherein the method is implemented by using a device comprising at least a hardware component.