SetValidRoi
Function Usage
Sets a tensor valid region. NHWC (N = 1), HWC, and HW dimensions are supported. The width and height of the valid region cannot exceed those of the original image.
Prototype
1 | APP_ERROR Tensor::SetValidRoi(Rect rect); |
Parameters
Parameter |
Input/Output |
Description |
|---|---|---|
rect |
Input |
Coordinate box of the input image. For details about the data type, see Rect. The start coordinates (x0, y0) must be (0, 0). |
Response Parameters
Data Structure |
Description |
|---|---|
APP_ERROR |
For details about the returned error codes, see APP_ERROR Description. |
Parent topic: Tensor