"'toCv' not declared in the scope"? #4

Closed
brianputz opened this Issue Mar 17, 2012 · 4 comments

Projects

None yet

4 participants

@brianputz

I've been trying to compile the FaceSubstitution but keep being met with the error "'toCv' not declared in the scope." I am using the most recent version of ofxCv and dug through it and found that there is in fact something called toCv in there. I'm not the best coder in the world and I am stuck as to what is happening here. Any advice would be awesome!

Cheers,
-bp

@brianputz

Was including the namespace cv

@brianputz brianputz closed this Mar 20, 2012
@wongjustin99

Thanks for the solution, but what exactly do you mean? I'm getting the same issue right now.

@Venetian

seconded, what does this mean? I see the toCv() functions, but no toCV(ofImage& myImage)
what's the namespace issue?
thanks

@kylemcdonald
Collaborator

if you see "'toCv' not declared in the scope" you need to either say:

ofxCv::toCv()

or add to the top of the file:

using namespace ofxCv;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment