Replaces each pixel with the median of pixels within a kernel.
|inRoi||Region*||Range of outImage pixels being written|
|inSourceRoi||Region*||Range of inImage pixels being read|
|inRadiusX||Integer||0 -||Nearly half of the kernel's width (2*R+1)|
|inRadiusY||Integer*||0 -||Nearly half of the kernel's height (2*R+1), or same as inRadiusX|
For input inImage only pixel formats are supported: uint8.
Read more about pixel formats in Image documentation.
- Define the kernel size by setting the inRadiusX and inRadiusY inputs.
- For small kernels consider switching to SmoothImage_Median_Mask to achieve higher performance.
This filter can throw an exception to report error. Read how to deal with errors in Error Handling.
List of possible exceptions:
|DomainError||inRoi exceeds image dimensions in SmoothImage_Median.|
|DomainError||inSourceRoi exceeds image dimensions in SmoothImage_Median.|
|DomainError||Not supported kernel in SmoothImage_Median.|
|DomainError||Not supported pixel format in SmoothImage_Median.|
This filter is available on Basic Complexity Level.
This filter is member of SmoothImage filter group.