Developer Reference

  • 2020
  • 07/15/2020
  • Public Content
Contents

ColorTwist

Applies a color twist matrix to an image with floating-point pixel values.

Syntax

Case 1: Not-in-place operation on pixel-order data
IppStatus ippiColorTwist_<mod>(const Ipp32f*
pSrc
, int
srcStep
, Ipp32f*
pDst
, int
dstStep
, IppiSize
roiSize
, const Ipp32f
twist
[3][4]
);
Supported values for
mod
:
32f_C3R
32f_AC4R
IppStatus ippiColorTwist_32f_C4R(const Ipp32f*
pSrc
, int
srcStep
, Ipp32f*
pDst
, int
dstStep
, IppiSize
roiSize
, const Ipp32f
twist
[4][4]
);
Case 2: Not-in-place operation on planar data
IppStatus ippiColorTwist_32f_P3R(const Ipp32f*
pSrc
[3], int
srcStep
, Ipp32f*
pDst
[3], int
dstStep
, IppiSize
roiSize
, const Ipp32f
twist
[3][4]
);
Case 3: In-place operation on pixel-order data
IppStatus ippiColorTwist_<mod>(Ipp32f*
pSrcDst
, int
srcDstStep
, IppiSize
roiSize
, const Ipp32f
twist
[3][4]
);
Supported values for
mod
:
32f_C3IR
32f_AC4IR
Case 4: In-place operation on planar data
IppStatus ippiColorTwist_32f_IP3R(Ipp32f*
pSrcDst
[3], int
srcDstStep
, IppiSize
roiSize
, const Ipp32f
twist
[3][4]
);
Include Files
ippcc.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 destination image ROI.
dstStep
Distance in bytes between starts of consecutive lines in the destination image.
pSrcDst
Pointer to the source and destination image ROI for the in-place operation.
srcDstStep
Distance in bytes between starts of consecutive lines in the source and destination image for the in-place operation.
roiSize
Size of the source and destination ROI in pixels.
twist
The array containing color-twist matrix elements.
Description
This function operates with ROI (see Regions of Interest in Intel IPP).
This function applies the color-twist matrix to all three color channels in the source image with floating-point pixel values to obtain the resulting data in the destination image. The destination channel value is obtained as the result of multiplying the corresponding row of the color-twist matrix by the vector of source pixel channel values.
Return Values
ippStsNoErr
Indicates no error. Any other value indicates an error.
ippStsNullPtrErr
Indicates an error condition if
pSrc
,
pDst
, or
pSrcDst
is
NULL
.
ippStsSizeErr
Indicates an error condition if
roiSize
has a field with a zero or negative value.

Product and Performance Information

1

Intel's compilers may or may not optimize to the same degree for non-Intel microprocessors for optimizations that are not unique to Intel microprocessors. These optimizations include SSE2, SSE3, and SSSE3 instruction sets and other optimizations. Intel does not guarantee the availability, functionality, or effectiveness of any optimization on microprocessors not manufactured by Intel. Microprocessor-dependent optimizations in this product are intended for use with Intel microprocessors. Certain optimizations not specific to Intel microarchitecture are reserved for Intel microprocessors. Please refer to the applicable product User and Reference Guides for more information regarding the specific instruction sets covered by this notice.

Notice revision #20110804