Back to Adaptive Vision Library website

You are here: Start » Function Reference » Image » Image Features » ImageSharpness

ImageSharpness


Header: AVL.h
Namespace: avl
Module: FoundationBasic

Returns a value dependent on sharpness of the image. The value is bigger for sharper images.

Applications: Designed for manual or automatic camera focus adjustment.

Syntax

C++
C#
 
void avl::ImageSharpness
(
	const avl::Image& inImage,
	atl::Optional<const avl::Box&> inRoi,
	float& outSharpness
)

Parameters

Name Type Default Description
inImage const Image& Input image
inRoi Optional<const Box&> NIL Range of pixels to be processed
outSharpness float&

Examples

Two images having different sharpness level – 38.326 for the left one, 6.059 for the right one.

Errors

List of possible exceptions:

Error type Description
DomainError inRoi exceeds image dimensions in ImageSharpness.