1 Introduction

Fractional derivative, also called non-integer derivative, is not a new concept: it dates back to Cauchy, Riemann, Liouville and Letnikov in the 19th century [1]. In comparison with integer-order differential, the fractional differential of direct current or low-frequency signal is often nonzero. In the last two decades, fractional differentiation has played a very important role in various physical sciences fields, such as mechanics, electricity, chemistry, biology, economics, time and frequency domains system identification, notably control theory, mechatronics and robotics [24]. Recently, fractal theory is already used in fractal image processing [512]. In general, the corresponding coefficients of traditional fractional differentiation (TFD) operator along the eight directions are 1, \(-v\), \(\frac{-v(-v+1)}{2}\), \(\ldots \), \(\frac{\Gamma (-v+1)}{(n-1)!(\Gamma (-v+n))}\) respectively in image processing [5, 13, 14]. The coefficients along the eight directions in the image plane are the same, which is not conducive to reflect the different change rates of the image along different directions and is not benefit to enlarge the differences among textures. Based on this, we give the concept of fractional directional derivative (FDD) and its coefficients along the eight directions are not the same, which can reflect different fractional change rates along different directions and is benefit to enlarge the differences among the image textures.

2 Theory and numerical calculation of FDD

Assume that \(z = f(x,y)\) has definition in some neighborhood D. Find the line which passes through \(M_0 (x_0 ,y_0 )\) and parallels to l as follows:

$$\begin{aligned} \frac{x - x_0 }{\cos \alpha } = \frac{y - y_0 }{\sin \alpha } = t, \; l = (\cos \alpha , \sin \alpha ), \end{aligned}$$
(1)

where \(\alpha \) is the directional angle. Let \(M(x_0 + \Delta x,y_0 + \Delta y)\) satisfy (1) and \(h = sgn(t) \cdot \overline{M_0 M} .\) If the direction of vector \(M_0 M\) is the same as l, then \(t > 0,h > 0,\) otherwise, \(t < 0,h < 0\), that is to say , h changes along the positive or negative direction of l. If the limit

$$\begin{aligned} \mathop {\lim }\limits _{h \rightarrow 0} \frac{f(M) - f(M_0 )}{h} \end{aligned}$$
(2)

exists, then (2) is called the directional derivative of \(f(x,y)\) at \(M_0 \) along the direction l, write \(\frac{\partial f(M_0 )}{\partial l}\), which denotes the slope of tangent line at \(M_0 \) for the plane curve

