Gradient filter

Gradient is a vector showing the direction of steepest ascent of a function. Absolute value of gradient equals growth rate in this direction. Gradient filter is a difference linear filter. Difference filters including gradient filter are often referred to as edge detection filters. Unlike smoothing and contrast enhancing filters, which don’t change average intensity of image, difference filters usually provide the image with average pixel intensity close to zero. Vertical drops indicating borders of initial image regions correspond to pixel with higher intensity in processed image.

In general case directional derivative along X axis (or Y axis) for discrete function can be expressed as (or ), where refers to the resultant of discrete functions and and differentiable function (image). There are various calculation algorithms for derivative of two-dimensional discrete function. Femtoscan uses three algorithms:

Gradient function can be called up from menu MathematicsLinear filters or by clicking the button on the tool bar:

.

When the function is called up dialog window appears with two parameters