类 RunLength
- java.lang.Object
-
- cc.chungkwong.mathocr.offline.RunLength
-
- 所有已实现的接口:
Comparable<RunLength>
public class RunLength extends Object implements Comparable<RunLength>
A data structure represent runlength of a image
-
-
构造器概要
构造器 构造器 说明 RunLength(int y, int x, int count)Construct a RunLength
-
-
-
方法详细资料
-
getX
public int getX()
Get the x coordinate- 返回:
- the x coordinate
-
getY
public int getY()
Get the y coordinate- 返回:
- the y coordinate
-
getCount
public int getCount()
Get the length - 1- 返回:
- length - 1
-
reset
public void reset(int y, int x, int count)Reset a RunLength- 参数:
y- the y coordinatex- the x coordinatecount- the length of the RunLength - 1
-
compareTo
public int compareTo(RunLength opd)
Compare RunLength by y and x coordinate- 指定者:
compareTo在接口中Comparable<RunLength>- 参数:
opd- the RunLength to compare- 返回:
- -1,0 or 1
-
-