最終更新:2018-07-31 (火) 01:21:33 (2089d)  

ofxCv
Top / ofxCv

Alternative approach to interfacing with OpenCV from openFrameworks.

https://github.com/kylemcdonald/ofxCv

インクルード

  • #include "ofxCv.h"

ofxCv/バージョン

インストール

ヘッダファイル

  • ofxCv.h?

ofxCv/クラス

画像の変換

toCv

toOf

cv::MatからofImageへの変換

  • Either use Mat mat = toCv(img); to treat the ofImage as a Mat, modify the mat, then img.update() to upload the modified pixels to the GPU.
  • もしくはtoOf(mat, img)

ディープコピー

  • copy(mat,mat)かMat::clone?

ofxCv::imitate

  • imitate(mirror, original)
    It works with Mat, ofImage, ofPixels, ofVideoGrabber, and anything else that extends ofBaseHasPixels.
    It will only reallocate memory if necessary. This means it can be used liberally.

関連