# Image Sharpness Edit Control

Use an Image Sharpness tool to measure the sharpness of an image as measured by the grey values of adjacent pixels. The tool returns a sharpness score that can be compared to other images of the same scene with different settings for lens focus. Vision applications use an Image Sharpness tool to generate the best focus setting for a particular scene of the object under inspection. See the topic Measuring Image Sharpness .

An Image Sharpness tool supports the following user interface:

See the topic Control Reference for a description of the buttons along the top of the edit control. The Image Sharpness tool edit control supports the following image buffers:

- The Current.InputImage buffer contains the next image the tool will analyze plus any region graphics you might use to select a portion of the entire image available.

- The LastRun.InputImage buffer contains the last image processed by the Image Sharpness tool along with any graphics you enable from the Graphics tab.