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 | |
|---|---|---|---|---|---|
![]() |
inImage | Image | Input image | ||
![]() |
inEdgesImage | Image | None | None | Image to be used for edge detection | |
![]() |
inRoi | Region | None | None | Range of pixels to be processed | |
![]() |
inDistanceSigma | float | 0.0 - 128.0 | 5.0 | Sigma used when calculating the gaussian difference two pixel positions |
![]() |
inColorSigma | float | 0.0 - ![]() |
35.0 | Sigma used when calculating the gaussian difference between two colors |
![]() |
inSamplingMethod | BilateralSamplingMethod | BilateralSamplingMethod.Poisson | Whether to use a naive (full) or a subsampling method | |
![]() |
inIterationCount | int | 1 - ![]() |
1 | Determines how many times the bilateral filter will be run |
![]() |
outImage | Image | Output image |
Hardware Acceleration
This operation supports automatic parallelization for multicore and multiprocessor systems.



