ComputeImageSharpness
Computes a measure of the relative focus of an input image as part of an iterative process for refocusing a the lens of an In-Sight Spreadsheet camera.
ComputeImageSharpness Overview
Called the image sharpness score, this measure indicates the degree to which the image, or a region of interest (ROI), includes the smallest resolvable features in a "scene" (that is, the object and its background as captured in the image).
Operation is simple—an image is acquired, and the ComputeImageSharpness tool obtains the image sharpness score. Then, the lens is refocused, nothing else is changed within the scene and a new image is acquired and scored. The higher the score, the sharper the focus. This process is repeated until the focus is acceptable to the user.
| Parameter | Description | ||||||||||||
|
Image |
This parameter must use Cell References in
a spreadsheet cell that contains an Image data structure. By
default, this parameter references |
||||||||||||
|
Fixture |
Defines the Region of Interest (ROI) relative to a Fixture input or the output of the image coordinate system for the Vision Tools function. Setting the ROI relative to a Fixture ensures that if the Fixture is rotated or translated, the ROI is rotated or translated in relation to the Fixture. Note: 2D projections use real world units but fixturing with 2D tools requires input in pixel values. When using a 2D projection from a 3D point cloud as a Fixture, convert the real world units to pixel values using the TransWorldToPixel function.
The default setting is (0,0,0), the top leftmost corner of the image.
|
||||||||||||
|
Region |
Also known as the Region of Interest (ROI), specifies the region of the image that undergoes analysis. Double-click on the Region parameter to create an Interactive Graphics Mode that you can transform and rotate. Select this parameter and press the Maximize Region button on the Job Edit toolbar of the property sheet to automatically stretch the region to cover the entire image.
|
||||||||||||
|
Operation |
Gradient Energy: Computes image sharpness based on the energy in the local grey-level gradient of the image or the ROI. The local grey-level gradient represents the rate of change in greyscale values for a given area. An abrupt change in greyscale results in a large magnitude in the grey-level gradient and a higher image sharpness score. |
||||||||||||
|
Smoothness |
Specifies an image-smoothing operation to help eliminate high-frequency noise that might be present in the ROI. There are three settings:
|
||||||||||||
|
Show |
Specifies which graphical overlays are displayed on top of the image.
|
|
Returns |
An image sharpness score as a floating point value, or #ERR if any of the input parameters are invalid. |