public class Enhance extends Object
| Constructor and Description |
|---|
Enhance() |
| Modifier and Type | Method and Description |
|---|---|
static Pix |
unsharpMasking(Pix pixs,
int halfwidth,
float fraction)
Performs unsharp masking (edge enhancement).
|
public static Pix unsharpMasking(Pix pixs, int halfwidth, float fraction)
Notes:
halfwidth parameter for these is
(size - 1)/2; i.e., 1, 2, 3, etc.fract parameter is typically taken in the range: 0.2
< fract < 0.7halfwidth - The half-width of the smoothing filter.fraction - The fraction of edge to be added back into the source
image.Copyright © 2014. All rights reserved.