hi_transform_config

Description

Defines the affine transformation, perspective transformation, or remapping configuration.

Prototype

hi_transform_config = {"interpolation": interpolation,
                       "border_type": hi_vpc_bord_type,
                       "scalar_value": hi_vpc_scalar}

Members

Member

Description

interpolation

Int. The following resizing algorithms are supported:

Atlas 200I/500 A2 inference products support the following resizing algorithms:
  • 0: the conventional bilinear algorithm
  • 1: the conventional nearest neighbor algorithm.
Atlas A2 training products/Atlas A2 inference products support the following resizing algorithms:
  • 0: the conventional bilinear algorithm
  • 1: the conventional nearest neighbor algorithm.
Atlas A3 training products/Atlas A3 inference products support the following resizing algorithms:
  • 0: the conventional bilinear algorithm
  • 1: the conventional nearest neighbor algorithm

border_type

Int, border making type.

Atlas 200I/500 A2 inference products support the following values:
  • 0: fixed value of the register.
  • 1: border replication mode.
Atlas A2 training products/Atlas A2 inference products support the following values:
  • 0: fixed value of the register.
  • 1: border replication mode.
Atlas A3 training products/Atlas A3 inference products support the following values:
  • 0: fixed value of the register.
  • 1: border replication mode.

scalar_value

Dictionary, pixel value for image padding. Only three channels are supported.

For Atlas 200I/500 A2 inference products: If the input image format is YUV400, val[0] stores the Y component. val[1], val[2], and val[3] are reserved and need to be initialized to 0.

For Atlas A2 training products/Atlas A2 inference products: If the input image format is YUV400, val[0] stores the Y component. val[1], val[2], and val[3] are reserved and need to be initialized to 0.

For Atlas A3 training products/Atlas A3 inference products: If the input image format is YUV400, val[0] stores the Y component. val[1], val[2], and val[3] are reserved and need to be initialized to 0.