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

InputTensorInfoset_color_format Method

Set color format for user's input tensor.

Definition

Namespace: OpenVinoSharp.preprocess
Assembly: OpenVINO_CSharp_API (in OpenVINO_CSharp_API.dll) Version: 2024.3.0.2+a9617c0f8f80882646d0eba11b88ae6cb17b3fb8
C#
public InputTensorInfo set_color_format(
	ColorFormat format,
	params string[] properties
)

Parameters

format  ColorFormat
Color format of input image.
properties  String

[Missing <param name="properties"/> documentation for "M:OpenVinoSharp.preprocess.InputTensorInfo.set_color_format(OpenVinoSharp.preprocess.ColorFormat,System.String[])"]

Return Value

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

Remarks

In general way, some formats support multi-plane input, e.g. NV12 image can be represented as 2 separate tensors (planes): Y plane and UV plane. set_color_format API also allows to set sub_names for such parameters for convenient usage of plane parameters. During build stage, new parameters for each plane will be inserted to the place of original parameter. This means that all parameters located after will shift their positions accordingly (e.g. {param1, param2} will become {param1/Y, param1/UV, param2})

See Also