Ask Your Question

vlattson's profile - activity

2013-06-19 16:27:25 -0600 commented question Lacking libraries in Fedora 18

I had to rebuild the whole library from openCV, no shortcut way.

2013-03-11 03:47:43 -0600 received badge  Student (source)
2013-03-10 16:08:26 -0600 commented question Lacking libraries in Fedora 18

Trying to avoid it... but ok, I'll give it a try.

2013-03-10 15:58:29 -0600 asked a question Lacking libraries in Fedora 18

I've installed f18 and been happy to have openCV out of the box, only needing to install -devel package from repository. But the Fedora version is lacking libopencv_nonfree and libopecv_gpu. Can I copy these files to my system directories with rest of opencv libs (and corresponding header files?). Will it be just work?

2012-11-18 09:00:10 -0600 asked a question stereo displaying - images fitting

I have to images, respectively from left and right camera calibrated in stereo configuration. Images are rectified. Now I would like to fit this images together and prepare them for passive displaying (vertical lines interlacing). Has anybody some good tips what should I do now? The images differ a bit in respect of frame (shifted in vertical direction), brightness and one of them is of poorer quality than the other. Does 3D reprojection make some sense in this case? Or do I only need to find corresponding pixels in those images and fit them together?

2012-11-11 02:50:31 -0600 commented answer Need help on GCC C++ Linker

@Karl As I can see it's exe file here: http://sourceforge.net/projects/opencvlibrary/files/opencv-win/2.4.3/ But after installation, does it appear some summary or whatever to inform you which files have been installed and at which location? Because from Eclipse point of view the platform shouldn't make such a big difference. Could you reinstall your openCV and make a few printscreens when any valuable information appears during installation process? It shouldn't be such a pain to get it running.

2012-11-10 17:55:11 -0600 asked a question How does calibrateCamera works under hood?

This is the fragment of code INSIDE my own function.

rvecs = std::vector<cv::Mat>();
tvecs = std::vector<cv::Mat>();
cv::calibrateCamera(objPts, imPts, boardSz, camMatrix, distCoeffs, rvecs, tvecs, flag);    
std::cout<<"\nrvecs:\n"<<rvecs.at(1)<<"\ntvecs:\n"<<tvecs.at(1)<<std::endl;

And it gives an output:

rvecs: [-2.07794159464744; 1.839724077653041; -0.9104975914162868]
tvecs: [81.31706021250416; 213.1216587926538; 367.8369235219837]

And it's nice to see any result but:
I am wondering how this function changes the values of rvecs and tvecs, because they are both local variables and according to the documentation it gets variables, not references so I thought they are copied and my results will be something zero-like. Is it different for containers (vector) of objects of external classes (Mat)? Aren't they passed by value?

2012-11-10 11:52:06 -0600 commented answer Need help on GCC C++ Linker

Probably some path to directories with openCV libs, or nothing if the system knows it somehow. I cannot help you more, I rarely work on Windows and even then I have neither openCV nor Eclipse installed on that platform. Search on google, youtube, StackOverflow etc.

Didn't you have some .dll files in your OpenCV directory?

2012-11-09 14:15:23 -0600 commented answer OpenCV on Eclipse CDT for Linux

@Karl About PKG: http://www.freedesktop.org/wiki/Software/pkg-config So, PKG_CONFIG_PATH is the environment variable with path to pkg binary file. And LD_LIBRARY_PATH is path to directory with openCV libs. On linux you just need to export these two variables to make libraries' location known. Maybe my explanation is not the most accurate, but it's enough for openCV working. I have following paths: PKG_CONFIG_PATH=/usr/local/lib/pkgconfig LD_LIBRARY_PATH=/usr/local/lib

If you will find better information post it here, please. It would be appreciated.

2012-11-09 13:52:46 -0600 commented answer Need help on GCC C++ Linker

@Karl, did you mean where I get these names FROM? On Linux libraries of openCV are named libopencv_core.so.2.4, libopencv_imgproc.so.2.4 etc. And while typing you ommit the 'lib' prefix, just because. On Windows there are .dll extensions. Whatever, did you read tutorial? http://docs.opencv.org/2.4.3rc/doc/tutorials/introduction/windows_install/windows_install.html Maybe on Windows there is totally different method, I don't know. Try to figure it out and post here when you solve it, please. Just for my curiosity. Good luck!

2012-11-09 12:36:44 -0600 answered a question OpenCV on Eclipse CDT for Linux
  1. What's the output of following commands:
    echo $PKG_CONFIG_PATH
    echo $LD_LIBRARY_PATH
  2. Are you sure you have set up executable project? (Sorry if it so obvious)
  3. Go to project properties -> Run/Debug settings. Can you see there a launch configuration? Click edit and paste a printscreen of this window.
  4. Go to project properties -> C/C++ Build and click 3rd tab 'Refresh Policy'. Paste print screen of this tab too.

I experienced similar troubles some time ago but I don't remember what exactly was the cause. I will try to find out.

2012-11-09 11:53:42 -0600 received badge  Editor (source)
2012-11-09 11:51:24 -0600 answered a question Need help on GCC C++ Linker

Hi Karl. I use openCV on Linux, not Windows and the configuration may differ a little bit, but it should be possible to find an analogy. If you have added compiler's includes then try only to add libraries names (assuming that these libraries are in some standard system's location, if not, then add also the directory to search path in the lower field). In my case it is:

image description

The names probably are the same both on Windows and Linux, even though they have different extensions (.dll on Windows and .so on Linux), but I am not quite sure. If it won't be work - ask google and youtube. There is plenty of configuration tutorials. On the other hand, try to consider changing your IDE. Eclipse with CDT is not exactly the most convienient one for C++. I have no big experience with Windows but maybe MS Visual Studio would be better? Or Code::Blocks, it's free.