SegmentWatershedGetBufferSize

Computes the size of the working buffer for the watershed segmentation.

Syntax

IppStatus ippiSegmentWatershedGetBufferSize_8u_C1R(IppiSize roiSize, int* pBufferSize);

IppStatus ippiSegmentWatershedGetBufferSize_8u16u_C1R(IppiSize roiSize, int* pBufferSize);

Parameters

roiSize
Size of the source image ROI in pixels.
pBufferSize
Pointer to the computed size of the working buffer.

Description

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

This function computes the size of the working buffer required for the ippiSegmentWatershed function. The buffer with the length pBufferSize [0] can be used to segment images with width and/or height that is equal to or less than the corresponding field of the parameter roiSize.

Return Values

ippStsNoErr

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

ippStsNullPtrErr

Indicates an error condition if the pointer pBufferSize is NULL.

ippStsSizeErr

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

Submit feedback on this help topic

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