|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.shapelogic.imageprocessing.LineProperties
public class LineProperties
LineProperties contains properties that are important for a line when you are dealing with curved multi line.
Field Summary | |
---|---|
LineType |
_lineType
|
double |
angle
|
int |
areaNegativeDistance
|
int |
areaPositiveDistance
|
boolean |
inflectionPoint
|
double |
lastDist
|
double |
lengthOfDistanceUnit
|
int |
maxNegativeDist
|
int |
maxNegativeIndex
|
CPointInt |
maxNegativePoint
|
int |
maxPositiveDist
|
int |
maxPositiveIndex
|
double |
nextDist
|
CPointInt |
orthogonalVector
|
int |
pixelsWithAlmostZeroDistance
|
int |
pixelsWithNegativeDistance
|
int |
pixelsWithPositiveDistance
|
CPointInt |
relativeVector
|
CPointInt |
startPoint
|
static int |
STRAIGHT_LIMIT
|
Constructor Summary | |
---|---|
LineProperties()
|
Method Summary | |
---|---|
LineType |
calcLineType()
The main LineType for a line there are 3 options: straight, arch, wave. |
double |
distanceToPoint(CPointInt point)
Same unnormalized point distance to line used in splitting line. |
java.util.Set<LineType> |
getValue()
Starts a lazy calculation. |
java.util.Set<LineType> |
invoke()
|
boolean |
isConcaveArch()
lineType needs to be set first. |
boolean |
isDirty()
When dirty is false that means that the calculated value can be used |
void |
setup()
Currently not super well define used for 2 purposes: Reset: called from the outside if you want to reuse it init: Called from the inside when calculation start to have everything setup maybe the semantic could work for both? TODO: This should be separated better. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static int STRAIGHT_LIMIT
public int pixelsWithPositiveDistance
public int pixelsWithNegativeDistance
public int pixelsWithAlmostZeroDistance
public int areaPositiveDistance
public int areaNegativeDistance
public int maxPositiveDist
public int maxPositiveIndex
public int maxNegativeDist
public int maxNegativeIndex
public CPointInt maxNegativePoint
public double angle
public LineType _lineType
public CPointInt startPoint
public CPointInt relativeVector
public CPointInt orthogonalVector
public double lengthOfDistanceUnit
public double lastDist
public double nextDist
public boolean inflectionPoint
Constructor Detail |
---|
public LineProperties()
Method Detail |
---|
public void setup()
LazyCalc
setup
in interface LazyCalc<java.util.Set<LineType>>
public java.util.Set<LineType> invoke()
invoke
in interface Calc0<java.util.Set<LineType>>
public java.util.Set<LineType> getValue()
CalcValue
getValue
in interface CalcValue<java.util.Set<LineType>>
public LineType calcLineType()
public double distanceToPoint(CPointInt point)
point
- an input
public boolean isConcaveArch()
public boolean isDirty()
LazyCalc
isDirty
in interface LazyCalc<java.util.Set<LineType>>
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |