Package 

Class Enhance


  • 
    public class Enhance
    
                        

    Image sharpening methods.

    • Method Summary

      Modifier and Type Method Description
      static Pix unsharpMasking(Pix pixs) Performs unsharp masking (edge enhancement) using default values.
      static Pix unsharpMasking(Pix pixs, int halfwidth, float fraction) Performs unsharp masking (edge enhancement).
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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 halfwidth parameter for these is(size - 1)/2; i.e., 1, 2, 3, etc.
        • The fract parameter is typically taken in the range: 0.2< fract < 0.7
        Parameters:
        pixs - The source image
        halfwidth - The half-width of the smoothing filter.
        fraction - The fraction of edge to be added back into the sourceimage.