fork download
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6.  
  7. namespace ConsoleApplication1 {
  8. class Program {
  9. static void Main(string[] args) {
  10. // ファイルから画像読み込み
  11. var img = OpenCV.Net.CV.LoadImage(@"C:\test\test.jpg", OpenCV.Net.LoadImageFlags.AnyColor);
  12. // エッジ画像格納用の変数作成
  13. var dst = img.Clone();
  14.  
  15. // sobelフィルタ適用
  16. OpenCV.Net.CV.Sobel(img, dst, 1, 1);
  17.  
  18. // 原画用のウインドウ生成
  19. var windowOrg = new OpenCV.Net.NamedWindow("原画");
  20. // 原画表示
  21. windowOrg.ShowImage(img);
  22. // エッジ用のウィンドウ生成
  23. var windowEdge = new OpenCV.Net.NamedWindow("エッジ");
  24. // エッジ表示
  25. windowEdge.ShowImage(dst);
  26.  
  27. // キー入力待ち
  28. OpenCV.Net.CV.WaitKey(0);
  29. }
  30. }
  31. }
  32.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cs(5,24): error CS0234: The type or namespace name `Tasks' does not exist in the namespace `System.Threading'. Are you missing an assembly reference?
Compilation failed: 1 error(s), 0 warnings
stdout
Standard output is empty