Class TextureAsTensorData
Inheritance
TextureAsTensorData
Syntax
public class TextureAsTensorData : ITensorData, IDisposable
Constructors
TextureAsTensorData(Texture, Int32, TextureAsTensorData.Flip, TextureAsTensorData.InterpretDepthAs, TextureAsTensorData.InterpretColorAs)
Declaration
public TextureAsTensorData(Texture texture, int interpretPixelAsChannels = 3, TextureAsTensorData.Flip flip = TextureAsTensorData.Flip.Y, TextureAsTensorData.InterpretDepthAs depthAs = TextureAsTensorData.InterpretDepthAs.Batch, TextureAsTensorData.InterpretColorAs colorAs = TextureAsTensorData.InterpretColorAs.AverageMultipleChannels)
Parameters
TextureAsTensorData(Texture[], Int32, TextureAsTensorData.Flip, TextureAsTensorData.InterpretDepthAs, TextureAsTensorData.InterpretColorAs)
Declaration
public TextureAsTensorData(Texture[] textures, int interpretPixelAsChannels = 3, TextureAsTensorData.Flip flip = TextureAsTensorData.Flip.Y, TextureAsTensorData.InterpretDepthAs depthAs = TextureAsTensorData.InterpretDepthAs.Batch, TextureAsTensorData.InterpretColorAs colorAs = TextureAsTensorData.InterpretColorAs.AverageMultipleChannels)
Parameters
Properties
flip
Declaration
public TextureAsTensorData.Flip flip { get; }
Property Value
interpretColorAs
Declaration
public TextureAsTensorData.InterpretColorAs interpretColorAs { get; }
Property Value
interpretDepthAs
Declaration
public TextureAsTensorData.InterpretDepthAs interpretDepthAs { get; }
Property Value
interpretPixelAsChannels
Declaration
public int interpretPixelAsChannels { get; }
Property Value
shape
Declaration
public TensorShape shape { get; }
Property Value
textures
Declaration
public Texture[] textures { get; }
Property Value
Type |
Description |
Texture[] |
|
Methods
Dispose()
Declaration
public virtual void Dispose()
Download(Int32)
Declaration
public virtual float[] Download(int count)
Parameters
Type |
Name |
Description |
Int32 |
count |
|
Returns
Implements
GetMaxCount()
Declaration
public virtual int GetMaxCount()
Returns
Implements
Reserve(Int32)
Declaration
public virtual void Reserve(int count)
Parameters
Type |
Name |
Description |
Int32 |
count |
|
Implements
ScheduleAsyncDownload(Int32)
Declaration
public virtual bool ScheduleAsyncDownload(int count)
Parameters
Type |
Name |
Description |
Int32 |
count |
|
Returns
Implements
SharedAccess(out Int32)
Declaration
public virtual float[] SharedAccess(out int offset)
Parameters
Type |
Name |
Description |
Int32 |
offset |
|
Returns
Implements
Upload(Single[], Int32, Int32)
Declaration
public virtual void Upload(float[] data, int offset = 0, int count = -1)
Parameters
Implements