Package edu.gsu.cs.dmlab.imageproc
Class ImgSparseMaxPoolPyramidProducer
- java.lang.Object
-
- edu.gsu.cs.dmlab.imageproc.ImgSparseMaxPoolPyramidProducer
-
- All Implemented Interfaces:
IPooledCoefProducer
public class ImgSparseMaxPoolPyramidProducer extends Object implements IPooledCoefProducer
- Author:
- Dustin Kempton, Data Mining Lab, Georgia State University
-
-
Constructor Summary
Constructors Constructor Description ImgSparseMaxPoolPyramidProducer(ISparseMatrixApproximator coefExtractor, smile.math.matrix.DenseMatrix dictionary)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
finalize()
smile.math.matrix.SparseMatrix[]
getPooledCoefficients(smile.math.matrix.DenseMatrix vectorizedImg)
Calculates the coefficients on the vectorized image and the pools them.
-
-
-
Constructor Detail
-
ImgSparseMaxPoolPyramidProducer
public ImgSparseMaxPoolPyramidProducer(ISparseMatrixApproximator coefExtractor, smile.math.matrix.DenseMatrix dictionary)
-
-
Method Detail
-
finalize
public void finalize() throws Throwable
-
getPooledCoefficients
public smile.math.matrix.SparseMatrix[] getPooledCoefficients(smile.math.matrix.DenseMatrix vectorizedImg) throws VectorDimensionMismatch
Description copied from interface:IPooledCoefProducer
Calculates the coefficients on the vectorized image and the pools them. The first vector represents the final pooled vector, the following vectors should represent the layer just under the final pooled layer.- Specified by:
getPooledCoefficients
in interfaceIPooledCoefProducer
- Parameters:
vectorizedImg
- The vectorized image to calculate the coefficients on and then pool.- Returns:
- An array of pooled vectors.
- Throws:
VectorDimensionMismatch
- If there is a mismatch between the image and the dictionary within the pooling coef producer.
-
-