Please use. NET 5,. NET 6, NET 7,. NET 8, NET Framework 4.6, NET Framework 4.61, NET Framework 4.7, NET Framework 4.72, NET Framework 4.8, NET Framework 4.81, and. NET Core 3.1 versions

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

Definition

Namespace: OpenVinoSharp.preprocess
Assembly: OpenVINO_CSharp_API (in OpenVINO_CSharp_API.dll) Version: 2024.3.0.2+a9617c0f8f80882646d0eba11b88ae6cb17b3fb8
C#
public PreProcessSteps crop(
	int[] begin,
	int[] end
)

Parameters

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

Return Value

PreProcessSteps
Reference to 'this' to allow chaining with other calls in a builder-like manner.

See Also