OpenNI 2 又推出更新囉~這次是次版號直接加一,變成 2.1.0.4 Beta 了~目前新的版本已經可以在官方網站上下載了~網址是:http://www.openni.org/openni-sdk/。
在 Heresy 來看,最重要的改變,應該是他現在在 Windows 上除了可以支援 VisualStudio 2008 之前的編譯器外,也可以用最新的 VisualStudio 2012 來做開發了!另外,看來對於 Kinect 感應器的支援,也做了一些加強。
而更新的內容,則可以參考 GitHub 上的 ReleaseNote.txt(連結),他更新的內容大致如下,Heresy 自己是稍微整理一下,並針對部分做翻譯:
- 介面修改
- OpenNI 的 Listener 現在可以個別的加入、移除(addDeviceConnectedListener()、addDeviceDisconnectedListener()、addDeviceStateChangedListener())
- Kinect 感應器
- 實作 convertDepthToColorCoordinates()、CameraSettings
- 錯誤修正:可以在彩色/紅外線影像間做切換、修正鏡像(mirror)回傳值的錯誤
- 提供 Kinect for Windows 的 PID、VID 的資訊
- PS1080(Xtion 系列)
- 修正開啟超過八個裝置會當掉的問題
- 修正 64bit Linux 彩色影像有時候會出現問題的錯誤
- 修正舊版韌體可能當掉的潛在問題
- 錯誤修正
- 一些 memory leak 的問題
- 錄製的檔案相容於 OpenNI 1.x 和 NiTE 1.x
- 修正對 VisualStudio 2008 以前版本、2012 以後版本,以及 Express 版的支援性問題
- ReleaseVersion script did not work on 32-bit machines
- Linux Bug Fix: log timestamps did not start from 0.
- Potential starvation bug fix when application takes much time handling events
- 其他
- 作業系統支援 Linux on Arm、Android (native only)
- Log file now closes on shutdown(), and a new one is created on initialize()
- ONI files: providing driver name in the device info struct
- 範例程式修改
- NiViewer
- now browses whenever a recording is started
- added ‘i’ key for toggling image-registration (also added current status in the status bar)
- Bug Fix: Mirror did not change IR state
- EventBasedRead Sample
- Bug Fix: will not get device events
- now prints the list of connected devices and every change that occurs
- SimpleRead
- now the default project in the VS solution (thanks eranws)
- NiViewer
而如果是使用 Kinect 感應器的話,IMAGE_REGISTRATION_DEPTH_TO_COLOR 這項功能還是不被支援的(參考《OpenNI 2 對 Kinect 的支援》);不過,現在應該是至少可以透過 convertDepthToColorCoordinates() 來做校正了(不過這個函式在 Xtion 上還是不能用?)。
[…] 不過由於有遇到部分用戶抱怨 OpenNI 2.2 有問題,所以官網也又把相對穩定的 2.1 Beta 版的下載連結放回來了。而如果要安裝的話,要注意的是: […]
讚讚
請教convertDepthToColorCoordinates() 這個函數怎麼使用?
讚讚
他就是把 Depth VideoStream 的座標,轉換成 color VideoStream。
你只要一點一點、把參數填進去就可以了,用法和 convertDepthToWorldCoordinates() 大致上是相同的
讚讚
[…] 官網上,在繼一月的 OpenNI 2.1 Beta 後,終於釋出 OpenNI 2.2 Alpha […]
讚讚