API function: Blends the input new background image with the existing image, and replaces the background with the new background by using mask.
Formulas:
Each operator has calls. First, aclnnBackgroundReplaceGetWorkspaceSize is called to obtain the input parameters and compute the required workspace size based on the process. Then, aclnnBackgroundReplace is called to perform computation.
[object Object]
[object Object]
Parameters
[object Object]Returns:
[object Object]: status code. For details, see .The first-phase API implements input parameter validation. The following error codes may be returned.
[object Object]
- Deterministic computation:
- aclnnBackgroundReplace defaults to a deterministic implementation.
The following example is for reference only. For details, see .
[object Object]