Developer Reference

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

AddRandGauss

Generates random samples with Gaussian distribution and adds them to an image data.

Syntax

IppStatus ippiAddRandGauss_<mod>
(
Ipp<datatype>*
pSrcDst
,
int
srcDstStep
,
IppiSize
roiSize
,
Ipp<datatype>
mean
,
Ipp<datatype>
stDev
,
unsigned int*
pSeed
);
Supported values for
mod
:
8u_C1IR
16u_C1IR
16s_C1IR
32f_C1IR
8u_C3IR
16u_C3IR
16s_C3IR
32f_C3IR
8u_C4IR
16u_C4IR
16s_C4IR
32f_C4IR
8u_AC4IR
16u_AC4IR
16s_AC4IR
32f_AC4IR
Include Files
ippi.h
Domain Dependencies
Headers:
ippcore.h
,
ippvm.h
,
ipps.h
Libraries:
ippcore.lib
,
ippvm.lib
,
ipps.lib
Parameters
pSrcDst
Pointer to the source and destination image ROI.
srcDstStep
Distance in bytes between starts of consecutive lines in the source and destination image.
roiSize
Size of the image ROI in pixels.
mean
The mean of the Gaussian distribution.
stDev
The standard deviation of the Gaussian distribution.
pSeed
The initial seed value for the pseudo-random number generator.
Description
This function operates with ROI (see Regions of Interest in Intel IPP).
The function generates samples with Gaussian distribution that have the mean value
mean
and standard deviation
stdev
and adds them to a source image ROI pointed to by
pSrcDst
.
The resulting pixel values that exceed the image data range are saturated to the respective data-range limits. To obtain an image which contains pure noise with Gaussian distribution, call
ippiAddRandGauss
using a source image with zero data as input.
Return Values
ippStsNoErr
Indicates no error. Any other value indicates an error or a warning.
ippStsNullPtrErr
Indicates an error condition if
pSrcDst
or
pSeed
pointer is
NULL
.
ippStsSizeErr
Indicates an error condition if
roiSize
has a field with zero or negative value.
ippStsStepErr
Indicates an error condition if
srcDstStep
has 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