Digikam/Sharpening: Difference between revisions

From KDE Wiki Sandbox
(Created page with "<languages /> <translate> == Sharpening in digiKam == Transcribed from Dmitri Popov's blog, 08 May, 2013 The Sharpen tool in digiKam offers three sharpening methods: simple s...")
 
(Marked this version for translation)
Line 1: Line 1:
<languages />
<languages />
<translate>
<translate>
== Sharpening in digiKam ==
== Sharpening in digiKam == <!--T:1-->
Transcribed from Dmitri Popov's blog, 08 May, 2013
Transcribed from Dmitri Popov's blog, 08 May, 2013


<!--T:2-->
The Sharpen tool in digiKam offers three sharpening methods: simple sharp, unsharp mask, and refocus. Each method has its advantages and drawbacks. The simple sharp technique uses a standard convolution matrix algorithm to improve image details. If you are curious about the nitty-gritty of the convolution matrix, the [http://docs.gimp.org/en/plug-in-convmatrix.html GIMP documentation] provides a brief description of the algorithm. In fact, the simple sharp tool in '''digiKam''' is ported from the '''GIMP''' project. The main advantage of the simple sharp method is its simplicity. The Simple Sharp tool in '''digiKam '''has only one adjustable parameter called <menuchoice>Sharpness</menuchoice> which determines the strength of the applied sharpening filter. On the downside, the simple sharp method doesn’t handle image noise very well: it tends to introduce more noise in photos taken at lower ISO settings.
The Sharpen tool in digiKam offers three sharpening methods: simple sharp, unsharp mask, and refocus. Each method has its advantages and drawbacks. The simple sharp technique uses a standard convolution matrix algorithm to improve image details. If you are curious about the nitty-gritty of the convolution matrix, the [http://docs.gimp.org/en/plug-in-convmatrix.html GIMP documentation] provides a brief description of the algorithm. In fact, the simple sharp tool in '''digiKam''' is ported from the '''GIMP''' project. The main advantage of the simple sharp method is its simplicity. The Simple Sharp tool in '''digiKam '''has only one adjustable parameter called <menuchoice>Sharpness</menuchoice> which determines the strength of the applied sharpening filter. On the downside, the simple sharp method doesn’t handle image noise very well: it tends to introduce more noise in photos taken at lower ISO settings.


<!--T:3-->
<menuchoice>Unsharp mask</menuchoice> is a popular sharpening method which sharpens the edges of the elements without increasing noise. The unsharp mask technique creates a slightly blurred version of an image, which is then subtracted from the original in order to detect edges. The resulting mask is then used to increase contrast along the detected edges to produce a sharper final image. The Unsharp Mask tool in '''digiKam''' has three adjustable parameters:
<menuchoice>Unsharp mask</menuchoice> is a popular sharpening method which sharpens the edges of the elements without increasing noise. The unsharp mask technique creates a slightly blurred version of an image, which is then subtracted from the original in order to detect edges. The resulting mask is then used to increase contrast along the detected edges to produce a sharper final image. The Unsharp Mask tool in '''digiKam''' has three adjustable parameters:


<!--T:4-->
<menuchoice>Radius</menuchoice> specifies how many pixels on either side of an edge will be affected by sharpening. High-resolution photos allow higher radius.
<menuchoice>Radius</menuchoice> specifies how many pixels on either side of an edge will be affected by sharpening. High-resolution photos allow higher radius.


<!--T:5-->
<menuchoice>Amount</menuchoice> determines the strength of sharpening.
<menuchoice>Amount</menuchoice> determines the strength of sharpening.


<!--T:6-->
<menuchoice>Threshold</menuchoice> specifies the minimum difference in pixels that indicates an edge where sharpen must be applied. This lets you protect areas of smooth tonal transition from sharpening, and avoid creating blemishes in face, sky or water surfaces. [1]
<menuchoice>Threshold</menuchoice> specifies the minimum difference in pixels that indicates an edge where sharpen must be applied. This lets you protect areas of smooth tonal transition from sharpening, and avoid creating blemishes in face, sky or water surfaces. [1]


<!--T:7-->
When using the unsharp mask tool, you should keep in mind that it can introduce subtle color shifts and halo artifacts visible as dark or light outlines near edges.
When using the unsharp mask tool, you should keep in mind that it can introduce subtle color shifts and halo artifacts visible as dark or light outlines near edges.


<!--T:8-->
[[Image:Digikam-refocussharpen.png ||center||thumb||500px||Using the Refocus sharpening method]]
[[Image:Digikam-refocussharpen.png ||center||thumb||500px||Using the Refocus sharpening method]]


<!--T:9-->
Finally, the <menuchoice>Refocus</menuchoice> method is based on the Refocus plugin for '''GIMP''' which uses a technique called FIR Wiener filtering to sharpen the image (see http://en.wikipedia.org/wiki/Wiener_filter). Similar to the original plugin, the Refocus tool in '''digiKam''' offers several adjustable parameters:
Finally, the <menuchoice>Refocus</menuchoice> method is based on the Refocus plugin for '''GIMP''' which uses a technique called FIR Wiener filtering to sharpen the image (see http://en.wikipedia.org/wiki/Wiener_filter). Similar to the original plugin, the Refocus tool in '''digiKam''' offers several adjustable parameters:


<!--T:10-->
<menuchoice>Circular sharpness</menuchoice> is a key parameter which determines the radius of the circular convolution. Basically, it specifies the strength of the refocusing action.
<menuchoice>Circular sharpness</menuchoice> is a key parameter which determines the radius of the circular convolution. Basically, it specifies the strength of the refocusing action.


<!--T:11-->
<menuchoice>Correlation</menuchoice> helps to reduce artifacts. Increasing the correlation value reduces the sharpening effect. Useful values are 0.5 and values close to 1 (e.g., 0.95 and 0.99).
<menuchoice>Correlation</menuchoice> helps to reduce artifacts. Increasing the correlation value reduces the sharpening effect. Useful values are 0.5 and values close to 1 (e.g., 0.95 and 0.99).


<!--T:12-->
<menuchoice>Noise filter</menuchoice> may help to reduce artifacts. Similar to the Correlation parameter, increasing the noise filter value reduces the sharpening effect. A useful value is 0.01.
<menuchoice>Noise filter</menuchoice> may help to reduce artifacts. Similar to the Correlation parameter, increasing the noise filter value reduces the sharpening effect. A useful value is 0.01.


<!--T:13-->
<menuchoice>Gaussian sharpness</menuchoice> is used to specify the radius of the Gaussian convolution for correcting Gaussian blur. In most cases, it should be set to 0, as it introduces artifacts. When using non-zero values with Gaussian sharpness, you might need to increase the Correlation and Noise filter parameters, too.
<menuchoice>Gaussian sharpness</menuchoice> is used to specify the radius of the Gaussian convolution for correcting Gaussian blur. In most cases, it should be set to 0, as it introduces artifacts. When using non-zero values with Gaussian sharpness, you might need to increase the Correlation and Noise filter parameters, too.


<!--T:14-->
<menuchoice>Matrix size</menuchoice> determines the size of the transformation matrix. Increasing this parameter may give better results, especially when large values are chosen for the Circular sharpness or Gaussian sharpness parameters. In most cases, you should select a value in the range 3-10. [2]
<menuchoice>Matrix size</menuchoice> determines the size of the transformation matrix. Increasing this parameter may give better results, especially when large values are chosen for the Circular sharpness or Gaussian sharpness parameters. In most cases, you should select a value in the range 3-10. [2]


<!--T:15-->
<menuchoice>Refocus</menuchoice> is the most powerful and effective sharpening tool in digiKam’s arsenal, as it not only offers a superior sharpening method and granular controls, but can also handle noise.
<menuchoice>Refocus</menuchoice> is the most powerful and effective sharpening tool in digiKam’s arsenal, as it not only offers a superior sharpening method and granular controls, but can also handle noise.


<!--T:16-->
[1] Source: http://docs.gimp.org/en/plug-in-unsharp-mask.html
[1] Source: http://docs.gimp.org/en/plug-in-unsharp-mask.html


<!--T:17-->
[2] Source: http://refocus.sourceforge.net/
[2] Source: http://refocus.sourceforge.net/


<!--T:18-->
[[Category:Graphics]]
[[Category:Graphics]]
[[Category:Photography]]
[[Category:Photography]]
[[Category:Tutorials]]
[[Category:Tutorials]]
</translate>
</translate>

Revision as of 17:33, 9 May 2013

Other languages:

Sharpening in digiKam

Transcribed from Dmitri Popov's blog, 08 May, 2013

The Sharpen tool in digiKam offers three sharpening methods: simple sharp, unsharp mask, and refocus. Each method has its advantages and drawbacks. The simple sharp technique uses a standard convolution matrix algorithm to improve image details. If you are curious about the nitty-gritty of the convolution matrix, the GIMP documentation provides a brief description of the algorithm. In fact, the simple sharp tool in digiKam is ported from the GIMP project. The main advantage of the simple sharp method is its simplicity. The Simple Sharp tool in digiKam has only one adjustable parameter called Sharpness which determines the strength of the applied sharpening filter. On the downside, the simple sharp method doesn’t handle image noise very well: it tends to introduce more noise in photos taken at lower ISO settings.

Unsharp mask is a popular sharpening method which sharpens the edges of the elements without increasing noise. The unsharp mask technique creates a slightly blurred version of an image, which is then subtracted from the original in order to detect edges. The resulting mask is then used to increase contrast along the detected edges to produce a sharper final image. The Unsharp Mask tool in digiKam has three adjustable parameters:

Radius specifies how many pixels on either side of an edge will be affected by sharpening. High-resolution photos allow higher radius.

Amount determines the strength of sharpening.

Threshold specifies the minimum difference in pixels that indicates an edge where sharpen must be applied. This lets you protect areas of smooth tonal transition from sharpening, and avoid creating blemishes in face, sky or water surfaces. [1]

When using the unsharp mask tool, you should keep in mind that it can introduce subtle color shifts and halo artifacts visible as dark or light outlines near edges.

Using the Refocus sharpening method

Finally, the Refocus method is based on the Refocus plugin for GIMP which uses a technique called FIR Wiener filtering to sharpen the image (see http://en.wikipedia.org/wiki/Wiener_filter). Similar to the original plugin, the Refocus tool in digiKam offers several adjustable parameters:

Circular sharpness is a key parameter which determines the radius of the circular convolution. Basically, it specifies the strength of the refocusing action.

Correlation helps to reduce artifacts. Increasing the correlation value reduces the sharpening effect. Useful values are 0.5 and values close to 1 (e.g., 0.95 and 0.99).

Noise filter may help to reduce artifacts. Similar to the Correlation parameter, increasing the noise filter value reduces the sharpening effect. A useful value is 0.01.

Gaussian sharpness is used to specify the radius of the Gaussian convolution for correcting Gaussian blur. In most cases, it should be set to 0, as it introduces artifacts. When using non-zero values with Gaussian sharpness, you might need to increase the Correlation and Noise filter parameters, too.

Matrix size determines the size of the transformation matrix. Increasing this parameter may give better results, especially when large values are chosen for the Circular sharpness or Gaussian sharpness parameters. In most cases, you should select a value in the range 3-10. [2]

Refocus is the most powerful and effective sharpening tool in digiKam’s arsenal, as it not only offers a superior sharpening method and granular controls, but can also handle noise.

[1] Source: http://docs.gimp.org/en/plug-in-unsharp-mask.html

[2] Source: http://refocus.sourceforge.net/