81 def process(self, image: Union[Image, ids_peak_ipl.Image]) -> Image:
84 Applies the median filter to the specified image.
86 @supportedPixelformats{MedianFilter}
89 Processes the entire image,
90 ignoring any specified image region.
98 @exception NotSupportedException:
99 The pixel format is unsupported.
100 @exception NotPossibleException:
101 The kernel size must be an odd number greater than 1.
102 @exception OutOfRangeException:
103 The kernel size exceeds the image dimensions.
105 @since ids_peak_icv 1.1
107 _image = _check_and_get_icv_image(image)
109 output_image = Image.create_from_pixel_format_and_size(_image._pixel_format,
110 Size(_image.width, _image.height))
112 execute_and_map_return_codes(lib_loader.dll().peak_icv_Filter_Image_Median,
115 output_image._handle)