opticFlowExample for interactive floor

Can someone help me to translate this opticFlowExample for interactive floor,
OF v0.06 for Windows VS 2008…

I get this errors:
testApp.cpp
.\src\testApp.cpp(134) : error C3861: ‘setenv’: identifier not found
.\src\testApp.cpp(152) : error C3861: ‘strncasecmp’: identifier not found

Thanx in advace!
M.

opticFlowExample.rar

hi potter,

it seems those functions aren’t recognized by the compiler. What are you using?

roxlu

This example is for mac and I don’t know difference between mac and windows…

I’m using:
of_preRelease_v0.06_win32_VS2008_FAT.zip
Visual Studio C++ 2008

Both version for OF 0.5 and 0.6 are in attachment.

Can someone with more experiences check source code?
Thanx!
M.

tracking.rar

[quote author=“potter3366”]Can someone help me to translate this opticFlowExample for interactive floor,
OF v0.06 for Windows VS 2008…

I get this errors:
testApp.cpp
.\src\testApp.cpp(134) : error C3861: ‘setenv’: identifier not found
.\src\testApp.cpp(152) : error C3861: ‘strncasecmp’: identifier not found

Thanx in advace!
M.[/quote]

Hi~ just find this thread here. i changed some of the code. e.g. just comment the setenv thing. replace strncasecmp with strcmp for string comparison. after these i get the code run successfully. you can check the attached file.
but i also have one problem. according to my understanding, the tracked blob’s id should increase continuously. but in fact they always start from 0. so still need sometime to get deep into this

[opencvExample - Copy.rar](http://forum.openframeworks.cc/uploads/default/667/opencvExample - Copy.rar)