Class ImageFrame
Image dataframe to hold images
Inherited Members
Namespace: SiaNet.Data
Assembly: SiaNet.dll
Syntax
public class ImageFrame : DataFrame
Constructors
| Improve this Doc View SourceImageFrame(Tensor)
Initializes a new instance of the ImageFrame class.
Declaration
public ImageFrame(Tensor imageTensor)
Parameters
Type | Name | Description |
---|---|---|
Tensor | imageTensor | The image tensor. |
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. |
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. |