hi_vpc_bord_type

Description

Defines the border types for border making.

Prototype

HI_BORDER_CONSTANT    = 0
HI_BORDER_REPLICATE   = 1
HI_BORDER_REFLECT     = 2
HI_BORDER_REFLECT_101 = 3
HI_BORDER_WRAP        = 4

Members

Member

Description

HI_BORDER_CONSTANT

Constant colored border.

HI_BORDER_REPLICATE

Last element replicated throughout.

For example, aaaaaa|a*****h|hhhhhhh, where * indicates any image element.

HI_BORDER_REFLECT

Reflection of border elements (included). Not supported due to hardware restrictions for the Atlas 200I/500 A2 inference products.

For example, ba|abc*******fgh|hg, where * indicates any image element.

HI_BORDER_REFLECT_101

Reflection of border elements (excluded). Not supported due to hardware restrictions for the Atlas 200I/500 A2 inference products.

For example, cb|abc****fgh|gf, where * indicates any image element.

HI_BORDER_WRAP

Replication of the pixels on the opposite border.

For example, gh|abc****fgh|ab, where * indicates any image element.

Reserved, not supported currently.

Precautions

Version

Restriction

Atlas inference products

For HI_BORDER_CONSTANT and HI_BORDER_REPLICATE, the border can be padded to 4096 x 4096.

For HI_BORDER_REFLECT and HI_BORDER_REFLECT_101, only two pixels can be padded for each of the four boundaries.

Atlas 200I/500 A2 inference products

Atlas A3 training products/Atlas A3 inference products

Atlas A2 training products/Atlas A2 inference products

HI_BORDER_CONSTANT and HI_BORDER_REPLICATE allow padding to 4096 x 8192.

For HI_BORDER_REFLECT and HI_BORDER_REFLECT_101, only two pixels can be padded for each of the four boundaries.