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

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

MorphSetMode

Sets the mask processing mode for advanced morphological operations.

Syntax

IppStatus ippiMorphSetMode(int mode, IppiMorphAdvState* pMorphSpec);

IppStatus ippiMorphSetMode_L(int mode, IppiMorphAdvStateL* pMorphSpec);

Include Files

ippcv.h

ippcv_l.h

Domain Dependencies

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

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

Parameters

mode

Mask processing mode; supported values:

IPP_MORPH_DEFAULT Invert the mask

IPP_MORPH_MASK_NO_FLIP Do not invert the mask; use the same mask for the first and second stage.

pMorphSpec

Pointer to the specification structure for advanced morphological operations.

Description

This function sets the mask processing mode for the second stage of an advanced morphological operation. Before using this function, initialize the specification structure using the ippiMorphInit function.

Return Values

ippStsNoErr

Indicates no error.

ippStsNotSupportedModeErr

Indicates an error when mode has an invalid value.

ippStsNullPtrErr

Indicates an error when pMorphSpec is NULL.

See Also