$$\begin{aligned} \left\{ {\begin{array}{l} z = f(x,y) \\ \frac{x - x_0 }{\cos \alpha } = \frac{y - y_0 }{\sin \alpha } \\ \end{array}} \right. \end{aligned}$$

and its geometric meaning is the same as general derivative.

It is well-known, the sufficient condition which (2) exists is that \(f(x,y)\) has continuous partial derivatives of first order in some neighborhood D at the point \(M_0 \) and

$$\begin{aligned} \frac{\partial f(M_0 )}{\partial l} = \frac{\partial f(M_0 )}{\partial x}\cos \alpha + \frac{\partial f(M_0 )}{\partial y}\sin \alpha . \end{aligned}$$
(3)

Clearly,\(\frac{\partial f}{\partial l}\) is the function with respect to \(x,y\) in D:

$$\begin{aligned} \frac{\partial f(x,y)}{\partial l} = \frac{\partial f(x,y)}{\partial x}\cos \alpha + \frac{\partial f(x,y)}{\partial y}\sin \alpha . \end{aligned}$$
(4)

If \(f(x,y)\) exists continuous partial derivatives of second order in some neighborhood D, making the direction l fixed and by (4), we obtain:

$$\begin{aligned} \frac{{\partial ^{2} f}}{{\partial l^{2} }} = \frac{{\partial ^{2} f}}{{\partial x^{2} }}\cos ^{2} \alpha + 2\frac{{\partial ^{2} f}}{{\partial x\partial y}}\sin \alpha \cos \alpha + \frac{{\partial ^{2} f}}{{\partial y^{2} }}\sin ^{2} \alpha\,\triangleq\,\left( {\cos \alpha \frac{\partial }{{\partial x}} + \sin \alpha \frac{\partial }{{\partial y}}} \right) ^{2} f(x,y), \end{aligned}$$
(5)

thus (5) is called the second order directional derivative of \(f(x,y)\) at \(M_0 \) along the direction l.

Similarly, if \(f(x,y)\) exists \(n + 1\) order continuous partial derivatives in D, we can define the \(k\)-order directional derivative of \(f(x,y)\) at \(M_0 \) along the direction l as follows.

$$\begin{aligned} \frac{\partial ^kf}{\partial l^k} = \left( {\cos \alpha \frac{\partial }{\partial x} + \sin \alpha \frac{\partial }{\partial y}} \right) ^kf(x,y), \; k = 1,2, \ldots ,n,n + 1. \end{aligned}$$
(6)

Thus, we can define the FDD of \(f(x,y)\) at \(M_0 \) along the direction l as follows:

$$\begin{aligned} \frac{\partial ^vf}{\partial l^v} = \left( {\cos \alpha \frac{\partial }{\partial x} + \sin \alpha \frac{\partial }{\partial y}} \right) ^vf(x,y), \end{aligned}$$
(7)

where v is any real number. From (7), in [15], the authors derived the directional derivative expression of Taylor formula for two-variable function and proposed fractional directional differentiation (also called FDD). Further, the authors discussed the construction of fractional directional differentiation mask in the four quadrants, respectively, for digital image. The differential coefficients of every direction are not the same along the eight directions in the four quadrants. While, in this paper, note that we will develop FDD of \(f(x,y)\) at \(M_0 \) along the direction l instead of fractional directional differentiation (also called FDD) in [15]. Thus, we will obtain a new fractional operator whose coefficients are different from fractional directional differentiation operator in [15]. By (7), we have

$$\begin{aligned} \frac{\partial ^vf}{\partial l^v}&= \sum \limits _{k = 0}^\infty {( - 1)^k\left( {\begin{array}{l} v \\ k \\ \end{array}} \right) } \frac{\partial ^{v - k}f}{\partial x^{v - k}}\frac{\partial ^kf}{\partial y^k}\cos ^{v - k}\alpha \sin ^k\alpha \nonumber \\&= \sum \limits _{k = 0}^\infty {( - 1)^k\left( {\frac{v}{1} \cdot \frac{v - 1}{2} \cdot \cdot \cdot \frac{v - k + 1}{k}} \right) } \frac{\partial ^{v - k}f}{\partial x^{v - k}}\frac{\partial ^kf}{\partial y^k}\cos ^{v - k}\alpha \sin ^k\alpha \nonumber \\&= \frac{\partial ^vf}{\partial x^v}\cos ^v\alpha - v\cdot \frac{\partial ^{v - 1}f}{\partial x^{v - 1}}\frac{\partial f}{\partial y}\cos ^{v - 1}\alpha \sin \alpha \nonumber \\& \quad+ \frac{v(v - 1)}{2}\frac{\partial ^{v - 2}f}{\partial x^{v - 2}}\frac{\partial ^2f}{\partial y^2}\cos ^{v - 2}\alpha \sin ^2\alpha + \cdots \nonumber \\ \end{aligned}$$
(8)

In the same way,

$$\begin{aligned} \frac{\partial ^vf}{\partial l^v}&= \left( {\sin \alpha \frac{\partial }{\partial y} + \cos \alpha \frac{\partial }{\partial x}} \right) ^vf(x,y) \nonumber \\&= \sum \limits _{k = 0}^\infty {( - 1)^k\left( {\begin{array}{l} v \\ k \\ \end{array}} \right) } \frac{\partial ^{v - k}f}{\partial y^{v - k}}\frac{\partial ^kf}{\partial x^k}\sin ^{v - k}\alpha \cos ^k\alpha \nonumber \\&= \sum \limits _{k = 0}^\infty {( - 1)^k\left( {\frac{v}{1} \cdot \frac{v - 1}{2} \cdot \cdot \cdot \frac{v - k + 1}{k}} \right) } \frac{\partial ^{v - k}f}{\partial y^{v - k}}\frac{\partial ^kf}{\partial x^k}\sin ^{v - k}\alpha \cos ^k\alpha \nonumber \\&= \frac{\partial ^vf}{\partial y^v}\sin ^v\alpha - v\frac{\partial ^{v - 1}f}{\partial y^{v - 1}}\frac{\partial f}{\partial x}\sin ^{v - 1}\alpha \cos \alpha \nonumber \\& \quad + \frac{v(v - 1)}{2}\frac{\partial ^{v - 2}f}{\partial y^{v - 2}}\frac{\partial ^2f}{\partial x^2}\sin ^{v - 2}\alpha \cos ^2\alpha + \cdots . \end{aligned}$$
(9)

Taking the average of (8) and (9), we obtain

$$\begin{aligned} \frac{\partial ^vf}{\partial l^v}&= \frac{1}{2}\left( {\frac{\partial ^vf}{\partial x^v}\cos ^v\alpha + \frac{\partial ^vf}{\partial y^v}\sin ^v\alpha }\right) \nonumber \\&\quad- \frac{v}{2}\left( {\frac{\partial ^{v - 1}f}{\partial x^{v - 1}}\frac{\partial f}{\partial y}\cos ^{v - 1}\alpha \sin \alpha + \frac{\partial ^{v - 1}f}{\partial y^{v - 1}}\frac{\partial f}{\partial x}\sin ^{v - 1}\alpha \cos \alpha } \right) \nonumber \\&\quad+ \frac{v(v - 1)}{4}\left( {\frac{\partial ^{v - 2}f}{\partial x^{v -2}}\frac{\partial ^2f}{\partial y^2}\cos ^{v - 2}\alpha \sin ^2\alpha + \frac{\partial ^{v - 2}f}{\partial y^{v - 2}}\frac{\partial ^2f}{\partial x^2}\sin ^{v - 2}\alpha \cos ^2\alpha } \right) + \cdots . \end{aligned}$$
(10)

In order to simplify the calculation, we only take the top three terms in (10), and the differences of fractional partial derivative are expressed as respectively in (10) [57]:

$$\begin{aligned} \frac{\partial ^vf(x,y)}{\partial x^v} \approx f(x,y) +(-v)f(x - 1,y) + \cdots + \frac{\Gamma (n - v + 1)}{(n - 1)!\Gamma ( - v)}f(x - n + 1,y), \end{aligned}$$
(11)
$$\begin{aligned} \frac{\partial ^vf(x,y)}{\partial y^v} \approx f(x,y)+(-v)f(x,y - 1) + \cdots + \frac{\Gamma (n - v + 1)}{(n - 1)!\Gamma ( - v)}f(x,y - n + 1). \end{aligned}$$
(12)

And the differences of \(\frac{\partial f}{\partial x}\), \(\frac{\partial f}{\partial y}\), \(\frac{\partial ^2f}{\partial x^2}\), \(\frac{\partial ^2f}{\partial y^2}\) in (10) can be expressed as

$$\begin{aligned}&\frac{\partial f(x,y)}{\partial x} \approx f(x,y) - f(x - 1,y)\end{aligned}$$
(13)
$$\begin{aligned}&\frac{\partial f(x,y)}{\partial y} \approx f(x,y) - f(x,y - 1),\end{aligned}$$
(14)
$$\begin{aligned}&\frac{\partial ^2f(x,y)}{\partial x^2} \approx f(x,y) - 2f(x - 1,y) + f(x - 2,y)\end{aligned}$$
(15)
$$\begin{aligned}&\frac{\partial ^2f(x,y)}{\partial y^2} \approx f(x,y) - 2f(x,y - 1) + f(x,y - 2), \end{aligned}$$
(16)

thus, by the top three terms of (11)–(12), and (13)–(16), (10) becomes

$$\begin{aligned} \frac{\partial ^vf}{\partial l^v}&\approx \frac{1}{2}\left( {\frac{\partial ^vf}{\partial x^v}\cos ^v\alpha + \frac{\partial ^vf}{\partial y^v}\sin ^v\alpha } \right) \nonumber \\&-\frac{v}{2}\left( {\frac{\partial ^{v - 1}f}{\partial x^{v - 1}}\frac{\partial f}{\partial y}\cos ^{v - 1}\alpha \sin \alpha + \frac{\partial ^{v - 1}f}{\partial y^{v - 1}}\frac{\partial f}{\partial x}\sin ^{v - 1}\alpha \cos \alpha } \right) \nonumber \\&+\frac{v(v - 1)}{4}\left( {\frac{\partial ^{v - 2}f}{\partial x^{v - 2}}\frac{\partial ^2f}{\partial y^2}\cos ^{v - 2}\alpha \sin ^2\alpha + \frac{\partial ^{v - 2}f}{\partial y^{v - 2}}\frac{\partial ^2f}{\partial x^2}\sin ^{v - 2}\alpha \cos ^2\alpha } \right) \nonumber \\&= \frac{1}{2}\left( {\left( {f(x,y)-vf(x - 1,y) + \frac{v(v -1)}{2}f(x - 2,y)} \right) \cos ^v\alpha }\right. \nonumber \\&\left. {+ \left( {f(x,y) - vf(x,y - 1)+\frac{v(v - 1)}{2}f(x,y - 2)} \right) \sin ^v\alpha } \right) \nonumber \\&-\frac{v}{2}\left( {\left( {f(x,y) - (v - 1)f(x - 1,y) + \frac{(v - 1)(v - 2)}{2}f(x - 2,y)} \right) }\right. \nonumber \\&\times \left. {\left( {f(x,y) - f(x,y - 1)} \right) \cos ^{v - 1}\alpha \sin \alpha } \right) \nonumber \\&-\frac{v}{2}\left( {\left( {f(x,y) - (v - 1)f(x,y - 1) + \frac{(v- 1)(v - 2)}{2}f(x,y - 2)} \right) }\right. \nonumber \\&\times \left. {\left( {f(x,y) - f(x - 1,y)} \right) \sin ^{v - 1}\alpha \cos \alpha } \right) \nonumber \\&+\frac{v(v - 1)}{4}\left( {\left( {f(x,y) - (v - 2)f(x - 1,y) + \frac{(v - 2)(v - 3)}{2}f(x - 2,y)} \right) }\right. \nonumber \\&\times \left. {\left( {f(x,y) - 2f(x,y - 1) + f(x,y - 2)} \right) \cos ^{v - 2}\alpha \sin ^2\alpha } \right) \nonumber \\&+\frac{v(v - 1)}{4}\left( {\left( {f(x,y) - (v - 2)f(x,y - 1) + \frac{(v - 2)(v - 3)}{2}f(x,y - 2)} \right) }\right. \nonumber \\&\times \left. {\left( {f(x,y) - 2f(x - 1,y) + f(x - 2,y)} \right) \sin ^{v - 2}\alpha \cos ^2\alpha } \right) . \end{aligned}$$
(17)

For the digital image, the shortest neighborhood distance between pixels is only one pixel. Therefore, the measurement for duration on x-coordinate or y-coordinate must take pixel as unit, and the minimum division must be \(\Delta x=1,\Delta y=1\). To obtain the new FDD filter along eight directions, take the directional angles \(\alpha = 0,\frac{\pi }{4},\frac{\pi }{2},\frac{3\pi }{4},\pi ,\frac{5\pi }{4},\frac{3\pi }{2},\frac{7\pi }{4}\), see Fig. 1.

Fig. 1
figure 1

The eight directions of FDD

  1. (a)

    When \(\alpha = 0\), \(l = (\cos \alpha , \sin \alpha ) = (1,0)\), that is, \(\cos \alpha = 1, \sin \alpha = 0\), we obtain

    $$\begin{aligned} \frac{\partial ^vf}{\partial l^v} = \frac{1}{2}\frac{\partial ^vf}{\partial x^v} \approx \frac{1}{2}\left( {f(x,y) - vf(x - 1,y) + \frac{v(v - 1)}{2}f(x - 2,y)} \right) . \end{aligned}$$
    (18)
  2. (b)

    When \(\alpha = \frac{\pi }{4}\),\(l = (\cos \alpha , \sin \alpha ) = (\frac{\sqrt{2} }{2}, \frac{\sqrt{2} }{2})\), that is, \( \cos \alpha = \frac{\sqrt{2} }{2}, \sin \alpha = \frac{\sqrt{2} }{2}\), we obtain

    $$\begin{aligned} \frac{\partial ^vf}{\partial l^v} & \approx \frac{1}{2}\left( {\frac{\sqrt{2} }{2}} \right) ^v\left( {\frac{\partial ^vf}{\partial x^v} + \frac{\partial ^vf}{\partial y^v}} \right)\\ &\quad - \frac{v}{2}\left( {\frac{\sqrt{2} }{2}} \right) ^v\left( {\frac{\partial ^{v - 1}f}{\partial x^{v - 1}}\frac{\partial f}{\partial y} + \frac{\partial ^{v - 1}f}{\partial y^{v - 1}}\frac{\partial f}{\partial x}} \right) \\ &\quad + \frac{v(v - 1)}{4}\left( {\frac{\sqrt{2} }{2}} \right) ^v\left( {\frac{\partial ^{v - 2}f}{\partial x^{v - 2}}\frac{\partial ^2f}{\partial y^2} + \frac{\partial ^{v - 2}f}{\partial y^{v - 2}}\frac{\partial ^2f}{\partial x^2}} \right). \end{aligned}$$
    (19)
  3. (c)

    When \(\alpha = \frac{\pi }{2}\), \(l = (\cos \alpha , \sin \alpha ) = (0, 1)\), that is, \(\cos \alpha = 0, \sin \alpha = 1\), we have

    $$\begin{aligned} \frac{\partial ^vf}{\partial l^v} = \frac{1}{2}\frac{\partial ^vf}{\partial y^v} \approx \frac{1}{2}\left( {f(x,y) - vf(x,y - 1) + \frac{v(v - 1)}{2}f(x,y - 2)} \right) . \end{aligned}$$
    (20)
  4. (d)

    When \(\alpha = \frac{3\pi }{4}\), \(l = (\cos \alpha , \sin \alpha ) = ( - \frac{\sqrt{2} }{2},\frac{\sqrt{2} }{2})\), that is, \( \cos \alpha = - \frac{\sqrt{2} }{2}, \sin \alpha = \frac{\sqrt{2} }{2}\), we have

    $$\begin{aligned} \frac{\partial ^vf}{\partial l^v} & \approx \frac{1}{2}\left( {\frac{\partial ^vf}{\partial x^v}\left( { - \frac{\sqrt{2} }{2}} \right) ^v + \frac{\partial ^vf}{\partial y^v}\left( {\frac{\sqrt{2} }{2}} \right) ^v} \right) \\ & \quad-\frac{v}{2}\left( {\frac{\partial ^{v - 1}f}{\partial x^{v -1}}\frac{\partial f}{\partial y}\left( { - \frac{\sqrt{2} }{2}} \right) ^{v -1} \frac{\sqrt{2}}{2} + \frac{\partial ^{v - 1}f}{\partial y^{v -1}}\frac{\partial f}{\partial x} \left( {\frac{\sqrt{2} }{2}} \right) ^{v -1}\left( { - \frac{\sqrt{2} }{2}} \right) } \right) \\ & \quad + \frac{v(v - 1)}{4}\left( {\frac{\partial ^{v - 2}f}{\partial x^{v - 2}}\frac{\partial ^2f}{\partial y^2}\left( { - \frac{\sqrt{2} }{2}} \right) ^{v - 2}\left( {\frac{\sqrt{2} }{2}} \right) ^2 + \frac{\partial ^{v - 2}f}{\partial y^{v - 2}}\frac{\partial ^2f}{\partial x^2}\left( {\frac{\sqrt{2} }{2}} \right) ^{v - 2}\left( { - \frac{\sqrt{2} }{2}} \right) ^2} \right) \\ & = \frac{1}{2}\left( {\frac{\sqrt{2} }{2}} \right) ^v\left( {( - 1)^v\frac{\partial ^vf}{\partial x^v} + \frac{\partial ^vf}{\partial y^v}} \right) - \frac{v}{2}\left( {\frac{\sqrt{2} }{2}} \right) ^v\left( {( - 1)^{v - 1}\frac{\partial ^{v - 1}f}{\partial x^{v - 1}}\frac{\partial f}{\partial y} - \frac{\partial ^{v - 1}f}{\partial y^{v - 1}}\frac{\partial f}{\partial x}} \right) \\ & \quad + \frac{v(v - 1)}{4}\left( {\frac{\sqrt{2} }{2}} \right) ^v\left( {( - 1)^{v - 2}\frac{\partial ^{v - 2}f}{\partial x^{v - 2}}\frac{\partial ^2f}{\partial y^2} + \frac{\partial ^{v - 2}f}{\partial y^{v - 2}}\frac{\partial ^2f}{\partial x^2}} \right) . \end{aligned}$$
    (21)
  5. (e)

    When \(\alpha = \pi \),\(l = (\cos \alpha , \sin \alpha ) = ( - 1, 0)\), that is, \(\cos \alpha = - 1, \sin \alpha = 0\), we have

    $$\begin{aligned} \frac{\partial ^vf}{\partial l^v} = \frac{( - 1)^v}{2}\frac{\partial ^vf}{\partial x^v} \approx \frac{( - 1)^v}{2}\left( {f(x,y) - vf(x - 1,y) + \frac{v(v - 1)}{2}f(x - 2,y)} \right) . \end{aligned}$$
    (22)
  6. (f)

    When \(\alpha = \frac{5\pi }{4}\),\(l = (\cos \alpha ,\sin \alpha ) = ( - \frac{\sqrt{2} }{2}, - \frac{\sqrt{2} }{2})\), that is, \(\cos \alpha = - \frac{\sqrt{2} }{2},\sin \alpha = - \frac{\sqrt{2} }{2}\), we have

    $$\begin{aligned} \frac{\partial ^vf}{\partial l^v} & \approx \frac{1}{2}\left( { - \frac{\sqrt{2} }{2}} \right) ^v\left( {\frac{\partial ^vf}{\partial x^v} + \frac{\partial ^vf}{\partial y^v}} \right)\\& \quad - \frac{v}{2}\left( { - \frac{\sqrt{2} }{2}} \right) ^v\left( {\frac{\partial ^{v - 1}f}{\partial x^{v - 1}}\frac{\partial f}{\partial y} + \frac{\partial ^{v - 1}f}{\partial y^{v - 1}}\frac{\partial f}{\partial x}} \right) \\ &\quad + \frac{v(v - 1)}{4}\left( { - \frac{\sqrt{2} }{2}} \right) ^v\left( {\frac{\partial ^{v - 2}f}{\partial x^{v - 2}}\frac{\partial ^2f}{\partial y^2} + \frac{\partial ^{v - 2}f}{\partial y^{v - 2}}\frac{\partial ^2f}{\partial x^2}} \right) . \end{aligned}$$
    (23)
  7. (g)

    When \(\alpha = \frac{3\pi }{2}\),\(l = (\cos \alpha , \sin \alpha ) = (0 , - 1)\), that is, \(\cos \alpha = 0 , \sin \alpha = - 1\), we have

    $$\begin{aligned} \frac{\partial ^vf}{\partial l^v} = \frac{( - 1)^v}{2}\frac{\partial ^vf}{\partial y^v} \approx \frac{( - 1)^v}{2}\left( {f(x,y) - vf(x,y - 1) + \frac{v(v - 1)}{2}f(x,y - 2)} \right) . \end{aligned}$$
    (24)
  8. (h)

    When \(\alpha = \frac{7\pi }{4}\),\(l = \cos \alpha , \sin \alpha ) = (\frac{\sqrt{2} }{2}, - \frac{\sqrt{2} }{2})\), that is, \(\cos \alpha = \frac{\sqrt{2} }{2}, \sin \alpha = - \frac{\sqrt{2} }{2}\), we have

    $$\begin{aligned} \frac{\partial ^vf}{\partial l^v} &\approx \frac{1}{2}\left( {\frac{\sqrt{2} }{2}} \right) ^v\left( {\frac{\partial ^vf}{\partial x^v} + ( - 1)^v\frac{\partial ^vf}{\partial y^v}} \right)\\& \quad - \frac{v}{2}\left( {\frac{\sqrt{2} }{2}} \right) ^v\left( { - \frac{\partial ^{v - 1}f}{\partial x^{v - 1}}\frac{\partial f}{\partial y} + ( - 1)^{v - 1}\frac{\partial ^{v - 1}f}{\partial y^{v - 1}}\frac{\partial f}{\partial x}} \right) \\ & \quad + \frac{v(v - 1)}{4}\left( {\frac{\sqrt{2} }{2}} \right) ^v\left( {\frac{\partial ^{v - 2}f}{\partial x^{v - 2}}\frac{\partial ^2f}{\partial y^2} + ( - 1)^{v - 2}\frac{\partial ^{v - 2}f}{\partial y^{v - 2}}\frac{\partial ^2f}{\partial x^2}} \right) . \end{aligned}$$
    (25)

