- Mar 24 Mon 2014 17:48
-
Raspberry使用raspicam開啟攝影機 with OpenCV2.4.8
- Mar 16 Sun 2014 01:25
-
安裝Installing OpenCV2.4.8 on a Rasperberry PI

先準備好一塊樹梅派和SD卡(16G) 首先, 在PC端先下載ImageWriter (win32diskimager-v0.9-binary) 下載官方作業系統Raspbian 2014-01-07-wheezy-raspbian 大概800MB, 解壓縮後約2.9GB
- Mar 15 Sat 2014 16:08
-
IC Imaging ActiveX Control
Frame Filter 可直接針對影像串流(image stream)進行影像處理, 不需要額外複製一份至ring buffer然後才進行影像處理, 加快速度 可以定義影像串流(image stream)之影片格式(video format), 以便儲存成不同格式 With frame filters, a versatile and powerful way to manipulate image data has been introduced. Frame filters can be used to do: control which frames will be removed (dropped) from the image stream read and write image data to/from frames of the image stream without having to copy the image data to a ring buffer. In other words: the frame filter allows image processing directly on buffers of the image stream (DirectShow buffers). to change the video format (pixel format and/or width and height) of the image stream implement image processing
- Mar 09 Sun 2014 12:10
-
final, static, static final討論
資料來源: http://www.programmer-club.com.tw/ShowSameTitleN/java/5307.html 對同樣一個類別, 卻實作多個物件, 區分如下:
^^^^^^^^^
final: 值永遠不變
static: 值永遠只有一個
final static: 唯一值且不可變
舉例說好了:
public class A {
...
final int fx = 5;
static int sx = 10;
...
}
import A;
public class B {
A x1 = new A(); //x1.fx=5, x1.sx=10
A x2 = new A(); //x2.fx=5, x2.sx=10
x1.fx = 20; //編譯錯誤: 因為fx是常數
x2.sx = 20; //x1.sx=20, x2.sx=20
A.sx = 30; //x1.sx=30, x2.sx=30
}
^^^^^^^^^
final: 值永遠不變
static: 值永遠只有一個
final static: 唯一值且不可變
舉例說好了:
public class A {
...
final int fx = 5;
static int sx = 10;
...
}
import A;
public class B {
A x1 = new A(); //x1.fx=5, x1.sx=10
A x2 = new A(); //x2.fx=5, x2.sx=10
x1.fx = 20; //編譯錯誤: 因為fx是常數
x2.sx = 20; //x1.sx=20, x2.sx=20
A.sx = 30; //x1.sx=30, x2.sx=30
}
- Mar 09 Sun 2014 11:34
-
Recording Amplitude Example

先記錄一下心得: 調整ADT字體大小 1. 先輸入關鍵字搜尋font 2. 點選Java Editor Text Font, 按下Edit按鈕 預設10號字體, 改成14號字看起來舒服多了~~~~
- Feb 21 Fri 2014 10:36
-
安裝IMAGINGSOURCE GIGE

DFK 23GV024 The Imaging Source 軟體 1) Windows XP, Vista, 7 & 8 驅動程式 TIS GigE相機驅動程式 [2.47 MB]
- Feb 20 Thu 2014 23:17
-
安裝OpenCV 2.4.8 Android sdk

下載 OpenCV-2.4.8-android-sdk.zip 前一陣子安裝OpenCV2.1時發生一件悲劇, 系統變數Path竟然被OpenCV安裝時給直接取代掉, 確認系統Path變數有下列路徑 C:\Program Files (x86)\Java\jre6\bin
- Feb 15 Sat 2014 15:27
-
Pixel Data Output Formats for Color Cameras
The Bayer Color Filter 可以看成 3種濾波器, 分別接收R, G, B Color Filter Array定義如下: Color Filter Alignment
- Feb 11 Tue 2014 17:22
-
MATLAB自動偵測RS232 COM PORT
1: function lCOM_Port = getAvailableComPort()
2: % function lCOM_Port = getAvailableComPort()
3: % Return a Cell Array of COM port names available on your computer 4: 5: try
6: s=serial('IMPOSSIBLE_NAME_ON_PORT');fopen(s);
7: catch
8: lErrMsg = lasterr; 9: end 10: 11: %Start of the COM available port12: lIndex1 = findstr(lErrMsg,'COM');
13: %End of COM available port14: lIndex2 = findstr(lErrMsg,'Use')-3;
15: 16: lComStr = lErrMsg(lIndex1:lIndex2); 17: 18: %Parse the resulting string
19: lIndexDot = findstr(lComStr,',');
20: 21: % If no Port are available22: if isempty(lIndex1)
23: lCOM_Port{1}='';
24: return;
25: end 26: 27: % If only one Port is available
28: if isempty(lIndexDot)
29: lCOM_Port{1}=lComStr;30: return;
31: end 32: 33: lCOM_Port{1} = lComStr(1:lIndexDot(1)-1); 34: 35: for i=1:numel(lIndexDot)+1
36: % First One37: if (i==1)
38: lCOM_Port{1,1} = lComStr(1:lIndexDot(i)-1); 39: % Last One 40: elseif (i==numel(lIndexDot)+1) 41: lCOM_Port{i,1} = lComStr(lIndexDot(i-1)+2:end); 42: % Others43: else
44: lCOM_Port{i,1} = lComStr(lIndexDot(i-1)+2:lIndexDot(i)-1); 45: end 46: end
- Feb 09 Sun 2014 21:09
-
如何載入書本中Android範例程式至ADT?
- Feb 04 Tue 2014 14:38
-
Media Player Application on Android
- Feb 03 Mon 2014 14:18
-
簡單四則運算應用A Simple Arithmetic Application on Android System

開啟strings.xml準備自定義文字
1: <?xml version="1.0" encoding="utf-8"?>
2: <resources> 3: 4: <string name="app_name">ArithmeticTest</string>
5: <string name="action_settings">Settings</string>
6: <string name="hello_world">Hello world!</string>
7: <string name="InputFirstNumber">輸入第一個數字</string>
8: <string name="InputSecondNumber">輸入第二個數字</string>
9: <string name="CalResult">計算結果</string>
10: <string name="Addition">+</string>
11: <string name="Subtraction">-</string>
12: <string name="Multiplication">x</string>
13: <string name="Division">/</string>
14: 15: </resources>


