[object Object][object Object][object Object]undefined
[object Object]
  • API function: Blends the input new background image with the existing image, and replaces the background with the new background by using mask.

  • Formulas:

    out=bkg(1mask)+srcmaskout = bkg * (1 - mask) + src * mask
[object Object]

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]
[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]
[object Object]
  • Parameters

    [object Object]
  • Returns:

    [object Object]: status code. For details, see .

[object Object]
  • Deterministic computation:
    • aclnnBackgroundReplace defaults to a deterministic implementation.
[object Object]

The following example is for reference only. For details, see .

[object Object]