PreProcessStepscrop(Int32, Int32) Method
Crop input tensor between begin and end coordinates. Under the hood, inserts `opset8::Slice` operation to
execution graph. It is recommended to use to together with `ov::preprocess::InputTensorInfo::set_shape` to set
original input shape before cropping
Namespace: OpenVinoSharp.preprocessAssembly: OpenVINO_CSharp_API (in OpenVINO_CSharp_API.dll) Version: 2024.3.0.2+a9617c0f8f80882646d0eba11b88ae6cb17b3fb8
public PreProcessSteps crop(
int[] begin,
int[] end
)
- begin Int32
- Begin indexes for input tensor cropping. Negative values represent counting elements from the end
of input tensor
- end Int32
- End indexes for input tensor cropping. End indexes are exclusive, which means values including end
edge are not included in the output slice. Negative values represent counting elements from the end of input tensor
PreProcessStepsReference to 'this' to allow chaining with other calls in a builder-like manner.