hi_vpc_bord_type

Description

Defines the border types for border making.

Prototype

typedef enum {
    HI_BORDER_CONSTANT = 0,
    HI_BORDER_REPLICATE,
    HI_BORDER_REFLECT,
    HI_BORDER_REFLECT_101,
    HI_BORDER_WRAP
} hi_vpc_bord_type;

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). Atlas 200I/500 A2 inference product : This option is not supported due to hardware restrictions.

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

HI_BORDER_REFLECT_101

Reflection of border elements (excluded). Atlas 200I/500 A2 inference product : This option is not supported due to hardware restrictions.

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.

Considerations

Version

Restriction

Atlas inference product

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

HI_BORDER_REFLECT and HI_BORDER_REFLECT_101 allow only two pixels to be padded on each of the four boundaries.

Atlas 350 Accelerator Card

Atlas A3 training product/Atlas A3 inference product

Atlas A2 training product/Atlas A2 inference product

Atlas 200I/500 A2 inference product

HI_BORDER_CONSTANT and HI_BORDER_REPLICATE allow padding to 4096 x 8192.

HI_BORDER_REFLECT and HI_BORDER_REFLECT_101 allow only two pixels to be padded on each of the four boundaries.