Only taking (11)–(16) into (18)–(25) correspondingly, we can achieve the numerical calculation of FDD. From (18)–(25), we see that the coefficients of FDD along the eight directions are not the same, which can reflect different fractional change rates along different directions and is benefit to enlarge the differences among textures. This is also the biggest difference with the traditional fractional derivative. Therefore, FDD not only can nonlinearly enhance the contour feature in the smooth area, but also can enhance evidently high-frequency edge feature in those areas where gray changes remarkably. In order to simplify the operation, by comparing the absolute value outputs of the eight directions, the biggest one is taken as FDD grayscale of image.

3 Experiments and result analysis

This section aims at demonstrating that FDD operator has better capability in image enhancement [6, 7, 16, 17]. We first need to do FDD for an image \(s(x, y)\) by (18)–(25) respectively. And then we select the maximum absolute value of the eight directions as grayscale of the point. In order to validate the performance of FDD, we compare with traditional integer order differential operator Laplacian, Butterworth high-pass filter and TFD operator. Compared with integer-order differential operator Laplacian and Butterworth high-pass filter, the results are shown in Fig. 2.

Fig. 2
figure 2

The comparison of Laplacian operator, Butterworth high-pass filter and FDD. a Original image, b Laplacian operator, c Butterworth high-pass filter, d FDD \(v=0.03\).

