Package deepboof.impl.forward.standard
Class ClippedPadding2D_F64
java.lang.Object
deepboof.BaseTensor
deepboof.impl.forward.standard.BaseSpatialPadding2D<Tensor_F64>
deepboof.forward.SpatialPadding2D_F64
deepboof.impl.forward.standard.ClippedPadding2D_F64
- All Implemented Interfaces:
ClippedPadding2D<Tensor_F64>,SpatialPadding2D<Tensor_F64>,ITensor,VTensor_F64,VTensor
public class ClippedPadding2D_F64 extends SpatialPadding2D_F64 implements ClippedPadding2D<Tensor_F64>
Implementation of
ConstantPadding2D_F64.-
Field Summary
-
Constructor Summary
Constructors Constructor Description ClippedPadding2D_F64(ConfigPadding config) -
Method Summary
Modifier and Type Method Description doubleborderGet(int minibatch, int channel, int row, int col)Handles coordinates outside the input imageintgetClippingOffsetCol(int paddedCol)Returns how far away the column is from the clipping border.intgetClippingOffsetRow(int paddedRow)Returns how far away the row is from the clipping border.java.lang.Class<Tensor_F64>getTensorType()Returns the type of input tensor it can processbooleanisClipped()Returns true if this is a clipped border or false of it is not.Methods inherited from class deepboof.forward.SpatialPadding2D_F64
get, get, get, get, get, get, getDataTypeMethods inherited from class deepboof.impl.forward.standard.BaseSpatialPadding2D
checkBackwardsShapeChannel, checkBackwardsShapeImage, getPaddingCol0, getPaddingCol1, getPaddingRow0, getPaddingRow1, setInput, shapeGivenInputMethods inherited from class deepboof.BaseTensor
createCoor, getDimension, getShape, isShape, lengthMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface deepboof.ITensor
createCoor, getDataType, getDimension, getShape, isShape, lengthMethods inherited from interface deepboof.forward.SpatialPadding2D
getPaddingCol0, getPaddingCol1, getPaddingRow0, getPaddingRow1, setInput, shapeGivenInput
-
Constructor Details
-
Method Details
-
borderGet
public double borderGet(int minibatch, int channel, int row, int col)Description copied from class:SpatialPadding2D_F64Handles coordinates outside the input image- Specified by:
borderGetin classSpatialPadding2D_F64
-
getClippingOffsetRow
public int getClippingOffsetRow(int paddedRow)Description copied from interface:SpatialPadding2DReturns how far away the row is from the clipping border. 0 if it is inside the image. Positive is below the lower extent and negative if above upper extent.- Specified by:
getClippingOffsetRowin interfaceSpatialPadding2D<Tensor_F64>- Parameters:
paddedRow- Row in padded coordinates- Returns:
- offset
-
getClippingOffsetCol
public int getClippingOffsetCol(int paddedCol)Description copied from interface:SpatialPadding2DReturns how far away the column is from the clipping border. 0 if it is inside the image. Positive is below the lower extent and negative if above upper extent.- Specified by:
getClippingOffsetColin interfaceSpatialPadding2D<Tensor_F64>- Parameters:
paddedCol- Column in padded coordinates- Returns:
- offset
-
isClipped
public boolean isClipped()Description copied from interface:SpatialPadding2DReturns true if this is a clipped border or false of it is not.- Specified by:
isClippedin interfaceSpatialPadding2D<Tensor_F64>- Returns:
- if clipped or not
-
getTensorType
Description copied from interface:SpatialPadding2DReturns the type of input tensor it can process- Specified by:
getTensorTypein interfaceSpatialPadding2D<Tensor_F64>- Returns:
- Type of tensor
-