Show / Hide Table of Contents

Class ImageFrame

Image dataframe to hold images

Inheritance
System.Object
DataFrame
ImageFrame
Inherited Members
DataFrame.Shape
DataFrame.Reshape(Int64[])
DataFrame.GetTensor()
DataFrame.ToFrame(Tensor)
DataFrame.Item[UInt32, UInt32]
DataFrame.Item[UInt32]
DataFrame.GetBatch(Int32, Int32, Int32)
DataFrame.Head(UInt32, String)
Namespace: SiaNet.Data
Assembly: SiaNet.dll
Syntax
public class ImageFrame : DataFrame

Constructors

| Improve this Doc View Source

ImageFrame(Tensor)

Initializes a new instance of the ImageFrame class.

Declaration
public ImageFrame(Tensor imageTensor)
Parameters
Type Name Description
Tensor imageTensor

The image tensor.

| Improve this Doc View Source

ImageFrame(Bitmap, Nullable<Int32>, Nullable<Int32>)

Initializes a new instance of the ImageFrame class.

Declaration
public ImageFrame(Bitmap img, int? width = default(int? ), int? height = default(int? ))
Parameters
Type Name Description
System.Drawing.Bitmap img

The img in bitmap format.

System.Nullable<System.Int32> width

The width to resize the image.

System.Nullable<System.Int32> height

The height to resize the image.

| Improve this Doc View Source

ImageFrame(String, Nullable<Int32>, Nullable<Int32>)

Initializes a new instance of the ImageFrame class.

Declaration
public ImageFrame(string imagePath, int? width = default(int? ), int? height = default(int? ))
Parameters
Type Name Description
System.String imagePath

The image path.

System.Nullable<System.Int32> width

The width to resize the image.

System.Nullable<System.Int32> height

The height to resize the image.

See Also

DataFrame
  • Improve this Doc
  • View Source
Back to top Generated by DocFX