Figure 2 shows that the original image is more blurred and Laplacian operator enhances detail information. It is also obvious that enhanced image by Butterworth high-pass filter becomes dark and loses some texture detail information. While FDD operator achieves best visual effects and is better than Laplacian operator and Butterworth high-pass filter. To explain this phenomenon in Fig. 2, the grey level histogram is given in Fig. 3.

Fig. 3
figure 3

The grey level histogram in Fig. 2

It is easy to see that the envelope curve of grey level histogram by Laplacian operator almost has no significant difference with that of the origin image, but when the grey value is 255, the number of pixel points increases suddenly, which leads to a large number of light spot and is respected as noise. Consequently, the enhance effect is not obvious. For Butterworth high-pass filter, the grey range of the grey level histogram becomes smaller than that of the original image, which implies the increase of low grey value, so the whole image becomes dark. The grey level histogram of FDD almost keeps the density function (envelope curve) with a normal distribution and the whole graph shifts, so FDD has best visual effects.

Secondly, we compare FDD with TFD operator. The parts of enhanced effects are shown in Fig. 4.

Fig. 4
figure 4

The comparison of FDD and TFD with different order. a Original image, b TFD \(v=0.05\), c TFD \(v=0.2\), d TFD \(v=0.4\), e TFD \(v=0.6\), f FDD \(v=0.05\), g FDD \(v=0.1\), h FDD \(v=0.2\).

