C# 클래스 Algorithmix.Shred

상속: INode
파일 보기 프로젝트 열기: Algorithmix/Papyrus 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
BUFFER int
Chamfer List
Convolution List
ConvolutionKernel double[]
Filepath string
Id long
Luminousity List
OCR_EMPTY_THRESHOLD int
Offsets List
SAMPLE_SIZE int
Sparsity List
THRESHOLD double
Thresholded List

공개 메소드들

메소드 설명
AddOcrData ( OcrData results ) : void

Standard Add OCR will filter a shred if it is empty

AddOcrData ( OcrData results, long orienationConfidence, bool isUpsideDown ) : void

Set OCR Results, and Orientation Confidence on an Object

Factory ( List files, bool runOcr = true ) : List
Factory ( string prefix, string directory, bool runOcr = true ) : List

Factory Method loads a bunch of shreds from a directory given a prefix to match

Flatten ( List list ) : void
GetBitmap ( Orientation orientation = Orientation.Regular ) : Bitmap

Load a bitmap image of the shred with a specific orientation

GetChamfer ( Direction direction, Orientation orientation = Orientation.Regular ) : int[]
GetConvolution ( Direction direction, Orientation orientation = Orientation.Regular ) : double[]
GetLuminousity ( Direction direction, Orientation orientation = Orientation.Regular ) : double[]
GetSparsity ( Direction direction, Orientation orientation = Orientation.Regular ) : long
GetThresholded ( Direction direction, Orientation orientation = Orientation.Regular ) : double[]
IsLeaf ( ) : bool
Leaf ( ) : Shred
Left ( ) : INode
LeftEdge ( ) : Edge
LeftShred ( ) : Shred
Load ( string filepath ) : Shred

Deserialize binary shred on disk into memory

MatchData ( ) : MatchData
Mirror ( ) : void
OrphanChildren ( ) : void
Parent ( ) : INode
Parent ( INode parent ) : void
Right ( ) : INode
RightEdge ( ) : Edge
RightShred ( ) : Shred
Root ( ) : INode
Root ( INode representative ) : void
Save ( Shred shred, string filename ) : void

Serialize Shred to binary file on disk

Shred ( string filepath, bool ignoreTopBottom = true ) : System

Create a shred object given a filepath to a bitmap image

Size ( ) : int
ToJson ( JsonTextWriter writer ) : void
VisualizeChamfers ( Direction direction, Orientation orientation = Orientation.Regular ) : void

Plots a trace of the Chamfering

VisualizeLuminousity ( Direction direction, Orientation orientation = Orientation.Regular ) : void

Plots a trace of the Luminousity

VisualizeThresholded ( Direction direction, Orientation orientation = Orientation.Regular ) : void

Plots a trace of the threshold

비공개 메소드들

메소드 설명
Create ( string file, bool ignoreTopAndBottom = true ) : Shred
Index ( Direction direction, Orientation orientation ) : int

Helper for converting Orientation + Direction into an index number

InitializeINode ( ) : void
WriteLeaf ( Shred shred, JsonTextWriter writer ) : void

메소드 상세

AddOcrData() 공개 메소드

Standard Add OCR will filter a shred if it is empty
public AddOcrData ( OcrData results ) : void
results OcrData Shreds Ocr Data
리턴 void

AddOcrData() 공개 메소드

Set OCR Results, and Orientation Confidence on an Object
public AddOcrData ( OcrData results, long orienationConfidence, bool isUpsideDown ) : void
results OcrData The Orientation Results from the OCR execution
orienationConfidence long Absolute Orientation Confidence
isUpsideDown bool Indicates if True orientation is different than the current
리턴 void

Factory() 공개 정적인 메소드

public static Factory ( List files, bool runOcr = true ) : List
files List
runOcr bool
리턴 List

Factory() 공개 정적인 메소드

Factory Method loads a bunch of shreds from a directory given a prefix to match
public static Factory ( string prefix, string directory, bool runOcr = true ) : List
prefix string prefix to match within shred folder
directory string path where folder is located
runOcr bool Run Optical Character Recognition for Page Text and Orientation Detection
리턴 List

Flatten() 공개 메소드

public Flatten ( List list ) : void
list List
리턴 void

GetBitmap() 공개 메소드

Load a bitmap image of the shred with a specific orientation
public GetBitmap ( Orientation orientation = Orientation.Regular ) : Bitmap
orientation Orientation Specific Orientation, regular or reversed, default is regular
리턴 System.Drawing.Bitmap

GetChamfer() 공개 메소드

public GetChamfer ( Direction direction, Orientation orientation = Orientation.Regular ) : int[]
direction Direction
orientation Orientation
리턴 int[]

GetConvolution() 공개 메소드

public GetConvolution ( Direction direction, Orientation orientation = Orientation.Regular ) : double[]
direction Direction
orientation Orientation
리턴 double[]

