mindspore.dataset.vision.Border

class mindspore.dataset.vision.Border(value)[source]

Padding Mode, Border Type.

Possible enumeration values are: Border.CONSTANT, Border.EDGE, Border.REFLECT, Border.SYMMETRIC.

  • Border.CONSTANT: means it fills the border with constant values.

  • Border.EDGE: means it pads with the last value on the edge.

  • Border.REFLECT: means it reflects the values on the edge omitting the last value of edge.

  • Border.SYMMETRIC: means it reflects the values on the edge repeating the last value of edge.

Note: This class derived from class str to support json serializable.