Since both FDD and TFD can enhance image in detail. In order to quantify enhanced effect in detail, the paper adopts DV and BV [18] to evaluate the enhanced image. DV and BV can divide image into detail region and background region by a threshold. DV is the average local variance of the detail region, BV is the average local variance of the background region, and the threshold is the local variance that corresponds to the peak of local variance’s grey level histogram for the original image. For enhanced images, the larger DV is and the smaller BV is, the better enhanced effect is achieved in general. For the sake of convenience, DV/BV is used as the enhancement evaluation criterion. The results of images in Fig. 4 are shown in Table 1.

Table 1 Comparison of DV/BV in Fig. 4

Table 1 gives the fact that the DV/BV values of FDD and TFD are both greater than that of the original image, and DV/BV of FDD changes obviously with the increase of the fractional order.

To further compare FDD with Laplacian operator, Butterworth high-pass filter and TFD, we do the following some experiments. The results are shown in Fig. 5.

Fig. 5
figure 5

The comparison of different methods. a Original image, b Laplacian operator, c Butterworth high-pass filter, d TFD \(v=0.3\), e FDD \(v=0.05\), f original image, g Laplacian operator, h Butterworth high-pass filter, i TFD \(v=0.2\), j FDD \(v=0.05\).

In order to further illustrate the performance of FDD, the average gradient [1922] of enhanced images in Fig. 5 are given. See Table 2.

