Compare to a threshold value, replace with inverted threshold value
MT, SSE2, Family10h
FwStatus | fwsThreshold_LTInv_32f | ( | const Fw32f * pSrc, Fw32f * pDst, int len, Fw32f level ); | |
FwStatus | fwsThreshold_LTInv_64f | ( | const Fw64f * pSrc, Fw64f * pDst, int len, Fw64f level ); | |
FwStatus | fwsThreshold_LTInv_32fc | ( | const Fw32fc * pSrc, Fw32fc * pDst, int len, Fw32f level ); | |
FwStatus | fwsThreshold_LTInv_64fc | ( | const Fw64fc * pSrc, Fw64fc * pDst, int len, Fw64f level ); | |
FwStatus | fwsThreshold_LTInv_32f_I | ( | Fw32f * pSrcDst, int len, Fw32f level ); | |
FwStatus | fwsThreshold_LTInv_64f_I | ( | Fw64f * pSrcDst, int len, Fw64f level ); | |
FwStatus | fwsThreshold_LTInv_32fc_I | ( | Fw32fc * pSrcDst, int len, Fw32f level ); | |
FwStatus | fwsThreshold_LTInv_64fc_I | ( | Fw64fc * pSrcDst, int len, Fw64f level ); |
len | Specifies the number of elements in a buffer. | |
level | Specifies a threshold level. | |
pDst | Pointer to a destination buffer. | |
pSrc | Pointer to a source buffer. | |
pSrcDst | Pointer to a buffer that is both the source and destination. |
These functions step through vector elements in a source buffer and compare source data to a specified threshold value.
When the source data is less than the threshold value, the function writes the inverse of the threshold value.
When the source data is greater than or equal to the threshold value, the function writes the inverse of the source value.
Output data can be written to a destination buffer or back to the source buffer for in-place operation.
The following evaluation formulas are used.
|1/level, abs(pSrc[n])= 0 | For fwsThreshold_LTInv: pDst[n] = |abs(pSrc[n])/(pSrc[n] * level), 0<abs(pSrc[n])<level | |1/pSrc[n], abs(pSrc[n])>level or abs(pSrc[n])<0 | |Infinity, abs(pSrc[n])= 0 | if level = 0: pDst[n] = | | |1/pSrc[n], abs(pSrc[n]) > 0|