iwiSetChannel
iwiSetChannel
Syntax
typedef struct _IwiSetChannelParams
{
int reserved;
} IwiSetChannelParams;
static IW_INLINE void iwiSetChannel_SetDefaultParams(
IwiSetChannelParams *pParams
)
IW_DECL(IppStatus) iwiSetChannel(
double value,
IwiImage *pDstImage,
int channelNum,
const IwiSetChannelParams *pAuxParams,
const IwiTile *pTile
);
Parameters
- value
- Value to set to the image channel.
- pDstImage
- Pointer to the destination image.
- channelNum
- Number of channel to set.
- 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 the selected channel of a multi-channel image to the specified value.
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.