Multiplies an input image by scalar and optionally converts it to another data type.
Saturate conversion policy is applied to avoid possible overflows.
\[ dst(x,y) = saturate<dstType>(\alpha \cdot src(x,y)) \]
Supported combinations of input/output types:
[Graph] Multiplies an input image by scalar and optionally converts it to another data type.
- Parameters
-
[in] | graph | Specifies the graph. |
[in] | src | Specifies the input image. It must have NVX_DF_IMAGE_2S16 format. |
[out] | dst | Specifies the output image. It must have the same size as input image and NVX_DF_IMAGE_2S16 or NVX_DF_IMAGE_2F32 format. If the output format is not specified for virtual image, it will be set to the same format as input image. |
[in] | alpha | Specifies the \( \alpha \) coefficient. |
- Returns
- A valid node reference or an error object (use vxGetStatus).
[Immediate] Multiplies an input image by scalar and optionally converts it to another data type.
- Parameters
-
[in] | context | Specifies the context. |
[in] | src | Specifies the input image. It must have NVX_DF_IMAGE_2S16 format. |
[out] | dst | Specifies the output image. It must have the same size as input image and NVX_DF_IMAGE_2S16 or NVX_DF_IMAGE_2F32 format. |
[in] | alpha | Specifies the \( \alpha \) coefficient. |
- Returns
- A vx_status enumerator.
- Return values
-
VX_SUCCESS | No errors. |
VX_ERROR_INVALID_REFERENCE | Supplied parameters are not a valid references. |
VX_ERROR_INVALID_PARAMETERS | Supplied parameters are not valid. |
VX_ERROR_INVALID_SCOPE | Supplied parameters are virtual objects that cannot be used in immediate mode. |
VX_FAILURE | Internal error in primitive implementation, check log for detailed information (Framework: Log). |