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

ImageDataB 类

Specialized byte-based image container with additional image processing operations 专门针对字节数据的图像容器,提供额外的图像处理操作

Definition

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

备注

Inherits from [!:ImageData<byte>] adding byte-specific functionality: - Direct byte array access - Common image processing operations - Format conversion helpers 继承自[!:ImageData<byte>]并添加字节专用功能: - 直接字节数组访问 - 常见图像处理操作 - 格式转换助手

构造函数

ImageDataB(Int32, Int32, Int32, ImageDataByteDataFormat) Initializes a new blank byte image with specified dimensions 使用指定尺寸初始化新的空白字节图像
ImageDataB(Byte, Int32, Int32, Int32, ImageDataByteDataFormat) Initializes a new byte 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。)
GetRawByteData Gets direct access to the underlying byte array 直接访问底层字节数组
GetRawData
(继承自 ImageDataT。)
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。)

扩展方法

ToImage Converts ImageDataB to ImageSharp Image<Rgb24> 将ImageDataB转换为ImageSharp的Image<Rgb24>
(由 CvDataExtensions 定义。)
ToMat Converts ImageDataB to OpenCvSharp Mat; 将ImageDataB转换为 OpenCvSharp Mat;
(由 CvDataExtensions 定义。)

参见