MaxEvery

Computes maximum value for each pair of pixels of two images.

Syntax

IppStatus ippiMaxEvery_<mod>(const Ipp<datatype>* pSrc, int srcStep, Ipp<datatype>* pSrcDst, int srcDstStep, IppiSize roiSize);

Supported values for mod:

8u_C1IR

16u_C1IR

16s_C1IR

32f_C1IR

8u_C3IR

16u_C3IR

16s_C3IR

32f_C3IR

8u_C4IR

16u_C4IR

16s_C4IR

32f_C4IR

8u_AC4IR

16u_AC4IR

16s_AC4IR

32f_AC4IR

Parameters

pSrc

Pointer to the first source image ROI.

srcStep

Distance in bytes between starts of consecutive lines in the first source image.

pSrcDst

Pointer to the second source and destination image ROI.

srcDstStep

Distance in bytes between starts of consecutive lines in the second source and destination image.

roiSize

Size of the image ROI in pixels.

Description

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

This function computes the maximum value for each pair of the corresponding pixels of two source images pSrc and pSrcDst, and stores the result in the pSrcDst:

pSrcDst(i, j) = max(pSrc( i,j), pSrcDst(i, j)).

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 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 step values for floating-point images are not divisible by 4.

Submit feedback on this help topic

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