Class AbstractPoolingFunction<T,R>
- java.lang.Object
-
- science.aist.imaging.core.imageprocessing.filter.AbstractPoolingFunction<T,R>
-
- All Implemented Interfaces:
Function<ImageWrapper<T>,ImageWrapper<R>>
- Direct Known Subclasses:
MaxPoolingFunction
public abstract class AbstractPoolingFunction<T,R> extends Object implements Function<ImageWrapper<T>,ImageWrapper<R>>
Abstract Implementation of a pooling filter
- Since:
- 1.0
- Author:
- Christoph Praschl
-
-
Field Summary
Fields Modifier and Type Field Description protected @NonNull ImageFactory<R>
provider
-
Constructor Summary
Constructors Constructor Description AbstractPoolingFunction()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description ImageWrapper<R>
apply(ImageWrapper<T> wrapper)
protected abstract double
pooling(List<Double> values)
Inner Function that is applied for all values in neighborhoodvoid
setNeighborhoodHeight(int neighborhoodHeight)
sets value of fieldneighborhoodHeight
void
setNeighborhoodWidth(int neighborhoodWidth)
sets value of fieldneighborhoodWidth
void
setXStride(int xStride)
sets value of fieldxStride
void
setYStride(int yStride)
sets value of fieldyStride
-
-
-
Field Detail
-
provider
@NonNull protected @NonNull ImageFactory<R> provider
-
-
Method Detail
-
setYStride
public void setYStride(int yStride)
sets value of fieldyStride
- Parameters:
yStride
- value of field yStride- See Also:
yStride
-
setXStride
public void setXStride(int xStride)
sets value of fieldxStride
- Parameters:
xStride
- value of field xStride- See Also:
xStride
-
setNeighborhoodWidth
public void setNeighborhoodWidth(int neighborhoodWidth)
sets value of fieldneighborhoodWidth
- Parameters:
neighborhoodWidth
- value of field neighborhoodWidth- See Also:
neighborhoodWidth
-
setNeighborhoodHeight
public void setNeighborhoodHeight(int neighborhoodHeight)
sets value of fieldneighborhoodHeight
- Parameters:
neighborhoodHeight
- value of field neighborhoodHeight- See Also:
neighborhoodHeight
-
apply
public ImageWrapper<R> apply(ImageWrapper<T> wrapper)
-
-