Back to Aurora Vision Library website

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

SmoothImage_Median_Mask


Header: AVL.h
Namespace: avl
Module: FoundationLite

Replaces each pixel with the median of pixels within a 3x3 rectangular kernel (faster).

Syntax

C++
C#
 
void avl::SmoothImage_Median_Mask
(
	const avl::Image& inImage,
	atl::Optional<const avl::Region&> inRoi,
	avl::Image& outImage
)

Parameters

Name Type Default Description
Input value inImage const Image& Input image
Input value inRoi Optional<const Region&> NIL Range of outImage pixels to be computed
Output value outImage Image& Output image

Requirements

For input inImage only pixel formats are supported: uint8.

Read more about pixel formats in Image documentation.

Examples

SmoothImage_Median_Mask performed on a sample image.

Hardware Acceleration

This operation supports automatic parallelization for multicore and multiprocessor systems.

Errors

List of possible exceptions:

Error type Description
DomainError Region exceeds an input image in SmoothImage_Median_Mask.
DomainError Not supported inImage pixel format in SmoothImage_Median_Mask. Supported formats: UInt8.