SmoothImage_Bilateral


Smooths an image while preserving sharp edges.

Syntax

C++
C#
Python
 
def SmoothImage_Bilateral(
	inImage: Image,
	outImage: Image,
	/,
	*,
	inEdgesImage: Image | None = None,
	inRoi: Region | None = None,
	inDistanceSigma: float = 5.0,
	inColorSigma: float = 35.0,
	inSamplingMethod: BilateralSamplingMethod = BilateralSamplingMethod.Poisson,
	inIterationCount: int = 1
)
-> None

Parameters

Name Type Range Default Description
Input value inImage Image Input image
Input value inEdgesImage Image | None None Image to be used for edge detection
Input value inRoi Region | None None Range of pixels to be processed
Input value inDistanceSigma float 0.0 - 128.0 5.0 Sigma used when calculating the gaussian difference two pixel positions
Input value inColorSigma float 0.0 - 35.0 Sigma used when calculating the gaussian difference between two colors
Input value inSamplingMethod BilateralSamplingMethod BilateralSamplingMethod.Poisson Whether to use a naive (full) or a subsampling method
Input value inIterationCount int 1 - 1 Determines how many times the bilateral filter will be run
Output value outImage Image Output image

Hardware Acceleration

This operation supports automatic parallelization for multicore and multiprocessor systems.