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

CvDataProcessorNormalize(Mat, Single, Single, Boolean) 方法

Normalizes image with mean subtraction and scaling 使用均值减除和缩放标准化图像

Definition

命名空间: DeploySharp.Data
程序集: DeploySharp.OpenCvSharp (在 DeploySharp.OpenCvSharp.dll 中) 版本:0.0.4+6e8a2e904469617cd59619d666c0e272985c0e33
C#
public static float[] Normalize(
	Mat im,
	float[] mean,
	float[] scale,
	bool isScale
)

参数

im  Mat
Source image/源图像
mean  Single
Channel means/通道均值
scale  Single
Channel scales/通道缩放
isScale  Boolean
Whether to apply 0-1 scaling/是否应用0-1缩放

返回值

Single
Normalized float array/标准化后的浮点数组

备注

Uses parallel processing for better performance on large images 对大图像使用并行处理以提高性能

参见