类 TraceList
- java.lang.Object
-
- cc.chungkwong.mathocr.online.TraceList
-
public class TraceList extends Object
Sequence of strokes- 作者:
- Chan Chung Kwong
-
-
方法概要
所有方法 静态方法 实例方法 具体方法 修饰符和类型 方法 说明 BoundBoxgetBoundBox()static intgetDistance(Trace trace0, Trace trace1)static intgetSideDistance(Trace trace0, Trace trace1)List<Trace>getTraces()TraceListrescale(BoundBox toBox)Rescale the coordinates to fit in a given rectangleStringtoString()TraceListtranslate(int dx, int dy)Translate the traces
-
-
-
方法详细资料
-
getBoundBox
public BoundBox getBoundBox()
- 返回:
- bounding box of the strokes
-
rescale
public TraceList rescale(BoundBox toBox)
Rescale the coordinates to fit in a given rectangle- 参数:
toBox- the rectangle- 返回:
- scaled trace list
-
translate
public TraceList translate(int dx, int dy)
Translate the traces- 参数:
dx- offsetdy- offset- 返回:
- transformed trace list
-
getDistance
public static int getDistance(Trace trace0, Trace trace1)
- 参数:
trace0- a tracetrace1- another trace- 返回:
- the Hausdorff distance between the two traces
-
getSideDistance
public static int getSideDistance(Trace trace0, Trace trace1)
- 参数:
trace0-trace1-- 返回:
- the minimum radius r such that trace0 is a subset of the r-neighborhood of trace1
-
-