opencv

Opencv MPEG7 descriptors

Hi all! I am working on the system that compares images. MPEG-7 standard provides some descriptors which can be used for that e.g: Dominant Color, Color Layout, Edge Histogramm, Color Coherence Vectors. Do you know where i can get a source code for some of these methods? Thx! ...

<programname>.exe exited with code -1073741819, What is the solution?

Hi, I am trying to integrate Qt with OpenCV. Here is the example: http www opendesktop org/content/show.php/Qt+Opencv+webcam+viewer?content=89995 But in the function: putImage(IplImage* cvimage) It is giving exit error code: 1073741819, wherever following..: cvimage->depth .. is being used. I have solved this problem long ago ...

openCV cvCreateVideoWriter always returns null

I am trying to save a video file with openCV under Mandriva Linux 2009.1. Unfortunately cvCreateVideoWriter always returns null although I could see and modify both and mpeg fiels, in other words cvCaptureFromCam, cvCaptureFromAvi, cvRetrieveFrame is working. I tried all the possible codecs from this tutorial and this codec page. I also...

Help with "cvLoadImage"

I have the image file on hard disk. I use "cvLoadImage" to load it and display it on OpenCV's Window. Although this file exists, but, I get a blank window. I can't resolve this problem. Help me ,please ! Thank you! ...

Opencv Edge extraction

Hi all! I have an image and I want to create an adge histogram. I divide the image into 1100 image-blocks and try to find edge and its direction (horisontal, vertical, 45° diagonal, 135° diagonal or nondirectional) in each block. How I can extract that information about edges? Do you have any ideas? Regards! ...

How is the gaussian filter algorithm work in OpenCV

I write my own gaussian filter but it is really slow. OpenCV's gaussian algorithm is much faster, 20 times than my gaussian filter. I want to rewrite opencv's gaussian algorithm in my project, and I don't want to include opencv in my project. However, Can anyone give me the algorithm description, opencv's source code seems too hard to ...

Computer Vision with Mathematica

Hi all does anybody here do computer vision work on Mathematica? I would like to know what external libraries are available for doing that. The built in image processing functions are not enough. I am looking for things like SURF, stereo, camera caliberation, multi-view geometry etc.. How difficult would it be to wrap opencv for use in...

Python Opencv Ubuntu not creating Windows

I have a strange problem with opencv running on an Ubuntu. I installed OpenCV from the apt sources. And most of the Examples work fine. But in my programs, which are working with Mac OS, no windows are created. The following code is showing a window and an image in this on my Mac but not on my Ubuntu powered machine import time from o...

Updated OpenCV : no cam image with F5 but it works with Ctrl + F5 on visual c++ /winxp

I changed opencv (actually highgui) to allow the cvSetCaptureProperty with CV_CAP_PROP_FPS using the latest inputvideo lib. But now, when i run my application using F5 in debug or release mode the picture is black on visual c++ 2003 or 2008 express. But it works with Ctrl + F5 (and the frame rate is changed too). Do you have any idea why...

How to isolate a single color in an image

I'm using the python OpenCV bindings and at the moment I try to isolate a colorrange. That means I want to filter out everything that is not reddish. I tried to take only the red color channel but this includes the white spaces in the Image too. What is a good way to do that? ...

Calculate the center of a contour/Area

I'm working on a Image-processing chain that seperates a single object by color and contour and then calculates the y-position of this object. How do I calculate the center of a contour or area with opencv? Opencv links: http://opencv.willowgarage.com/wiki/ http://en.wikipedia.org/wiki/OpenCV ...

Opencv sort sequences in python

I'm using the Python OpenCV bindings to find the contours in an Image. I'm know looking for the possibility to sort this sequence. It seems the usual python ways for list sorting don't apply here because of the linked list structure generated from OpenCV. Do you know a good way to sort the Contours by Size (Area/BoundingRectangle) i...

How to use OpenCV cvProjectPoints2 function

I'm having some troubles with cvProjectPoints2 function. Following is the function overview from O'Reilly's "Learning OpenCV" book: void cvProjectPoints2( const CvMat* object_points, const CvMat* rotation_vector, const CvMat* translation_vector, const CvMat* intrinsic_matrix, const CvMat* distortion_coeffs, CvMat* image_points, ); ...

[OpenCV] What do the "left" and "right" values mean in the haar cascade xml files?

In OpenCV's haar cascade files, what are the "left" and "right" values, and how does this refer to the "threshold" value? Thanks! Just for reference, here's the structure of the files: <haarcascade_frontalface_alt type_id="opencv-haar-classifier"> <size>20 20</size> <stages> <_> <!-- stage 0 --> <trees> <_> ...

OpenCV: Accessing And Taking The Square Root Of Pixels

I'm using OpenCV for object detection and one of the operations I would like to be able to perform is a per-pixel square root. I imagine the loop would be something like: IplImage* img_; ... for (int y = 0; y < img_->height; y++) { for(int x = 0; x < img_->width; x++) { // Take pixel square root here } } My question is how can...

nothing happens after building an OpenCV project

Hi, I'm using OpenCV for the first time (Windows, Eclipse), after installing and configuring Eclipse using this manual: http://tommy.chheng.com/development/windows_development_setup.html I tried running the example, but nothing happens after build! when the program reaches this line: img=cvLoadImage(argv[1]); it just stops. I trie...

Can you put a library inside a namespace?

I am working with OpenCV and I would like to put the entire library inside it's own namespace. I've looked around quite a bit but haven't found an answer... Can you do this without modifying the library source code? If then how? ...

Creating AVI files in OpenCV

Hello. I have been trying to create an application using OpenCV and Visual Studio 2008, to capture images from a webcam, apply a filter to them, and then write them to an AVI file. Everything works, except creating the AVI file. The problem is that it works on my computer, but it doesn't work on my colleague's computer. The reason for ...

embedded application

Hi there In the last two months I've worked as a simple application using a computer vision library(OpenCV). I wish to run that application directly from the webcam without the need of an OS. I'm curious to know if that my application can be burned into a chip in order to not have the OS to run it. Ofcorse the process can be expensiv...

OpenCV 1.1 Error Mac OS X 10.5.7 "couldn't create video channel"

Application works on Unix but is getting an internal error from OpenCV on Mac OS X. The rest of the programs seem to work. Seems to be related to quicktime. OpenCV Error: Internal error (couldnt create new video channel) in icvOpenCamera_QT, file /opencv/opencv/src/highgui/cvcap_qt.cpp, line 921 terminate called after throwing an inst...