C# 클래스 Ocronet.Dynamic.Interfaces.IGrouper

상속: IComponent
파일 보기 프로젝트 열기: nickun/OCRonet 1 사용 예제들

공개 메소드들

메소드 설명
BoundingBox ( int index ) : System.Drawing.Rect

Get the bounding box for the group "index".

ClearLattice ( ) : void

Clear the lattice to allow constructing a new lattice.

End ( int index ) : int

Return the last segment

Extract ( Bytearray outa, Bytearray source, byte dflt, int index, int grow ) : void
Extract ( Floatarray outa, Floatarray source, float dflt, int index, int grow ) : void
ExtractSliced ( Bytearray outa, Bytearray mask, Bytearray source, int index, int grow ) : void
ExtractSliced ( Bytearray outa, Bytearray source, byte dflt, int index, int grow ) : void
ExtractSliced ( Floatarray outa, Bytearray mask, Floatarray source, int index, int grow ) : void
ExtractSliced ( Floatarray outa, Floatarray source, float dflt, int index, int grow ) : void
ExtractWithMask ( Bytearray outa, Bytearray mask, Bytearray source, int index, int grow ) : void
ExtractWithMask ( Floatarray outa, Bytearray mask, Floatarray source, int index, int grow ) : void
GetGtClass ( int index ) : int
GetGtIndex ( int index ) : int
GetLattice ( IGenericFst fst ) : void

Extract the lattice corresponding to the classifications stored in the Grouper.

GetMask ( System.Drawing.Rect &r, Bytearray &outmask, int index, int margin ) : void

Get the bounding rectangle and mask for group "index". Optionally, expand the mask by the given margin.

GetMaskAt ( Bytearray &outmask, int index, System.Drawing.Rect b ) : void

Get the mask around a given rectangle.

GetSegments ( Intarray result, int index ) : void

Return a list of all segments

Length ( ) : int

Number of groups generated.

PixelSpace ( int i ) : int

Space handling. For any component, pixelSpace gets the amount of subsequent space (-1 for the last component).

SetCSegmentation ( Intarray segmentation ) : void

Set the grouper for iterating over a pre-segmented image (i.e., one group per input segment).

SetClass ( int index, int cls, float cost ) : void

Set the cost for classifying group "index" as class cls.

SetClass ( int index, string cls, float cost ) : void

Set the cost for classifying group "index" as a sequence of strings

SetSegmentation ( Intarray segmentation ) : void

Set the grouper for iterating over the elements of the segmentation.

SetSegmentationAndGt ( Intarray segmentation, Intarray cseg, string &text ) : void

Set the grouper for iterating over the elements of the segmentation; This also computes the ground truth alignment.

SetSpaceCost ( int index, float yes, float no ) : void

Sets the costs associated with inserting a space after the character and not inserting the space.

Start ( int index ) : int

메소드 상세

BoundingBox() 공개 추상적인 메소드

Get the bounding box for the group "index".
public abstract BoundingBox ( int index ) : System.Drawing.Rect
index int
리턴 System.Drawing.Rect

ClearLattice() 공개 추상적인 메소드

Clear the lattice to allow constructing a new lattice.
public abstract ClearLattice ( ) : void
리턴 void

End() 공개 추상적인 메소드

Return the last segment
public abstract End ( int index ) : int
index int
리턴 int

Extract() 공개 추상적인 메소드

public abstract Extract ( Bytearray outa, Bytearray source, byte dflt, int index, int grow ) : void
outa Bytearray
source Bytearray
dflt byte
index int
grow int
리턴 void

Extract() 공개 추상적인 메소드

public abstract Extract ( Floatarray outa, Floatarray source, float dflt, int index, int grow ) : void
outa Floatarray
source Floatarray
dflt float
index int
grow int
리턴 void

ExtractSliced() 공개 추상적인 메소드

public abstract ExtractSliced ( Bytearray outa, Bytearray mask, Bytearray source, int index, int grow ) : void
outa Bytearray
mask Bytearray
source Bytearray
index int
grow int
리턴 void

ExtractSliced() 공개 추상적인 메소드

