I haven't used Eclipse specifically for this, just the command line, so I'll describe that piece. Eclipse one may be covered if you look at the IoT DevKit instructions, check them out: https://software.intel.com/en-us/iot
So you can
- Compile directly on Edison. Just install opencv-dev package using my repo and "opkg install opencv-dev" and you should be able to run something like "g++ opencv_ex1.cpp 'pkg-config opencv --cflags --libs' -o opencv_ex1" to compile it. Just search for "opencv" using the Community search, there are quite a few threads with example commands;
- Compile on your host system (Windows or Linux), using command line and cross-compilation toolchain. Pretty much the same as the above, but you run it on your host instead. Download the toolchain from here: Edison - Software Downloads (links with "SDK" in them, pick the one corresponding to your OS).
- Use IoT DevKit. I haven't used this one yet, so read the docs on that site I referred to above or let's see if someone else has something to say about this one.