Intel® Integrated Performance Primitives Developer Guide and Reference

ID 790148
Date 11/07/2023
Public

A newer version of this document is available. Customers should click here to go to the newest version.

Document Table of Contents

LUT_GetSize

Computes the size of the LUT specification structure.

Syntax

IppStatus ippiLUT_GetSize(IppiInterpolationType interpolation, IppDataType dataType, IppChannels channels, IppiSize roiSize, const int nLevels[], int* pSpecSize);

Include Files

ippi.h

Domain Dependencies

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

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

Parameters

interpolation

Interpolation algorithm, possible values are:

ippNearest

Nearest neighbor interpolation.

ippCubic

Cubic interpolation.

ippLinear

Linear interpolation.

dataType

Data type of the image. Possible values are ipp8u, ipp16u, ipp16s, or ipp32f.

channels

Number of channels in the image. Possible values are: ippC1, ippC3, ippC4, or ippAC4.

roiSize

Size, in pixels, of the destination ROI.

nLevels

Number of levels, separate for each channel.

pSpecSize

Pointer to the computed size, in bytes, of the specification structure.

Description

This function computes the size of the specification structure for the ippiLUT function. The result is stored in the pSpecSize parameter.

For an example on how to use this function, refer to the example provided with the ippiLUT function description.

Return Values

ippStsNoErr

Indicates no error.

ippStsNullPtrErr

Indicates an error when any of the specified pointers is NULL.

ippStsSizeErr

Indicates an error when roiSize has a field with a value less than 1.

ippStsChannelErr

Indicates an error when channel has an illegal value.

ippStsDataTypeErr

Indicates an error when dataType has an illegal value.

ippStsInterpolationErr

Indicates an error when interpolation has an illegal value.

See Also