MorphReconstructGetBufferSize

Computes the size of the buffer for morphological reconstruction operation.

Syntax

IppStatus ippiMorphReconstructGetBufferSize_<mod>(IppiSize roiSize, int* pBufferSize);

Supported values for mod:

8u_C1IR 16u_C1IR 32f_C1IR 64f_C1IR

Parameters

roiSize

Maximal size of the image ROI in pixels, that can be processed using the buffer.

pBufferSize

Pointer to the size of the buffer (in bytes).

Description

The function ippiMorphReconstructBufferGetSize is declared in the ippcv.h file. It operates with ROI (see Regions of Interest in Intel IPP).

This function computes the size pBufferSize of the buffer for the morphological reconstruction of the source image. This buffer can be used by the functions MorphReconstructDilate and MorphReconstructErode.

Return Values

ippStsNoErr

Indicates no error. Any other value indicates an error or a warning.

ippStsNullPtrErr

Indicates an error condition if pBufferSize is NULL.

ippStsSizeErr

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

Submit feedback on this help topic

Copyright © 2000 - 2011, Intel Corporation. All rights reserved.