InputTensorInfoset_color_format Method
Set color format for user's input tensor.
Namespace: OpenVinoSharp.preprocessAssembly: OpenVINO_CSharp_API (in OpenVINO_CSharp_API.dll) Version: 2024.3.0.2+a9617c0f8f80882646d0eba11b88ae6cb17b3fb8
public InputTensorInfo set_color_format(
ColorFormat format,
params string[] properties
)
- 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[])"]
InputTensorInfoReference to 'this' to allow chaining with other calls in a builder-like manner.
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})