Developer Reference

  • 2020
  • 07/15/2020
  • Public Content
Contents

MorphReconstructErode

Reconstructs an image by erosion.

Syntax

IppStatus ippiMorphReconstructErode_<mod>(const Ipp<datatype>*
pSrc
, int
srcStep
, Ipp<datatype>*
pSrcDst
, int
srcDstStep
, IppiSize
roiSize
, Ipp8u*
pBuf
, IppiNorm
norm
);
Supported values for
mod
:
8u_C1IR
16u_C1IR
64f_C1IR
IppStatus ippiMorphReconstructErode_32f_C1IR(const Ipp32f*
pSrc
, int
srcStep
, Ipp32f*
pSrcDst
, int
srcDstStep
, IppiSize
roiSize
, Ipp32f*
pBuf
, IppiNorm
norm
);
Include Files
ippcv.h
.
Parameters
pSrc
Pointer to the source image ROI.
srcStep
Distance in bytes between starts of consecutive lines in the source image.
pSrcDst
Pointer to the decreased and reconstructed image ROI.
srcDstStep
Distance in bytes between starts of consecutive lines in the decreased and reconstructed image.
roiSize
Size of the source and destination image ROI.
norm
Type of norm to form the mask for dilation; the following values are possible:
ippiNormInf
Infinity norm (8-connectivity, 3x3 rectangular mask).
ippiNormL1
L1 norm (4-connectivity, 3x3 cross mask).
pBuf
Pointer to the buffer.
Description
This function operates with ROI (see Regions of Interest in Intel IPP ).
This function performs morphological reconstruction of the increased source image by erosion [Vincent93] . The operation is performed in the working buffer whose size should be computed using the function
MorphReconstructGetBufferSize
beforehand.
This operation enables detection of the regional minimums that can be used as markers for successive watershed segmentation.
Return Values
ippStsNoErr
Indicates no error. Any other value indicates an error or a warning.
ippStsNullPtrErr
Indicates an error condition if one of the specified pointers is
NULL
.
ippStsSizeErr
Indicates an error condition if
roiSize
has a field with a zero or negative value.
ippStsStepErr
Indicates an error condition if
srcStep
or
srcDstStep
is less than
roiSize.width
*
<pixelSize>
.
ippStsNotEvenStepErr
Indicates an error condition if one of the step values is not divisible by 4 for floating-point images.
ippStsBadArgErr
Indicates an error condition if
norm
has an illegal value.

Product and Performance Information

1

Intel's compilers may or may not optimize to the same degree for non-Intel microprocessors for optimizations that are not unique to Intel microprocessors. These optimizations include SSE2, SSE3, and SSSE3 instruction sets and other optimizations. Intel does not guarantee the availability, functionality, or effectiveness of any optimization on microprocessors not manufactured by Intel. Microprocessor-dependent optimizations in this product are intended for use with Intel microprocessors. Certain optimizations not specific to Intel microarchitecture are reserved for Intel microprocessors. Please refer to the applicable product User and Reference Guides for more information regarding the specific instruction sets covered by this notice.

Notice revision #20110804