Computes the universal image quality index.

Syntax

Case 1: Operation on one-channel data

IppStatus ippiQualityIndex_<mod>(const Ipp<srcDatatype>* pSrc1, int src1Step, const Ipp<srcDatatype>* pSrc2, int src2Step, IppiSize roiSize, Ipp<dstDatatype> pQualityIndex[1], Ipp8u* pBuffer);

Supported values for mod:

8u32f_C1R

16u32f_C1R

32f_C1R

Case 2: Operation on multi-channel data

IppStatus ippiQualityIndex_<mod>(const Ipp<srcDatatype>* pSrc1, int src1Step, const Ipp<srcDatatype>* pSrc2, int src2Step, IppiSize roiSize, Ipp<dstDatatype> pQualityIndex[3], Ipp8u* pBuffer);

Supported values for mod:

8u32f_C3R

16u32f_C3R

32f_C3R

8u32f_AC4R

16u32f_AC4R

32f_AC4R

Include Files

ippi.h

Domain Dependencies

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

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

Parameters

pSrc1, pSrc2

Pointers to the source images ROI.

src1Step, src2Step

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

roiSize

Size of the source ROI in pixels.

pQualityIndex

Pointer to the computed quality index value.

pBuffer

Pointer to the buffer for internal calculations. To compute the size of the buffer, use the QualityIndexGetBufferSize function.

Description

This function operates with ROI (see Regions of Interest in Intel IPP). This function computes the universal image quality index for two images pSrc1 and pSrc2 according to the formula in the introduction section above. The computed value of the index is stored in pQualityIndex.

Return Values

ippStsNoErr

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

ippStsNullPtrErr

Indicates an error when any 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 src1Step or src2Step has a zero or negative value.

ippStsQualityIndexErr

Indicates an error condition if pixel values of one of the images are constant.

ippStsMemAllocErr

Indicates an error condition if memory allocation fails.

Example

QualityIndex.c



See Also

有关编译器优化的更完整信息,请参阅优化通知