public abstract ExtractSliced ( Bytearray outa, Bytearray source, byte dflt, int index, int grow ) : void
outa Bytearray
source Bytearray
dflt byte
index int
grow int
리턴 void

ExtractSliced() 공개 추상적인 메소드

public abstract ExtractSliced ( Floatarray outa, Bytearray mask, Floatarray source, int index, int grow ) : void
outa Floatarray
mask Bytearray
source Floatarray
index int
grow int
리턴 void

ExtractSliced() 공개 추상적인 메소드

public abstract ExtractSliced ( Floatarray outa, Floatarray source, float dflt, int index, int grow ) : void
outa Floatarray
source Floatarray
dflt float
index int
grow int
리턴 void

ExtractWithMask() 공개 추상적인 메소드

public abstract ExtractWithMask ( Bytearray outa, Bytearray mask, Bytearray source, int index, int grow ) : void
outa Bytearray
mask Bytearray
source Bytearray
index int
grow int
리턴 void

ExtractWithMask() 공개 추상적인 메소드

public abstract ExtractWithMask ( Floatarray outa, Bytearray mask, Floatarray source, int index, int grow ) : void
outa Floatarray
mask Bytearray
source Floatarray
index int
grow int
리턴 void

GetGtClass() 공개 추상적인 메소드

public abstract GetGtClass ( int index ) : int
index int
리턴 int

GetGtIndex() 공개 추상적인 메소드

public abstract GetGtIndex ( int index ) : int
index int
리턴 int

GetLattice() 공개 추상적인 메소드

Extract the lattice corresponding to the classifications stored in the Grouper.
public abstract GetLattice ( IGenericFst fst ) : void
fst IGenericFst
리턴 void

GetMask() 공개 추상적인 메소드

Get the bounding rectangle and mask for group "index". Optionally, expand the mask by the given margin.
public abstract GetMask ( System.Drawing.Rect &r, Bytearray &outmask, int index, int margin ) : void
r System.Drawing.Rect
outmask Bytearray
index int
margin int
리턴 void

GetMaskAt() 공개 추상적인 메소드

Get the mask around a given rectangle.
public abstract GetMaskAt ( Bytearray &outmask, int index, System.Drawing.Rect b ) : void
outmask Bytearray
index int
b System.Drawing.Rect
리턴 void

GetSegments() 공개 추상적인 메소드

Return a list of all segments
public abstract GetSegments ( Intarray result, int index ) : void
result Intarray
index int
리턴 void

Length() 공개 추상적인 메소드

Number of groups generated.
public abstract Length ( ) : int
리턴 int

PixelSpace() 공개 추상적인 메소드

Space handling. For any component, pixelSpace gets the amount of subsequent space (-1 for the last component).
public abstract PixelSpace ( int i ) : int
i int
리턴 int

SetCSegmentation() 공개 추상적인 메소드

Set the grouper for iterating over a pre-segmented image (i.e., one group per input segment).
public abstract SetCSegmentation ( Intarray segmentation ) : void
segmentation Intarray
리턴 void

SetClass() 공개 메소드

Set the cost for classifying group "index" as class cls.
public SetClass ( int index, int cls, float cost ) : void
index int
cls int
cost float
리턴 void

SetClass() 공개 추상적인 메소드

Set the cost for classifying group "index" as a sequence of strings
public abstract SetClass ( int index, string cls, float cost ) : void
index int
cls string
cost float
리턴 void

SetSegmentation() 공개 추상적인 메소드

Set the grouper for iterating over the elements of the segmentation.
public abstract SetSegmentation ( Intarray segmentation ) : void
segmentation Intarray
리턴 void

SetSegmentationAndGt() 공개 추상적인 메소드

Set the grouper for iterating over the elements of the segmentation; This also computes the ground truth alignment.
public abstract SetSegmentationAndGt ( Intarray segmentation, Intarray cseg, string &text ) : void
segmentation Intarray
cseg Intarray
text string
리턴 void

SetSpaceCost() 공개 추상적인 메소드

Sets the costs associated with inserting a space after the character and not inserting the space.
public abstract SetSpaceCost ( int index, float yes, float no ) : void
index int
yes float
no float
리턴 void

Start() 공개 추상적인 메소드

public abstract Start ( int index ) : int
index int
리턴 int