ArticleslgStudy

biology

Image derivative

Image derivative is a biology topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Image derivative rather than just read about it. In short: Image derivatives can be computed by using small convolution filters of size 2 × 2 or 3 × 3, such as the Laplacian, Sobel, Roberts and Prewitt operators. However, a larger mask will generally give a better approximation of the derivative and examples of such filters are Gaussian derivatives and Gabor filters.

Key takeaways

  • Image derivative belongs to biology; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Image derivative to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Image derivative from memory before moving on to harder problems.

Reference excerpt

Image derivatives can be computed by using small convolution filters of size 2 × 2 or 3 × 3, such as the Laplacian, Sobel, Roberts and Prewitt operators. However, a larger mask will generally give a better approximation of the derivative and examples of such filters are Gaussian derivatives and Gabor filters. Sometimes high frequency noise needs to be removed and this can be incorporated in the filter so that the Gaussian kernel will act as a band pass filter. The use of Gabor filters in image processing has been motivated by some of its similarities to the perception in the human visual system. The pixel value is computed as a convolution

p'u=𝐝∗G where 𝐝 is the derivative kernel and G is the pixel values in a region of the image and ∗ is the operator that performs the convolution.

Sobel derivatives The derivative kernels, known as the Sobel operator are defined as follows, for the u and v directions respectively:

p'u=[+1+2+1000−1−2−1]∗𝐆andp'v=[+10−1+20−2+10−1]∗𝐆 where ∗ here denotes the 2-dimensional convolution operation. This operator is separable and can be decomposed as the products of an interpolation and a differentiation kernel, so that, p'v, for an example can be written as

[+10−1+20−2+10−1]=[121][+10−1]

Farid and Simoncelli derivatives Farid and Simoncelli propose to use a pair of kernels, one for interpolation and another for differentiation (compare to Sobel above). These kernels, of fixed sizes 5 x 5 and 7 x 7, are optimized so that the Fourier transform approximates their correct derivative relationship. In Matlab code the so called 5-tap filter is

And the 7-tap filter is

As an example the first order derivatives can be computed in the following using Matlab in order to perform the convolution

It is noted that Farid and Simoncelli have derived first derivative coefficients which are more accurate compared to the ones provided above. However, the latter are consistent with the second derivative interpolator and, therefore, are better to use if both the first and second derivatives are sought. In the opposite case, when only the first derivative is desired, the optimal first derivative coefficients should be employed; more details can be found in their paper.

Hast derivatives Derivative filters based on arbitrary cubic splines was presented by Hast. He showed how both first and second order derivatives can be computed more correctly using cubic or trigonometric splines. Efficient derivative filters need to be of odd length so that the derivative is computed for the central pixel. However, any cubic filter is fitted over 4 sample points, giving a centre that falls between pixels. This is solved by a double filtering approach giving filters of size 7 x 7. The idea is to first filter by interpolation so that the interpolated value between pixels are obtained, whereafter the procedure is repeated using a derivative filters, where the centre value now falls on pixel centres. This can easily be proved by the associative law for convolution

p'u=𝐝∗(𝐤∗G)=(𝐝∗𝐤)∗G Therefore the convolution kernel for computing the derivative 𝐤𝐝 using an interpolating kernel 𝐤 and a derivative kernel 𝐝 becomes

𝐤𝐝=𝐝∗𝐤 Also keep in mind that convolution is commutative, so that the order of the two kernels does not matter and it is also possible to insert a second order derivative as well as a first order derivative kernel. These kernels are derived from the fact that any spline surface can be fitted over a square pixel region, compare to Bezier surfaces. Hast proves that such a surface can be performed as a separable convolution

p(u,v)=𝐮TMGMT𝐯=MT𝐮⊗𝐯TM∗G where M is the spline basis matrix, 𝐮 and 𝐯 are vectors containing the variables u and v, such as

𝐮=[u3,u2,u,1]T 𝐯=[v3,v2,v,1]T The convolution kernels can now be set to

𝐤=𝐮TM=(MT𝐯)T 𝐝=∂𝐮T∂uM=(MT∂𝐯∂v)T 𝐝𝟐=∂2𝐮T∂u2M=(MT∂2𝐯∂v2)T The first order derivatives at the central pixel are hence computed as

Du=∂𝐮T∂uM∗𝐮TMGMT𝐯∗MT𝐯=𝐝∗𝐤⊗(𝐤∗𝐤)T∗G and

Dv=𝐮TM∗𝐮TMGMT𝐯∗MT∂𝐯∂v=𝐤∗𝐤⊗(𝐝∗𝐤)T∗G Likewise, with the second order derivative kernels are

Du2=∂2𝐮T∂u2M∗𝐮TMGMT𝐯∗MT𝐯=𝐝𝟐∗𝐤⊗(𝐤∗𝐤)T∗G and

Dv2=𝐮TM∗𝐮TMGMT𝐯∗MT∂2𝐯∂v2=𝐤∗𝐤⊗(𝐝𝟐∗𝐤)T∗G The cubic spline filter is evaluated in its centre u=v=0.5 and therefore

𝐮=𝐯=[(0.5)3,(0.5)2,0.5,1]T=[0.125,0.25,0.5,1]T Likewise the first order derivatives becomes

∂𝐮(0.5)∂u=∂𝐯(0.5)∂v=[3⋅(0.5)2,2⋅(0.5),1,0]T=[0.75,1,1,0]T And in a similar manner the second order derivatives are

d2𝐮(0.5)u2=d2𝐯(0.5)dv2=[6⋅(0.5),2,0,0]T=[3,2,0,0]T Any cubic filter can be applied and used for computing the image derivates using the above equations, such as Bézier, Hermite or B-splines. The example in below in Matlab use the Catmull-Rom spline to compute the derivatives

Other approaches Steerable filters can be used for computing derivatives Moreover, Savitzky and Golay propose a least-squares polynomial smoothing approach, which could be used for computing derivatives and Luo et al discuss this approach in further detail. Scharr shows how to create derivative filters by minimizing the error in the Fourier domain and Jähne et al discuss in more detail the principles of filter design, including derivative filters.

See also Image gradient

References

External links derivative5.m Farid and Simoncelli: 5-Tap 1st and 2nd discrete derivatives. derivative7.m Farid and Simoncelli: 7-Tap 1st and 2nd discrete derivatives kernel.m Hast: 1st and 2nd discrete derivatives for Cubic splines, Catmull-Rom splines, Bezier splines, B-Splines and Trigonometric splines.

Worked examples

Example 1 — a first encounter with Image derivative

Start with the simplest possible case. Write down what Image derivative claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In biology, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Image derivative before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Image derivative ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Image derivative

In research
Image derivative appears in biology research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Image derivative in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Image derivative is common in secondary-school and first-year university syllabi. It links to neighbouring topics Generalizations of the derivative, Image processing, so understanding it makes those chapters shorter.
In everyday life
Look for Image derivative outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Image derivative” →

How to study Image derivative in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Image derivative means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Image derivative out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Image derivative in simple terms?

Image derivatives can be computed by using small convolution filters of size 2 × 2 or 3 × 3, such as the Laplacian, Sobel, Roberts and Prewitt operators. However, a larger mask will generally give a better approximation of the derivative and examples of such filters are Gaussian derivatives and Gab…

Why does Image derivative matter?

Because it connects several biology ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Image derivative?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Image derivative.

Tags

  • Generalizations of the derivative
  • Image processing

Keep exploring