NormalizeLocalBrightness_Mean


Normalizes local brightness of the image. Internally uses Mean smoothing.

Applications:Compensates uneven illumination.

Syntax

C++
C#
Python
 
def NormalizeLocalBrightness_Mean(
	inImage: Image,
	outImage: Image,
	/,
	*,
	inRoi: Region | None = None,
	inRadiusX: int = 10,
	inRadiusY: int | None = None,
	inTargetMean: float = 128.0,
	inGammaValue: float = 1.0
)
-> None

Parameters

Name Type Range Default Description
Input value inImage Image Input image
Input value inRoi Region | None None Range of pixels to be processed
Input value inRadiusX int 0 - 10 Nearly half of the kernel's width (2*R+1)
Input value inRadiusY int | None 0 - None Nearly half of the kernel's height (2*R+1), or same as inRadiusX
Input value inTargetMean float 128.0 Target mean brightness
Input value inGammaValue float 0.01 - 8.0 1.0 Gamma coefficient, where 1.0 is neutral
Output value outImage Image Output image

Hardware Acceleration

This operation supports automatic parallelization for multicore and multiprocessor systems.