Parallel Pattern Library (PPL)

VS2010から使用できるようになった並列化ライブラリらしい Expressでも使用できるみたいなので今度遊んでみよう■参考 http://d.hatena.ne.jp/faith_and_brave/20081028/1225184552

.Netのメモメモ

配列からBitmapを作ったりする http://www.urban.ne.jp/home/kanemori/dotnet/ http://www.atmarkit.co.jp/bbs/phpBB/viewtopic.php?topic=33131&forum=7

C++/CLIの練習

文字書いたり,ダイアログを表示させてみた。 ほとんど記録用メモ コード #include <stdio.h> #include <windows.h> #using <System.dll> #using <System.Drawing.dll> #using <System.Windows.Forms.dll> using namespace System; using namespace System::Drawing; using namespace System::Windows::Forms; // コマンドプロンプトを表示さ</system.windows.forms.dll></system.drawing.dll></system.dll></windows.h></stdio.h>…

C++/CLIでのフォーム

OpenCVをDLL,表示部をC#と二つに分けていたが 単体で完結した方が開発しやすい気がした。 んなことでC++/CLIを試してみた。ほとんどC#みたいだけど細部が微妙に違うのがねー コード #include <stdio.h> #include <windows.h> #using <System.dll> #using <System.Drawing.dll> #using <System.Windows.Forms.dll> using namespace System; u</system.windows.forms.dll></system.drawing.dll></system.dll></windows.h></stdio.h>…

OpenCV in C# その2

C#

OpenCVの環境設定 1.OpenCVの入手 http://sourceforge.net/projects/opencvlibrary/ 「View all file」→「OpenCV-2.1.0-win32-vs2008.exe」 2.インクルードファイルの設定 「プロジェクト」→「プロパティ」→「構成プロパティ」→「C++」→「全般」→「追加の…

OpenCV in C# その1

C#

まずC++/CLIを用いてC#で用いるDLLを試す。 1.プロジェクトの作成 「新規作成」→「プロジェクト」→「クラスライブラリ」 プロジェクト名はCVとでもしておく 2.CV.h 適当な関数を定義 #pragma once using namespace System; namespace CV { public ref clas…

コマンドプロンプトを表示させない

以下の一文を追加 #pragma comment(linker, "/subsystem:\"windows\" /entry:\"mainCRTStartup\"")

最小二乗法(一次関数)

最小二乗法てのは下の図のように複数の点から近似した直線を求める手法です。 まずは簡単な一次関数について勉強して,プログラムを書いてみました。