[問題] SSE與opencv2.1的問題

看板Programming作者 (jack)時間15年前 (2010/12/02 11:31), 編輯推噓2(204)
留言6則, 2人參與, 最新討論串1/1
各位大大, 想請教目前opencv2.1和sse的關係 小弟在一篇文章上提到 OpenCV was released on 6th May. This time the development team did not release pre-built library for MinGW. They only released that for MSVC . There was only one pre-built release library uploaded by other user but SSEs were disabled. 然後小弟在網路上下載這個檔案OpenCV-2.1.0-win32-vs2008.exe 的確像opencv1.0一樣,直接安裝就可以用了 但是執行程式時,效能卻沒有提昇 所以想說,應該是這個版本的程式庫並沒有enable sse library. 然後目前使用cmake和opencv2.1.0去重新compile 但是卻沒有發現enable sse的選項 所以想請教各位大大,如何enable Opencv裡面的sse指令集呢 謝謝大大指教 -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 140.96.76.143

12/02 13:46, , 1F
在cvinternal.h裡 預設enable
12/02 13:46, 1F

12/03 16:28, , 2F
謝謝大大的指教~~我有加入__SSE2__去
12/03 16:28, 2F

12/03 16:29, , 3F
compile了,可是好像還是沒有變快的跡象>"<
12/03 16:29, 3F

12/06 00:08, , 4F
在Visual C++底下 灰色代表disable XD
12/06 00:08, 4F

12/06 00:25, , 5F
#if defined __SSE__ || MSC_VER >1300
12/06 00:25, 5F

12/06 00:25, , 6F
^^ 這是OR
12/06 00:25, 6F
文章代碼(AID): #1CznCbuC (Programming)
文章代碼(AID): #1CznCbuC (Programming)