I’ve been playing around with of for some time but I’m still a beginner and now I’m completely stuck on this problem.
I really hope someone can help me figure this out.
I’ve included simplified code to isolate the problem and a screenshot of running the app below.
Header:
#include "ofMain.h"
#include "ofxOpenCv.h"
class ofApp : public ofBaseApp{
public:
/*
The usual stuff
*/
ofFloatImage mx;
ofFloatImage my;
ofxCvFloatImage cx;
ofxCvFloatImage cy;
};
I think the image and the code say pretty much everything. I don’t understand why the images look so weird but suspect maybe something with the pixel type?
I’ve googled around and read through the docs and tried more things than I care to admit.
After posting I found ofxCv and got everything up and running within minutes. But what I really want is to know what I was doing wrong.
So you’re saying ofCvFloatImage expects 1 channel (gray) and gets 3 channels (rgb)? Which might explain why everything looks scaled up by about a factor of 3x . I’ll look into that and will update if i solve it.