forked from shimat/opencvsharp
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathProgram.cs
More file actions
201 lines (117 loc) · 7.91 KB
/
Copy pathProgram.cs
File metadata and controls
201 lines (117 loc) · 7.91 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
using System;
using System.Collections;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Runtime.InteropServices;
using System.Text;
using System.Windows.Forms;
using OpenCvSharp;
using OpenCvSharp.Blob;
using OpenCvSharp.UserInterface;
using OpenCvSharp.CPlusPlus;
namespace CStyleSamplesCS
{
/// <summary>
///
/// </summary>
static class Program
{
/// <summary>
/// アプリケーションのメイン エントリ ポイントです。
///
/// 以下のサンプルの大多数は、OpenCV付属のサンプルやOpenCV日本語版リファレンスのサンプルから拝借しC#風に書き換えたものです。
/// </summary>
/// <remarks>Please uncomment some samples optionally.</remarks>
[STAThread]
static void Main()
{
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
//new Affine(); // Affine transformation
//new BinarizationMethods(); // Various Binarization Methods
new Blob(); // cvblob test (C# implementation)
//new BoundingRect(); // 点列を包含する矩形
//new CalibrateCamera(); // Camera calibration
//new CalibrateStereoCamera(); // Stereo camera calibration
//new CaptureAVI(); // Capturing from AVI file
//new CaptureByVideoInputSharp(); // Captures using VideoInputSharp
//new CaptureCamera(); // Capturing from camera device
//new Contour(); // 輪郭領域の面積と輪郭の長さ
//new ContourScanner(); // CvContourScanner Sample
//new ConvertToBitmap(); // System.Drawing.Bitmapへの変換
//new ConvertToBitmapSource(); // System.Windows.Media.Imaging.BitmapSourceへの変換
//new ConvertToIplImage(); // Converts from Bitmap/WriteableBitmap to IplImage
//new ConvertToWriteableBitmap(); // System.Windows.Media.Imaging.WriteableBitmapへの変換
//new ConvexHull(); // Building convex hull for ra sequence or array of points
//new ConvexityDefect(); // Convexity Defect
//new CopyMakeBorder(); // 境界線の作成
//new CornerDetect(); // コーナーの検出
//new CppTest(); // C++ interface sample
// new CvWindowExTest(); // Pure C# implementation of CvWindow
//new Delaunay(); // Planar Subdivisions
//new DFT(); // Discrete Fourier Transform
//new DistTransform(); // 距離変換とその可視化
//new DrawToHdc(); // Draws IplImage to Handle of Device Context(HDC)
//new Edge(); // エッジ検出
//new FaceDetect(); // 顔の検出
//new FAST(); // cv::FAST
//new FileStorage(); // データのファイルストレージへの書き込み・読み込み
//new Filter2D(); // ユーザが定義したカーネルによるフィルタリング
//new FindContours(); // 輪郭の検出と描画
//new FlannTest(); // FLANN
//new GammaCorrection(); // Gamma correction
// todo
//new GpuTest(); // opencv2/gpu
//new Histogram(); // ヒストグラムの描画
//new FitLine(); // cvFitLine sample
//new HoughCircles(); // ハフ変換による円検出
//new HoughLines(); // ハフ変換による直線検出
//new Image2Stream(); // Image <-> byte[]/Stream
//new Inpaint(); // 不要オブジェクトの除去
//new Kalman(); // カルマンフィルタ
//new LatentSVM(); // LatentSVM sample
//new LineIterator(); // CvLineIterator sample
//new LSH(); // Locality Sensitive Hashing
//new KMeans(); // クラスタリングによる減色処理
//new MatTest(); // 行列演算のテスト
//new MDS(); // Multidimensional Scaling (多次元尺度構成法)
//new Moments(); // 画像のモーメント
//new Morphology(); // モルフォロジー変換
// notice: this does not work because of OpenCV binary's bug
//new MSERSample(); // Maximally Stable Extremal Regions
//new OpticalFlowBM(); // Block Matchingによるオプティカルフローの計算
//new OpticalFlowHS(); // Horn & Schunck アルゴリズムによるオプティカルフローの計算
//new OpticalFlowLK(); // Lucas & Kanade アルゴリズムによるオプティカルフローの計算
//new Perspective(); // 画像の透視投影変換
//new PictureBoxIplSample(); // PictureBoxIplSample sample
//new PixelAccess(); // ピクセルデータへの直接アクセス
//new PixelSampling(); // ピクセルサンプリング
//new PolarTransForm(); // Log-polar 変換
//new PseudoColor(); // Converts gray scale image to pseudo-color images
//new PyrDownUp(); // 画像ピラミッドの作成
//new PyrMeanShiftFiltering(); // 平均値シフト法による画像のセグメント化
//new PyrSegmentation(); // 画像ピラミッドを用いた画像の領域分割
//new QtTest(); // Qt highgui test
//new Resize(); // 画像のサイズ変更
//new SaveImage(); // Saving image using the format-specific save parameters
//new SeqPartition(); // Partitioning 2d point set.
//new SeqTest(); // Test of CvSeq
//new Serialization(); // Binary Serialization
//new SkinDetector(); // CvAdaptiveSkinDetector sample
//new Solve(); // 連立方程式を解く
//new Snake(); // 輪郭検出
//new Squares(); // samples/c/squares.c
//new StarDetectorSample(); // Retrieves keypoints using the StarDetector algorithm
//new StereoCorrespondence(); // ステレオマッチング
//notice: you need to build OpenCV with SURF
//new SURFSample(); // SURFによる対応点検出
//new Text(); // テキストの描画
//new Threshold(); // 2値化
//new TreeNodeIterator(); // 輪郭座標の取得
//new Undistort(); // 歪み補正
//new VideoWriter(); // 動画としてファイルへ書き出す
//new Watershed(); // Watershedアルゴリズムによる画像の領域分割
}
}
}