SetReferRect

Function Usage

The tensor reference region can be set. The dimensions of NHWC (N = 1), HWC, and HW are supported. The channel is 1, 3, or 4. The width and height of the reference rectangle cannot exceed those of the original image.

Only Atlas inference products support this API.

Prototype

1
APP_ERROR Tensor::SetReferRect(Rect rect);

Parameters

Parameter

Input/Output

Description

rect

Input

Rectangle of the input image. x0 < x1, y0 < y1. Data type. For details, see Rect.

Response Parameters

Data Structure

Description

APP_ERROR

For details about the returned error codes, see APP_ERROR Description.