Sharpens the current image by applying a high pass 3 x 3 convolution filter selected by the user.
Visual Basic |
---|
Public Sub SharpenEx( _ ByVal IPSharpenI As Integer, _ ByVal IPSharpenFilter As enumSharpenFilter _ ) |
- IPSharpenI
The sharpening intensity.
Valid values are 1 through 10.
Higher intensities result in a sharper image.
- IPSharpenFilter
An enumSharpenFilter enumeration value.Value Description SharpenFilter1 Sharpen filter 1.
Matrix:
(0 -1 0
-1 5 -1
0 -1 0) / 1
SharpenFilter2 Sharpen filter 2.
Matrix:
(-1 -1 -1
-1 9 -1
-1 -1 -1) / 6
SharpenFilter3 Sharpen filter 3.
Matrix:
(1 -2 1
-2 5 -2
1 -2 1) / 1
Sharpen filters are provided to help contrast the edges within an image. Several filters of each kind are provided giving a choice for correction depending on the severity of correction needed.