Quantcast
Channel: openFrameworks - Latest posts
Viewing all articles
Browse latest Browse all 40524

Using toOf from ofxCv

$
0
0

I found I had this same error,

I think the problem is that in the ofxCv code, calling the overloaded version of toOf that takes a mat and an ofImage actually just calls the PixelsRef version internally.

The problem is it uses the function ofImage.getPixels() instead of ofImage.getPixelsRef()

I changed this line of code from

toOf(mat, img.getPixels()); to ttoOf(mat, img.getPixelsRef()); inside the ofxCv addon (line 290 in ofxCv Utilities.h) and That solved the problem for me.


Viewing all articles
Browse latest Browse all 40524

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>