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

VisualizeGetSafeRectangle 方法

将矩形调整到图像范围内

Definition

命名空间: DeploySharp.Data
程序集: DeploySharp.OpenCvSharp (在 DeploySharp.OpenCvSharp.dll 中) 版本:0.0.4+6e8a2e904469617cd59619d666c0e272985c0e33
C#
private static Rect GetSafeRectangle(
	Rect rect,
	int imgWidth,
	int imgHeight
)

参数

rect  Rect

[缺少 "M:DeploySharp.Data.Visualize.GetSafeRectangle(OpenCvSharp.Rect,System.Int32,System.Int32)" 的 <param name="rect"/> 文档]

imgWidth  Int32

[缺少 "M:DeploySharp.Data.Visualize.GetSafeRectangle(OpenCvSharp.Rect,System.Int32,System.Int32)" 的 <param name="imgWidth"/> 文档]

imgHeight  Int32

[缺少 "M:DeploySharp.Data.Visualize.GetSafeRectangle(OpenCvSharp.Rect,System.Int32,System.Int32)" 的 <param name="imgHeight"/> 文档]

返回值

Rect

[缺少 "M:DeploySharp.Data.Visualize.GetSafeRectangle(OpenCvSharp.Rect,System.Int32,System.Int32)" 的 <returns> 文档]

参见