ImageEn, unit imageenproc |
|
TImageEnProc.SymmetricNearestNeighbour
TImageEnProc.SymmetricNearestNeighbour
Declaration
procedure SymmetricNearestNeighbour(Radius: Integer = 6);
Description
Apply a "Symmetric Nearest Neighbour" smoothing filter to the image.
SNN smoothing is very effective at noise reduction, while preserving edges.
Original image:
![](http://www.imageen.com/screenshots/iehelp/SymmetricNearestNeighbour_Before.jpg)
Applying SymmetricNearestNeighbour(6):
![](http://www.imageen.com/screenshots/iehelp/SymmetricNearestNeighbour_After.jpg)
Note:
◼ To remove noise from Monochrome images, use
RemoveNoise◼ A UI for this is available to your users in the
Image Processing dialog◼ Also available as a
RetouchTool by setting
MouseInteractGeneral to [miRetouchTool] and
RetouchMode to iermSmooth
◼ If the image
PixelFormat is not ie24RGB, it will be converted
Also see:
Comparison of smoothing, blurring and noise reduction methodsDemo
| Demos\ImageEditing\EveryMethod\EveryMethod.dpr |
Example
// Load test image
ImageEnView1.IO.LoadFromFile( 'D:\TestImage.jpg' );
![](http://www.imageen.com/screenshots/iehelp/Proc/TestImage3.jpg)
// Apply a "Symmetric Nearest Neighbour" smoothing filter to the image
ImageEnView1.Proc.SymmetricNearestNeighbour();
![](http://www.imageen.com/screenshots/iehelp/Proc/Test3_SymmetricNearestNeighbour.jpg)
// Less aggressive SNN smoothing
ImageEnView1.Proc.SymmetricNearestNeighbour(2);
![](http://www.imageen.com/screenshots/iehelp/Proc/Test3_SymmetricNearestNeighbour2.jpg)
See Also
◼ fastNlMeansDenoisingColored