image
加入參考: C:\Emgu\emgucv-windows-universal-cuda 2.9.0.1922\bin\Emgu.CV.dllA wrapper for the OpenCV library (opencv_core, opencv_calib3d, opencv_contrib, opencv_features2d, opencv_highgui, opencv_imgproc, opencv_objdetect and opencv_video)接著仿照上步驟也加入Emgu.Util.dll加入以下三個namespaceusing Emgu.CV;
using Emgu.CV.CvEnum;
using Emgu.CV.Structure;

me1237guy 發表在 痞客邦 留言(0) 人氣()

  • Jun 23 Mon 2014 21:11
  • PLC

image
加入參考FoconSvr.exeusing FaconSvr;加入DataGridView1按下<加入>

me1237guy 發表在 痞客邦 留言(0) 人氣()

 參考資料: Using GPU_FFT with data              Using GPU_FFT with data – part2
#include <stdlib.h>
#include <unistd.h>
#include <stdio.h>
#include <math.h>
#include <time.h>
#include "mailbox.h"
#include "gpu_fft.h"
int main()
{
   int ret, m, l, d, j, k, i, ii, iii, w, freq;
   m = mbox_open();
   l = 8;               //length
   d = GPU_FFT_FWD;     //direction
   j = 255;             //jobs
   k = 1;               //loops
   float data[j];
   for (i=0; i<j; i++)  //loop to make false data set
   {
      data[i] = i*.00001;
      //printf("data[%d] = %f\n", i, data[i]);
   }
   struct GPU_FFT *fft;
   gpu_fft_prepare(m, l, d, j, &fft);
   for(i=0; i<k; i++)
   {
      for(iii=0; iii<j; iii++)  //input buffer loop
      {
         struct GPU_FFT_COMPLEX *in = fft->in + j*fft->step;
/*setting all mem to 0 in order to have guard space between buffers*/
         for (ii=0; ii<j+1; ii++)
         {
             in[ii].re=in[ii].im=0;
         }
/*sending data set to input buffer, excluding first and last address so they are still zero*/
         freq = iii+1;
         in[freq].re = data[iii];
         in[j-1].re = 0;
         //printf("in[%d].re = %f\n", iii, in[iii].re);
      }
      gpu_fft_execute(fft);
/*assigning buffer address to pointer out*/
      struct GPU_FFT_COMPLEX *out = fft->out+iii*fft->step;
/*attempting to print values of output buffer, should be values created by gpu_fft_execute*/
      for(w=0; w<j; w++) //output print loop
      {
      printf("real out[%d].re = %f\n", w, out[w].re);
      }
   }
   gpu_fft_release(fft);
   printf("END END END END END END END END END END END END END END END END END END\n");
   return 0;
}

me1237guy 發表在 痞客邦 留言(0) 人氣()

image
===============================================================================================================
計算程式執行時間
 
System.Diagnostics.Stopwatch sw = new System.Diagnostics.Stopwatch();//引用stopwatch物件

me1237guy 發表在 痞客邦 留言(0) 人氣()

安裝ALSAsudo apt-get install libasound2-dev安裝好之後會看到/usr/include/alsa編譯指令sudo gcc -o record recordSound.cpp `pkg-config --libs alsa`

me1237guy 發表在 痞客邦 留言(0) 人氣()

image
Download touch-pack-web
Double click touch-pack-web.exe


me1237guy 發表在 痞客邦 留言(0) 人氣()

image
As of the current version, touchlib now can broadcast events in the TUIO
protocol (which uses OSC).This makes touchlib compatible with several other applications that support this protocol,
such as vvvv, Processing, PureData, etc.. This also makes it possible to use touchlib for blob detection / tracking

me1237guy 發表在 痞客邦 留言(0) 人氣()

image
A simple C++ Open Sound Control (OSC) packet manipulation library
#1. 下載oscpack
#2. 確定有安裝CMake和Visual Studio 2010

me1237guy 發表在 痞客邦 留言(1) 人氣()

image

Emgu CV is a cross platform .Net wrapper for OpenCV C# + KinectSDK + EmguCV is good combinations for developers.

me1237guy 發表在 痞客邦 留言(0) 人氣()


using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

me1237guy 發表在 痞客邦 留言(0) 人氣()

image
Pylon.NETSupportLibrary 是一個好用類別, 加速開發應用程式, 達事半功倍之效使用者載入PylonC.NETSupportLibrary.dll至專案中, 便可立即使用該類別中的許多好用的方法(methods)PylonLiveView 利用Pylon.NETSupportLibrary class 展示Basler相機的一些基本功能, 如取單張影像, 連續取像, 停止取像等加入參考 PylonC.NETSupportLibrary.dll,可以在工具箱看到兩個新增控制元件 SliderUserControl 和 EnumerationComboBoxUserControl

me1237guy 發表在 痞客邦 留言(7) 人氣()

image
MobaXterm download

me1237guy 發表在 痞客邦 留言(0) 人氣()

Blog Stats
⚠️

成人內容提醒

本部落格內容僅限年滿十八歲者瀏覽。
若您未滿十八歲,請立即離開。

已滿十八歲者,亦請勿將內容提供給未成年人士。