Class SpatialWindowImage<T extends Tensor<T>,​P extends SpatialPadding2D<T>>

java.lang.Object
deepboof.impl.forward.standard.BaseFunction<T>
deepboof.impl.forward.standard.BaseSpatialWindow<T,​P>
deepboof.impl.forward.standard.SpatialWindowImage<T,​P>
All Implemented Interfaces:
Function<T>
Direct Known Subclasses:
SpatialConvolve2D_F32, SpatialConvolve2D_F64

public abstract class SpatialWindowImage<T extends Tensor<T>,​P extends SpatialPadding2D<T>>
extends BaseSpatialWindow<T,​P>
Implementation of BaseSpatialWindow which processes the spatial tensor is one image in a mini batch at a time.
  • Field Details

    • output

      protected T extends Tensor<T> output
  • Constructor Details

    • SpatialWindowImage

      public SpatialWindowImage​(ConfigSpatial config, P padding)
  • Method Details

    • forwardImage

      protected void forwardImage​(T input, T output)
    • forwardAt_inner

      protected abstract void forwardAt_inner​(T input, int batch, int inY, int inX, int outY, int outX)
      Applies the operations at the specified window and stores the results at the specified output coordinate.
      Parameters:
      input - Input spatial tensor
      batch - Index of input in mini-batch that is being processed
      inY - y-axis lower extent, in input coordinates
      inX - x-axis lower extent, in input coordinates
      outY - y-axis output coordinates
      outX - x-axis output coordinates
    • forwardAt_border

      protected abstract void forwardAt_border​(P padded, int batch, int padY, int padX, int outY, int outX)
      Applies the operations at the specified window and stores the results at the specified output coordinate. For virtual tensor
      Parameters:
      padded - Padded input spatial virtual tensor
      batch - Index of input in mini-batch that is being processed
      padY - y-axis lower extent, inclusive. Padded coordinates
      padX - x-axis lower extent, inclusive. Padded coordinates
      outY - y-axis output coordinates
      outX - x-axis output coordinates