Visualisierung 2 CNN
ImageLayer Class Reference
Inheritance diagram for ImageLayer:
Layer

Public Member Functions

 ImageLayer ()
 
override void SetExpansion (float expansion)
 
override void CalcMesh ()
 Calculates and sets the mesh of the Layers game object. More...
 
override List< List< Shape > > GetLineStartShapes (Vector2Int convShape, Vector2Int outputShape, Vector2 theoreticalOutputShape, Vector2Int stride, float allCalcs)
 
override Vector3Int GetOutputShape ()
 
override Vector2Int Get2DOutputShape ()
 Returns a 2d Vector of the layers output shape. More...
 
void SetActivationTensorForEpoch (Array tensor, int epoch)
 
Array GetActivationTensorForEpoch (int epoch)
 
void SetActivationTensorShape (int[] tensorShape)
 
int [] GetActivationTensorShape ()
 
- Public Member Functions inherited from Layer
 Layer ()
 
virtual void Init ()
 
Vector3 CenterPosition ()
 Just returns a Vector on the Z Axis with the correct z positon. More...
 
Vector2Int GetPadding ()
 Calculates rounded padding based on filter size. More...
 
void AddObserver (Layer observer)
 Adds an observer to be notified on parameter changes on this layer to allow downstream updated of dependent layers. More...
 
void RemoveObserver (Layer observer)
 Removes an observer. More...
 
void NotifyObservers ()
 Notifies obsevers that a parameter change has occured. More...
 
Layer GetInputLayer ()
 Get the input layer of this Layer. More...
 
void SetEpoch (int epoch)
 Set the epoch of this layer to load the correct tensor values in the mesh calculation procedure. More...
 

Public Attributes

Vector2Int fullResolution = new Vector2Int(224, 224)
 
int depth = 3
 
bool rgb = true
 
Vector2Int reducedResolution = new Vector2Int(11, 11)
 
float spread = 1.0f
 
float pixelSpacing = 0.05f
 
float xToZ = 0.0f
 
float fullresOffset = 1.0f
 
float nodeSize
 
bool showOriginalResolution = false
 
- Public Attributes inherited from Layer
GameObject _input
 
Vector2Int reducedShape
 
Vector2Int stride = new Vector2Int(1, 1)
 
bool padding = true
 
float pointBrightness = 1.0f
 
float zOffset = 1.0f
 
float _scale = 1.0f
 
int epoch = 0
 

Protected Member Functions

override void UpdateForParams ()
 
void AddNodes (List< Vector3 > verts, List< int > inds, List< int > fullResInds, List< int > lineInds)
 
override List< ShapeGetPointShapes ()
 
- Protected Member Functions inherited from Layer
virtual void SubUpdate ()
 
float ZPosition ()
 Recursively returns the right ZOffset based on input layers. More...
 
void OnValidate ()
 Called after each parameter change in the editor. Contains main update procedures. More...
 
virtual void AddNodes (List< Vector3 > verts, List< int > inds)
 Adds the "pixels" to the mesh. More...
 
Vector3 GetEdgeBundleCenter (Vector3 originalPoint, float edgeBundle)
 Returns the edgebundle position for the corresponding point. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from Layer
static int [] GetMultiDimIndices (int[] shape, int singleDimInd)
 Returns a multi dimensional index from a single dimensional one based on the shape of the multidimensional array. More...
 
- Protected Attributes inherited from Layer
Layer _inputLayer
 
Mesh _mesh
 
Renderer _renderer
 
bool _initialized = false
 
Vector2Int _tempRes = new Vector2Int(5, 5)
 
bool renderColored = false
 

Constructor & Destructor Documentation

◆ ImageLayer()

ImageLayer.ImageLayer ( )

Member Function Documentation

◆ AddNodes()

void ImageLayer.AddNodes ( List< Vector3 >  verts,
List< int >  inds,
List< int >  fullResInds,
List< int >  lineInds 
)
protected

◆ CalcMesh()

override void ImageLayer.CalcMesh ( )
virtual

Calculates and sets the mesh of the Layers game object.

Reimplemented from Layer.

◆ Get2DOutputShape()

override Vector2Int ImageLayer.Get2DOutputShape ( )
virtual

Returns a 2d Vector of the layers output shape.

Returns

Reimplemented from Layer.

◆ GetActivationTensorForEpoch()

Array ImageLayer.GetActivationTensorForEpoch ( int  epoch)

◆ GetActivationTensorShape()

int [] ImageLayer.GetActivationTensorShape ( )

◆ GetLineStartShapes()

override List<List<Shape> > ImageLayer.GetLineStartShapes ( Vector2Int  convShape,
Vector2Int  outputShape,
Vector2  theoreticalOutputShape,
Vector2Int  stride,
float  allCalcs 
)
virtual

Implements Layer.

◆ GetOutputShape()

override Vector3Int ImageLayer.GetOutputShape ( )
virtual

Implements Layer.

◆ GetPointShapes()

override List<Shape> ImageLayer.GetPointShapes ( )
protectedvirtual

Implements Layer.

◆ SetActivationTensorForEpoch()

void ImageLayer.SetActivationTensorForEpoch ( Array  tensor,
int  epoch 
)

◆ SetActivationTensorShape()

void ImageLayer.SetActivationTensorShape ( int []  tensorShape)

◆ SetExpansion()

override void ImageLayer.SetExpansion ( float  expansion)
virtual

Reimplemented from Layer.

◆ UpdateForParams()

override void ImageLayer.UpdateForParams ( )
protectedvirtual

Reimplemented from Layer.

Member Data Documentation

◆ depth

int ImageLayer.depth = 3

◆ fullresOffset

float ImageLayer.fullresOffset = 1.0f

◆ fullResolution

Vector2Int ImageLayer.fullResolution = new Vector2Int(224, 224)

◆ nodeSize

float ImageLayer.nodeSize

◆ pixelSpacing

float ImageLayer.pixelSpacing = 0.05f

◆ reducedResolution

Vector2Int ImageLayer.reducedResolution = new Vector2Int(11, 11)

◆ rgb

bool ImageLayer.rgb = true

◆ showOriginalResolution

bool ImageLayer.showOriginalResolution = false

◆ spread

float ImageLayer.spread = 1.0f

◆ xToZ

float ImageLayer.xToZ = 0.0f

The documentation for this class was generated from the following file: