This paper propose an efficient way to combine different spline types for computing first and second order derivatives (please see my video presentation). The following formula is derived, which shows that a spline surface can be rewritten as an outer product and a convolutionid

Note that this equation is differentiable and this fact is used to create filter kernels for computing smooth derivatives.

  • Simple filter design for first and second order derivatives by a double filtering approach.  A. Hast. Pattern Recognition Letters, Vol. 42, no.1 June, pp. 65-71. 2014.
    @article{DBLP:journals/prl/Hast14, 
    author = {Anders Hast},
    title = {Simple filter design for first and second order derivatives by a double filtering approach}, 
    journal = {Pattern Recognition Letters}, 
    volume = {42}, 
    pages = {65--71}, 
    year = {2014}, 
    url = {https://doi.org/10.1016/j.patrec.2014.01.014}, 
    doi = {10.1016/j.patrec.2014.01.014}}

The first derivatives are
eq2

And the second derivatives are

eq3

The paper also discuss the use of Trigonometric splines and they appear to have some advantages over cubic splines

eq1

The code is available on the code page!

One thought on “Image Derivatives

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s