iwiSet
iwiSet
Syntax
typedef struct _IwiSetParams
{
int reserved;
} IwiSetParams;
static IW_INLINE void iwiSet_SetDefaultParams(
IwiSetParams *pParams
)
IW_DECL(IppStatus) iwiSet(
const double *pValues,
int valuesNum,
IwiImage *pDstImage,
const IwiImage *pMaskImage,
const IwiSetParams *pAuxParams,
const IwiTile *pTile
);
Parameters
- pValues
- Pointer to the array of values. The array must contain one element for each channel.
- valuesNum
- Number of value elements. IfvaluesNumis more than the number of channels, exceeding values are ignored. IfvaluesNumis less than the number of channels, the last value is replicated for the remaining channels.
- pDstImage
- Pointer to the destination image.
- pMaskImage
- Pointer to the mask image.
- pAuxParams
- Pointer to the auxiliary parameters structure. IfNULL, default parameters are used.
- pTile
- Pointer to theIwiTilestructure for tiling. IfNULL, the whole image is processed.
Auxiliary Arguments
Argument | Default Value | Description |
---|---|---|
reserved | 0 | Reserved value. |
Description
This function sets each channel of the image to an element of the
pValue
array with masking.If the mask image is
NULL
, the function performs regular set operation. Otherwise, the function sets image pixel values only if the corresponding values of the mask image pixels are non-zero.This function supports the following features:
Feature | Support |
---|---|
Internal threading | No |
Manual tiling | Yes |
IwiTile simple tiling | Yes |
IwiTile pipeline tiling | Yes |
Return Values
- ippStsDataTypeErr
- ThedataTypevalue is illegal.
- ippStsNumChannelsErr
- Thechannelsvalue is illegal.
- ippStsSizeErr
- Values of thesizefields are illegal.
- ippStsNullPtrErr
- At least one of the pointers (exceptpTile) isNULL.
- ippStsNoErr
- No errors.