The Very High Radius Unsharp Mask .8bf Plugin
Version 1.112, updated 12/5/2015


Unsharp Mask Plugin


High-radius low-amount (HiRaLoAm) unsharp masking is a technique for increasing local contrast, or “clarity.”  It involves first applying a Gaussian blur to a copy of the image, then subtracting the blurred image from the original.  The blur radius is large compared to that used for conventional sharpening, often an appreciable fraction of the overall image dimensions.  Unfortunately, the blur algorithms used in most software are necessarily approximations to a true mathematical Gaussian blur, and tend to depart from the ideal at large radii.  This limits the usefulness of the technique when editing large images, such as those with dimensions of 4000 pixels or more.  Even when high radii are available, the final result is often very different from the preview, and the intended effect may be impossible to achieve.

The Very High Radius Unsharp Mask filter takes advantage of the fact that since the blurred image contains no fine detail, it can be greatly resized with little effect on the final result.  In use, a copy of the original image is reduced in size, comparable to the image preview itself, and a similarly-scaled blur applied.  The blurred image is then enlarged to the size of the original image, and used as the unsharp mask.  The resulting image is very similar to the preview, even if many times its size.


photo1   This is a 600 × 400 pixel image which was sharpened with a 56 pixel radius.  Roll your mouse over it to see the 7370 × 4916 pixel version of the same image, sharpened with a 704 pixel radius (then resized to 600 × 400).  Both radii were 8% of the image diagonal.  Note how different they look; the larger one does not achieve the intended effect.
photo2 The same two images; but this time the mask for the larger one was made from a reduced version of the original, then enlarged back to the original size.  You may have to look close to see the difference.
photo3 This is the Gaussian blurred image that gets resized.  There’s not much to lose in transition.
photo4 The original image.

About the plugin:

• The Radius setting is a percent of the image diagonal.  The apparent and scaled radii in pixels are also displayed.  Lower values produce visible halos, which fade at higher values.  Sometimes there is a “sweet spot” at low-to-middle values that enhances a certain scale of detail.
• A large Amount setting helps you find a good Radius setting, but the intended effect is usually found at lower amounts.  Negative amounts actually add the Gaussian blur and reduce local contrast, an effect sometimes applied to portraits (“glamour blur”; try starting with Radius 0.3 and Amount -30).
• You may save the Gaussian blurred image if desired; the only control that applies in this case is Radius.

• In Normal mode, the plugin processes each RGB channel separately.  The processed colors often have an unreal appearance but may still be interesting.  Color controls how much of the processed color components are included in the final image.  In Grayscale Only mode, the plugin processes a grayscale copy of the image, then combines it with the color components of the original image.  This is similar, but not identical, to Normal mode with Color set to zero; sometimes the results of the latter are superior.  However, the former runs faster.  In Color Only mode, only the processed color components are used in the final image.

• Dark/Light Mixer works as follows:  the central position (zero) displays the processed image; the far left is like Darken blend mode, and the far right is like Lighten.
• Use the masks to protect blown shadows and highlights.  Try starting with Tonal Width and Radius 0 and Amount 100.  Raise the Tonal Width and Radius to create an appropriate mask, then reduce Amount to 0 and gradually raise it again to achieve the desired effect.  Amounts greater than 100 only affect blurred areas of the mask.
• The white histogram (background) is the original image; the black one (foreground) is the processed image.

The plugin works with 8- or 16-bit RGB and grayscale images.



Download

Download the zipped file, then copy VHRUnsharpMask.8bf into your plugins folder.  It will appear under “RC Filters.”

VHRUnsharpMask_x64.zip version 1.112, 296 KB, 64-bit applications.  It works for me in Photoshop CS5 and PhotoLine 19.5, Windows 7.

VHRUnsharpMask.zip version 1.112, 292 KB, 32-bit applications, Windows 32 or 64 bit.  It works for me in IrfanView 4, Windows 7. |  source code

VHRUnsharpMask_XP.zip version 1.112.1, 184 KB, “retro” 32-bit version compatible with Windows XP.


A payment of $5.00 is requested; the cost of web hosting is going up and I would like to keep offering compiled downloads; thank you.

Or click through an Amazon link and go shopping.


© 2015 by Russell Cottrell; released under the GNU General Public License.
Updated 12/5/2015.
6727