Package deepboof.impl.forward.standard
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 Summary
FieldsFields inherited from class deepboof.impl.forward.standard.BaseSpatialWindow
C, config, H, HH, Ho, Hp, N, padding, W, Wo, Wp, WWFields inherited from class deepboof.impl.forward.standard.BaseFunction
miniBatchSize, parameters, shapeInput, shapeOutput, shapeParameters -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract voidforwardAt_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.protected abstract voidforwardAt_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.protected voidforwardImage(T input, T output) Methods inherited from class deepboof.impl.forward.standard.BaseSpatialWindow
_initialize, getPadding, innerLowerExtent, innerUpperExtent, isEntirelyBorderMethods inherited from class deepboof.impl.forward.standard.BaseFunction
_forward, _setParameters, forward, getOutputShape, getParameters, getParameterShapes, initialize, setParametersMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface deepboof.Function
getTensorType
-
Field Details
-
output
-
-
Constructor Details
-
SpatialWindowImage
-
-
Method Details
-
forwardImage
-
forwardAt_inner
Applies the operations at the specified window and stores the results at the specified output coordinate.- Parameters:
input- Input spatial tensorbatch- Index of input in mini-batch that is being processedinY- y-axis lower extent, in input coordinatesinX- x-axis lower extent, in input coordinatesoutY- y-axis output coordinatesoutX- 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 tensorbatch- Index of input in mini-batch that is being processedpadY- y-axis lower extent, inclusive. Padded coordinatespadX- x-axis lower extent, inclusive. Padded coordinatesoutY- y-axis output coordinatesoutX- x-axis output coordinates
-