Table 2 DV/BV and average gradient in Fig. 5

As shown in Table 2, the values of DV/BV with Laplacian operator, Butterworth high-pass filter and FDD are greater than that of the origin image. Although Butterworth high-pass filter has the greatest DV/BV value, the enhanced image becomes dark, so extraneous noise is introduced. Although Laplacian operator has the greatest average gradient value, the enhanced image is over sharp. Comparing with TFD, both the average gradient and DV/BV by FDD are greater than that by TFD, which means FDD can enhance both the margins and the textures. Therefore, FDD could nonlinearly preserve the low-frequency contour feature in the smooth area to the furthest degree, and as well as, nonlinearly enhance high-frequency marginal information in those areas where gray scale changes frequently. FDD could nonlinearly enhance the comprehensive texture details.

4 Conclusion

The paper introduces the concept and theory of FDD. The coefficients of FDD along the eight directions in the image plane are not the same, which can reflect different fractional change rates along different directions and is benefit to enlarge the differences among textures. Compared with Laplacian operator, Butterworth high-pass filter and TFD, the experiments indicate that Laplacian operator makes enhanced image over sharp and introduces extraneous noise; the grey range of enhanced images by Butterworth high-pass filter becomes narrower, so some detail information lose. Although TFD can enhance image non-linearly, the amplitude is smaller than FDD. Therefore, FDD achieves better enhanced effect than the above three operators. Therefore, FDD is a new method and technology for image enhancement.