Response title
This is preview!




if( capture.checkNewFrame() ) {cv::Mat input( toOcv( capture.getSurface() ) )cv::Mat output;cv::Sobel( input, output, CV_8U, 1, 0, 3);mTexture = gl::Texture( fromOcv( output ) );}-Andrew
That's just initializing the variable. In c++, initialization is separate from assignment. We could (probably) also write:i also don't get this syntax cv::Mat input( toOcv( capture.getSurface() ) ), is input a function or a particular way to define the input variable?
I've had some problems with it too. I used TinderBox to setup the project somewhere in my user directory and have just been trying to setup a basic video capture routine.
cv::Mat input( toOcv( capture.getSurface() ) )
When I added this code I got the following errors
Undefined symbols:
"cv::fastFree(void*)", referenced from:
cv::Mat::release() in ColourDanceApp.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
I broke down the above code into
Surface frame;
frame = mCap.getSurface();
cv::Mat matrix;
matrix = toOcv( frame );
cv::Mat input( matrix );
And found I got this error at:
cv::Mat matrix;
(and a whole bunch of errors)
Its been awhile since I've done any C++ but I'm concluding from this that its a project setup problem as the code it mostly taken from the OpenCV examples.
The tutorial on how to setup a project is handy but I noticed there are no instructions for how to add Blocks to project one setups up oneself?
