Package deepboof.impl.forward.standard
Class ConstantPadding2D_F64
java.lang.Object
deepboof.BaseTensor
deepboof.impl.forward.standard.BaseSpatialPadding2D<Tensor_F64>
deepboof.forward.SpatialPadding2D_F64
deepboof.impl.forward.standard.ConstantPadding2D_F64
- All Implemented Interfaces:
ConstantPadding2D<Tensor_F64>,SpatialPadding2D<Tensor_F64>,ITensor,VTensor_F64,VTensor
public class ConstantPadding2D_F64
extends SpatialPadding2D_F64
implements ConstantPadding2D<Tensor_F64>
Pads pixels outside the input image with a user specified constant value.
-
Field Summary
Fields inherited from class deepboof.impl.forward.standard.BaseSpatialPadding2D
COL0, COL1, config, input, ROW0, ROW1Fields inherited from class deepboof.BaseTensor
shape -
Constructor Summary
ConstructorsConstructorDescriptionConstantPadding2D_F64(ConfigPadding config) ConstantPadding2D_F64(ConfigPadding config, double value) -
Method Summary
Modifier and TypeMethodDescriptiondoubleborderGet(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.doubleReturns the type of input tensor it can processbooleanReturns 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
-
ConstantPadding2D_F64
-
ConstantPadding2D_F64
-
-
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
-
getPaddingValue
public double getPaddingValue()- Specified by:
getPaddingValuein interfaceConstantPadding2D<Tensor_F64>
-