最終更新:2018-07-05 (木) 01:33:19 (2116d)  

ofxCv/変換
Top / ofxCv / 変換

toCv

toOf

ofxCv::copy?

  • works with any type supported by toCv():
  • copy(src, dst);

ofxCv::imitate

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

ofxCv::drawMat

  • not the most optimal way of drawing images to the screen, because it creates a texture every time it draws.

ofImagecv::Matとして扱う

  • 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)

参考