Back to FabImage Library website

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

ImageSharpness


Header:FIL.h
Namespace:fil

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

Syntax

C++
C#
 
void fil::ImageSharpness
(
	const fil::Image& inImage,
	ftl::Optional<const fil::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.