Back to Aurora Vision Library website

You are here: Start » Function Reference » Image » Image Local Transforms » SmoothImage_DirAndPresence

SmoothImage_DirAndPresence


Header: AVL.h
Namespace: avl
Module: FoundationPro

Smooths the result of GradientDirAndPresenceImage.

Syntax

C++
C#
 
void avl::SmoothImage_DirAndPresence
(
	const avl::Image& inDirectionsImage,
	const int inRadiusX,
	atl::Optional<int> inRadiusY,
	const int inQuantizationLevel,
	const int inMinSampleCount,
	avl::Image& outDirectionsImage
)

Parameters

Name Type Range Default Description
Input value inDirectionsImage const Image&
Input value inRadiusX const int 0 - 1 Horizontal radius of the kernel (width is 2r+1)
Input value inRadiusY Optional<int> 0 - NIL Vertical radius of the kernel (height is 2r+1)
Input value inQuantizationLevel const int 1 - 5 5 Determines angular quantization level; the lower the better but slower
Input value inMinSampleCount const int 1 - 1 A window is evaluated to 0 if it contains less than this number of non-zero pixels
Output value outDirectionsImage Image&

Errors

List of possible exceptions:

Error type Description
DomainError The result of GradientDirAndPresenceImage (of type 1xUInt8) should be provided in inGradientDirAndPresenceImage in SmoothImage_DirAndPresence.