Package com.logicaldoc.core.imaging
Class ImageDeskew
java.lang.Object
com.logicaldoc.core.imaging.ImageDeskew
A simple class for calculating the skew degree of an image
- Since:
- 8.7.3
- Author:
- Marco Meschieri - LogicalDOC
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclassRepresentation of a line in the image. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondeskew()Deskews the imagedoublegetAlpha(int index) getImage()doubledoubleCalculates the skew angle of the image.voidsetMinimumDeskewThreshold(double minimumDeskewThreshold)
-
Constructor Details
-
ImageDeskew
Constructor.- Parameters:
image- the image to deskew
-
-
Method Details
-
getSkewAngle
public double getSkewAngle()Calculates the skew angle of the image.- Returns:
- the calculated skew angle
-
getAlpha
public double getAlpha(int index) -
getMinimumDeskewThreshold
public double getMinimumDeskewThreshold() -
setMinimumDeskewThreshold
public void setMinimumDeskewThreshold(double minimumDeskewThreshold) -
deskew
Deskews the image- Returns:
- the deskwed version of the image(also stored as image attribute)
-
getImage
-