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

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

TiltedIntegral

Transforms an image to the tilted integral representation.

Syntax

IppStatus ippiTiltedIntegral_8u32f_C1R(const Ipp8u* pSrc, int srcStep, Ipp32f* pDst, int dstStep, IppiSize roiSize, Ipp32f val);

IppStatus ippiTiltedIntegral_8u32s_C1R(const Ipp8u* pSrc, int srcStep, Ipp32s* pDst, int dstStep, IppiSize roiSize, Ipp32s val);

Include Files

ippcv.h

Domain Dependencies

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

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

Parameters

pSrc

Pointer to the source image ROI.

srcStep

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

pDst

Pointer to the ROI in the destination integral image.

dstStep

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

roiSize

Size of source image ROI in pixels.

val

The value to add to pDst image pixels

Description

This function operates with ROI (see Regions of Interest in Intel IPP). This function transforms a source image pSrc to the tilted integral image pDst. Pixel values of the destination image pDst are computed using pixel values of the source image pSrc and the specified value val in accordance with the following formula:


where i,j are coordinates of the destination image pixels (see Figure “Operation of the Integral and TiltedIntegral functions”)varying in the range i = 2 ,..., roiSize.height + 1, j = 0,..., roiSize.width + 1. Pixel values of rows 0 and 1 of the destination image pDst ( i=0) is set to val.

The size of the destination images is (roiSize.width + 2) x (roiSize.height + 2).

Figure “Operation of the Integral and TiltedIntegral functions” shows what pixels (red circles) of the source image are used in computation new pixel values in the i,j coordinates.

Return Values

ippStsNoEr

Indicates no error.

ippStsNullPtrErr

Indicates an error if pSrc or pDst is NULL.

ippStsSizeErr

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

ippStsStepErr

Indicates an error condition if srcStep is less than roiSize.width * <pixelSize>, or dstStep is less than (roiSize.width+2) * <pixelSize> .

ippStsNotEvenStepErr

Indicates an error condition if one dstStep is not divisible by 4.