-
public class EnhanceImage sharpening methods.
-
-
Field Summary
Fields Modifier and Type Field Description public final static intDEFAULT_UNSHARP_HALFWIDTHpublic final static floatDEFAULT_UNSHARP_FRACTION
-
Method Summary
Modifier and Type Method Description static PixunsharpMasking(Pix pixs)Performs unsharp masking (edge enhancement) using default values. static PixunsharpMasking(Pix pixs, int halfwidth, float fraction)Performs unsharp masking (edge enhancement). -
-
Method Detail
-
unsharpMasking
static Pix unsharpMasking(Pix pixs)
Performs unsharp masking (edge enhancement) using default values.
- Parameters:
pixs- Source image
-
unsharpMasking
static Pix unsharpMasking(Pix pixs, int halfwidth, float fraction)
Performs unsharp masking (edge enhancement).
Notes:
- We use symmetric smoothing filters of odd dimension, typically usesizes of 3, 5, 7, etc. The
halfwidthparameter for these is(size - 1)/2; i.e., 1, 2, 3, etc. - The
fractparameter is typically taken in the range: 0.2<fract< 0.7
- Parameters:
pixs- The source imagehalfwidth- The half-width of the smoothing filter.fraction- The fraction of edge to be added back into the sourceimage.
- We use symmetric smoothing filters of odd dimension, typically usesizes of 3, 5, 7, etc. The
-
-
-
-