Class CropAndResize

Inheritance Relationships

Base Type

  • public mindspore::ops::BaseOperator

Class Documentation

class CropAndResize : public mindspore::ops::BaseOperator

Extracts crops from the input image tensor and resizes them. Refer to Python API mindspore.ops.CropAndResize for more details.

Public Functions

inline CropAndResize()

Constructor.

void Init(ResizeMethod method, float extrapolation_value)

Init. Refer to the parameters of Python API mindspore.ops.CropAndResize for the inputs.

void set_method(ResizeMethod method)

Set method.

void set_extrapolation_value(float extrapolation_value)

Set extrapolation_value.

ResizeMethod get_method() const

Get method.

Returns

method.

float get_extrapolation_value() const

Get extrapolation_value.

Returns

extrapolation_value.