Intel® Integrated Performance Primitives (Intel® IPP) Developer Guide and Reference

ID 790148
Date 3/22/2024
Public
Document Table of Contents

FilterMedianInit

Initializes the filter specification structure for 3D image processing with a median filter.

Syntax

IppStatus ipprFilterMedianInit(IpprVolume maskVolume, IppDataType dataType, int numChannels, IpprFilterMedianSpec* pSpec);

Threading Layer (TL) function

IppStatus ipprFilterMedianInit_T(IpprVolume maskVolume, IppDataType dataType, int numChannels, IpprFilterMedianSpec_T* pSpec);

Include Files

ippi.h

ippi_tl.h

Domain Dependencies

Headers: ippcore.h, ippvm.h, ipps.h

Libraries: ippcore.lib, ippvm.lib, ipps.lib

Parameters

maskVolume

Size of the mask volume.

dataType

Data type of the source image. Possible values are ipp8u, ipp16u, ipp16s, ipp32f, and ipp64f.

numChannels

Number of channels in the image. Possible value is 1.

pSpec

Pointer to the filter specification structure.

Description

This function operates with VOI. This function initializes the filter specification structure pSpec for 3D image processing with a median filter. Before using this function, you need to compute the size of the corresponding specification structure using the ipprFilterMedianGetSize function.

Return Values

ippStsNoErr

Indicates no error condition. Any other value indicates an error condition.

ippStsNullPtrErr

Indicates an error condition if the pSpec pointer is NULL.

ippStsSizeErr

Indicates an error condition if maskVolume has a field with zero or negative value.

ippStsChannelErr

Indicates an error condition if numChannels has an illegal value.

ippStsDataTypeErr

Indicates an error condition if dataType has an illegal value.

See Also