GetLuminousity() 공개 메소드

public GetLuminousity ( Direction direction, Orientation orientation = Orientation.Regular ) : double[]
direction Direction
orientation Orientation
리턴 double[]

GetSparsity() 공개 메소드

public GetSparsity ( Direction direction, Orientation orientation = Orientation.Regular ) : long
direction Direction
orientation Orientation
리턴 long

GetThresholded() 공개 메소드

public GetThresholded ( Direction direction, Orientation orientation = Orientation.Regular ) : double[]
direction Direction
orientation Orientation
리턴 double[]

IsLeaf() 공개 메소드

public IsLeaf ( ) : bool
리턴 bool

Leaf() 공개 메소드

public Leaf ( ) : Shred
리턴 Shred

Left() 공개 메소드

public Left ( ) : INode
리턴 INode

LeftEdge() 공개 메소드

public LeftEdge ( ) : Edge
리턴 Edge

LeftShred() 공개 메소드

public LeftShred ( ) : Shred
리턴 Shred

Load() 공개 정적인 메소드

Deserialize binary shred on disk into memory
public static Load ( string filepath ) : Shred
filepath string filepath of the deserialized shred
리턴 Shred

MatchData() 공개 메소드

public MatchData ( ) : MatchData
리턴 MatchData

Mirror() 공개 메소드

public Mirror ( ) : void
리턴 void

OrphanChildren() 공개 메소드

public OrphanChildren ( ) : void
리턴 void

Parent() 공개 메소드

public Parent ( ) : INode
리턴 INode

Parent() 공개 메소드

public Parent ( INode parent ) : void
parent INode
리턴 void

Right() 공개 메소드

public Right ( ) : INode
리턴 INode

RightEdge() 공개 메소드

public RightEdge ( ) : Edge
리턴 Edge

RightShred() 공개 메소드

public RightShred ( ) : Shred
리턴 Shred

Root() 공개 메소드

public Root ( ) : INode
리턴 INode

Root() 공개 메소드

public Root ( INode representative ) : void
representative INode
리턴 void

Save() 공개 정적인 메소드

Serialize Shred to binary file on disk
public static Save ( Shred shred, string filename ) : void
shred Shred Shred Object
filename string Destination File path
리턴 void

Shred() 공개 메소드

Create a shred object given a filepath to a bitmap image
public Shred ( string filepath, bool ignoreTopBottom = true ) : System
filepath string destination path of the shred image
ignoreTopBottom bool Default is true, set to false to scan top and bottom aswell
리턴 System

Size() 공개 메소드

public Size ( ) : int
리턴 int

ToJson() 공개 메소드

public ToJson ( JsonTextWriter writer ) : void
writer JsonTextWriter
리턴 void

VisualizeChamfers() 공개 메소드

Plots a trace of the Chamfering
public VisualizeChamfers ( Direction direction, Orientation orientation = Orientation.Regular ) : void
direction Direction Direction to be traced
orientation Orientation Orientation to be traced
리턴 void

VisualizeLuminousity() 공개 메소드

Plots a trace of the Luminousity
public VisualizeLuminousity ( Direction direction, Orientation orientation = Orientation.Regular ) : void
direction Direction Direction to be traced
orientation Orientation Orientation to be traced
리턴 void

VisualizeThresholded() 공개 메소드

Plots a trace of the threshold
public VisualizeThresholded ( Direction direction, Orientation orientation = Orientation.Regular ) : void
direction Direction Direction to be traced
orientation Orientation Orientation to be traced
리턴 void

프로퍼티 상세

BUFFER 공개적으로 정적으로 프로퍼티

public static int BUFFER
리턴 int

Chamfer 공개적으로 프로퍼티

public List Chamfer
리턴 List

Convolution 공개적으로 프로퍼티

public List Convolution
리턴 List

ConvolutionKernel 공개적으로 정적으로 프로퍼티

public static double[] ConvolutionKernel
리턴 double[]

Filepath 공개적으로 프로퍼티

public string Filepath
리턴 string

Id 공개적으로 프로퍼티

public long Id
리턴 long

Luminousity 공개적으로 프로퍼티

public List Luminousity
리턴 List

OCR_EMPTY_THRESHOLD 공개적으로 정적으로 프로퍼티

public static int OCR_EMPTY_THRESHOLD
리턴 int

Offsets 공개적으로 프로퍼티

public List Offsets
리턴 List

SAMPLE_SIZE 공개적으로 정적으로 프로퍼티

public static int SAMPLE_SIZE
리턴 int

Sparsity 공개적으로 프로퍼티

public List Sparsity
리턴 List

THRESHOLD 공개적으로 정적으로 프로퍼티

public static double THRESHOLD
리턴 double

Thresholded 공개적으로 프로퍼티

public List Thresholded
리턴 List