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

ImageDataF 类

Specialized floating-point image container optimized for machine learning operations 专为机器学习优化的浮点图像容器

Definition

命名空间: DeploySharp.Data
程序集: DeploySharp (在 DeploySharp.dll 中) 版本:0.0.4+6e8a2e904469617cd59619d666c0e272985c0e33
C#
public class ImageDataF : ImageData<float>
Inheritance
Object    ImageDataSingle    ImageDataF

备注

Inherits from [!:ImageData<float>] adding float-specific functionality: - High-precision image operations - Normalization/denormalization - Direct float buffer access - Mathematical operations 继承自[!:ImageData<float>]并添加浮点专用功能: - 高精度图像操作 - 归一化/反归一化 - 直接浮点缓冲区访问 - 数学运算

构造函数

ImageDataF(Int32, Int32, Int32, ImageDataSingleDataFormat) Initializes a new blank float image with specified dimensions 使用指定尺寸初始化新的空白浮点图像
ImageDataF(Single, Int32, Int32, Int32, ImageDataSingleDataFormat) Initializes a new float image from existing data 从现有数据初始化新的浮点图像

属性

Channels Number of color channels 颜色通道数
(继承自 ImageDataT。)
Format Data layout format 数据布局格式
(继承自 ImageDataT。)
Height Image height in pixels 图像高度(像素)
(继承自 ImageDataT。)
Item Gets or sets a single channel pixel value (CHW format only) 获取或设置单个通道像素值(仅CHW格式)
(继承自 ImageDataT。)
Length Total number of elements in the buffer 缓冲区中的元素总数
(继承自 ImageDataT。)
Width Image width in pixels 图像宽度(像素)
(继承自 ImageDataT。)

方法

Clear Clears the image buffer (sets all elements to default(T)) 清除图像缓冲区(将所有元素设置为default(T))
(继承自 ImageDataT。)
Clone Creates a deep copy of the image 创建图像的深拷贝
(继承自 ImageDataT。)
EqualsDetermines whether the specified object is equal to the current object.
(继承自 Object。)
Fill Fills the image buffer with specified value 使用指定值填充图像缓冲区
(继承自 ImageDataT。)
FinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(继承自 Object。)
GetChannelSpan Gets a span covering all pixels in specified channel (CHW format only) 获取覆盖指定通道所有像素的Span(仅CHW格式)
(继承自 ImageDataT。)
GetHashCodeServes as the default hash function.
(继承自 Object。)
GetPixel Gets all components of a pixel (HWC format only) 获取像素的所有分量(仅HWC格式)
(继承自 ImageDataT。)
GetRawData
(继承自 ImageDataT。)
GetRawFloatData Gets direct access to the underlying float array 直接访问底层浮点数组
GetRawSpan Gets direct access to the underlying buffer span 直接访问底层缓冲区Span
(继承自 ImageDataT。)
GetTypeGets the Type of the current instance.
(继承自 Object。)
MemberwiseCloneCreates a shallow copy of the current Object.
(继承自 Object。)
SetPixel Sets all components of a pixel (HWC format only) 设置像素的所有分量(仅HWC格式)
(继承自 ImageDataT。)
ToStringReturns a string that represents the current object.
(继承自 Object。)

扩展方法

ToMat Converts ImageDataB to OpenCvSharp Mat; 将ImageDataB转换为 OpenCvSharp Mat;
(由 CvDataExtensions 定义。)

参见