Visible to Intel only — GUID: GUID-E9BA5D27-EBBF-4650-8762-A7D56302886F
Visible to Intel only — GUID: GUID-E9BA5D27-EBBF-4650-8762-A7D56302886F
VectorSlope
Creates a slope vector.
Syntax
IppStatus ippsVectorSlope_8u(Ipp8u* pDst, int len, Ipp32f offset, Ipp32f slope);
IppStatus ippsVectorSlope_16u(Ipp16u* pDst, int len, Ipp32f offset, Ipp32f slope);
IppStatus ippsVectorSlope_16s(Ipp16s* pDst, int len, Ipp32f offset, Ipp32f slope);
IppStatus ippsVectorSlope_32u(Ipp32u* pDst, int len, Ipp64f offset, Ipp64f slope);
IppStatus ippsVectorSlope_32s(Ipp32s* pDst, int len, Ipp64f offset, Ipp64f slope);
IppStatus ippsVectorSlope_32f(Ipp32f* pDst, int len, Ipp32f offset, Ipp32f slope);
IppStatus ippsVectorSlope_64f(Ipp64f* pDst, int len, Ipp64f offset, Ipp64f slope);
Include Files
ipps.h
Domain Dependencies
Headers: ippcore.h, ippvm.h
Libraries: ippcore.lib, ippvm.lib
Parameters
pDst |
Pointer to the destination vector. |
len |
Number of elements in the vector. |
offset |
Offset value. |
slope |
Slope coefficient. |
Description
This function creates a slope vector and stores the result in pDst. The destination vector elements are computed according to the following formula:
pDst[n] = offset + slope*n, 0 ≤ n < len.
Return Values
ippStsNoErr |
Indicates no error. |
ippStsNullPtrErr |
Indicates an error when the pDst pointer is NULL. |
ippStsSizeErr |
Indicates an error when len is less than or equal to 0. |