Package technology.tabula
Class ProjectionProfile
java.lang.Object
technology.tabula.ProjectionProfile
public class ProjectionProfile extends Object
-
Field Summary
Fields Modifier and Type Field Description static intDECIMAL_PLACES -
Constructor Summary
Constructors Constructor Description ProjectionProfile(Page area, List<? extends Rectangle> elements, float horizontalKernelSize, float verticalKernelSize) -
Method Summary
Modifier and Type Method Description static float[]filter(float[] data, float alpha)Simple Low pass filterfloat[]findHorizontalSeparators(float minRowHeight)float[]findVerticalSeparators(float minColumnWidth)static float[]getAutocorrelation(float[] projection)static float[]getFirstDeriv(float[] projection)float[]getHorizontalProjection()float[]getVerticalProjection()static float[]smooth(float[] data, int kernelSize)
-
Field Details
-
DECIMAL_PLACES
public static final int DECIMAL_PLACES- See Also:
- Constant Field Values
-
-
Constructor Details
-
Method Details
-
getVerticalProjection
public float[] getVerticalProjection() -
getHorizontalProjection
public float[] getHorizontalProjection() -
findVerticalSeparators
public float[] findVerticalSeparators(float minColumnWidth) -
findHorizontalSeparators
public float[] findHorizontalSeparators(float minRowHeight) -
smooth
public static float[] smooth(float[] data, int kernelSize) -
filter
public static float[] filter(float[] data, float alpha)Simple Low pass filter -
getAutocorrelation
public static float[] getAutocorrelation(float[] projection) -
getFirstDeriv
public static float[] getFirstDeriv(float[] projection)
-