|
|
@ -58,7 +58,8 @@ from .validators import check_prob, check_crop, check_resize_interpolation, chec
|
|
|
|
|
|
|
|
|
|
|
|
DE_C_INTER_MODE = {Inter.NEAREST: cde.InterpolationMode.DE_INTER_NEAREST_NEIGHBOUR,
|
|
|
|
DE_C_INTER_MODE = {Inter.NEAREST: cde.InterpolationMode.DE_INTER_NEAREST_NEIGHBOUR,
|
|
|
|
Inter.LINEAR: cde.InterpolationMode.DE_INTER_LINEAR,
|
|
|
|
Inter.LINEAR: cde.InterpolationMode.DE_INTER_LINEAR,
|
|
|
|
Inter.CUBIC: cde.InterpolationMode.DE_INTER_CUBIC}
|
|
|
|
Inter.CUBIC: cde.InterpolationMode.DE_INTER_CUBIC,
|
|
|
|
|
|
|
|
Inter.AREA: cde.InterpolationMode.DE_INTER_AREA}
|
|
|
|
|
|
|
|
|
|
|
|
DE_C_BORDER_TYPE = {Border.CONSTANT: cde.BorderType.DE_BORDER_CONSTANT,
|
|
|
|
DE_C_BORDER_TYPE = {Border.CONSTANT: cde.BorderType.DE_BORDER_CONSTANT,
|
|
|
|
Border.EDGE: cde.BorderType.DE_BORDER_EDGE,
|
|
|
|
Border.EDGE: cde.BorderType.DE_BORDER_EDGE,
|
|
|
@ -731,6 +732,8 @@ class Resize(cde.ResizeOp):
|
|
|
|
|
|
|
|
|
|
|
|
- Inter.BICUBIC, means interpolation method is bicubic interpolation.
|
|
|
|
- Inter.BICUBIC, means interpolation method is bicubic interpolation.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- Inter.AREA, means interpolation method is pixel area interpolation.
|
|
|
|
|
|
|
|
|
|
|
|
Examples:
|
|
|
|
Examples:
|
|
|
|
>>> from mindspore.dataset.vision import Inter
|
|
|
|
>>> from mindspore.dataset.vision import Inter
|
|
|
|
>>> decode_op = c_vision.Decode()
|
|
|
|
>>> decode_op = c_vision.Decode()
|
|
|
|