opencv

How to implement Optical Flow tracker?

Hi, I'm using the OpenCV wrapper - Emgu CV, and I'm trying to implement a motion tracker using Optical Flow, but I can't figure out a way to combine the horizontal and vertical information retrieved from the OF algorithm: flowx = new Image<Gray, float>(size); flowy = new Image<Gray, float>(size); OpticalFlow.LK(currImg, prevImg, new Si...

OpenCV : How to Load png images with 4 channels?

Hi All. I have been trying to load .png files with transparency channel (RGB and Alph) with no luck. It appears that openCV strips the 4th channel out of the image. Is there any method to load the image with the complete 4 channels including the alpha channel even if I had to modify the OpenCV source code and rebuild it ...

EMGU library OPENCV problem with native memroy management - does really work with mono?!

Hi to everyone, we are working in a project involving the use of EMGU and in particoular the SVM functions of OpenCV and we have a problem using Mono on a Ubuntu platform and we don't have this problem on windows. The problem appears when we call the Emgu.CV.ML.SVM.Train method. All the parameters are correct and we canno't debug the wra...

How to include OpenCV in Cocoa Application?

Hello, when I create an xCode project with the 'Command Line Tool' c++ stdc++ template, i am able to include and compile opencv headers and run some code. But i want to use OpenCV in a 'Cocoa Application' context. When created with that template, i got compile errors when I include the OpenCV headers in main.mm. (I already changed mai...

Is it possible to sell a commercial android app using OpenCV android port?

I'm interested in developing an android app that makes use of an OpenCV android port at http://code.google.com/p/android-opencv/. Particularly, I want to use SURF features which comes embedded in the OpenCV framework but I'm not sure if then I will be able to sell this app. Anyway, is there any non-free app making use of any of the Open...

Configuring CUDA and OpenCV with Visual Studio on 64 bit machine

Hi. I have been trying to configure OpenCV2.1 and CUDA3.1 on Visual Studio 2008 on a 64bit Windows XP machine, since past 1 week. But all in vain. OpenCV alone is working fine. CUDA3.1 alone is working fine as well. I am using CUDA3.1 for 64 bit ... But for OpenCV, I am using 32 bit installation (as provided on Source Forge) - Possible ...

Need PhotoBooth Mac feature in iphone app

Hello All, Have a look on following application http://itunes.apple.com/us/app/fatbooth/id372268904?mt=8 i think they are using the same feature provided my PhotoBooth MAC. Please suggest any api or any other possible solution so that I can build an iphone application Thanks ...

OpenCV link problem

HI I switched from visual studio 2008 to 2010, now I have problem linking my lib files from opencv 1.1 I've added required libs and .h files. but I get following error: "Error 53 error LNK1181: cannot open input file 'cv.lib.obj' C:\Users..\SOLOUTION_NAME\PROJECT_NAME\LINK" ...

Template matching - Image subtraction

I have a project where I am required to subtract an empty template image from an incoming user filled image. The document type is a normal Bank cheque. The aim is to extract the handwritten fields from it by subtracting one image from the empty template image. The issue what i am facing is in aligning these two images, as there is sca...

process 35 x 35 kernal using convolution method

Dear all, I would like to do a convolution using a 35 x 35 kernel. Any suggestion? or any method already in opencv i can use? Because now the cvfilter2d can only support until 10 x 10 kernel. ...

Adding audio to video produced from OpenCV

I've been using OpenCV under python to record video from a capture device. Two output AVI's are written each hour, at the top of each hour the file names are changed. One of the files is the original capture and one uses some of OpenCV's detection functions. As always, things change and audio needs to be recorded which wasn't originally...

Meaning of trackbar

the function cvCreateTrackbar create the trackbar(slider) with the specified name and range,,, my question, what is the trackbar?? ...

How to split up images in OpenCV based on Hough lines?

I'm new to OpenCV and image processing in general. I have photos taken with a camera of food labels for a project I'm working on. I was able to use the cvHoughLines2 function to draw red lines over the lines/bars on the photo. What I want to do now is to chop up the image into several smaller images based on the Hough lines - so that e...

C++, Access Violation using OpenCV to get RGB value of pixel

I'm trying to use OpenCV to find the RGB values of a pixel in an image. so far I've tried the following: int blue = ((uchar *)(img->imageData + y*img->widthStep))[x*img->nChannels + 0]; int green = ((uchar *)(img->imageData + y*img->widthStep))[x*img->nChannels + 1]; int red = ((uchar *)(img->imageData + y*img->widthStep))[x*img->nChann...

android-opencv cvCanny link error

I'm using android-opencv (android-opencv -- http://code.google.com/p/android-opencv/ -- ) , it was built successfully and worked like charm. Then I tried to use "cvCanny" to detect faces but the linker reported an error "undefined reference". I tried lot's of things to fix this, but couldn't solve it. /home1/apps/c/opencv-android/op...

Compiling OpenCV

Hi, I opened up the solution file in the [InstallDir]\_make\opencv.vs2005 and modified one of the .cpp files in the highgui library. While compiling, Visual Studio throws the error - Unable to start progam C:/Users/../AppData/Local/Temp/opencv.build/cv_Debug.Win32/cv.dll The system cannot find the file specified. I thin...

SVD implementation C++

Who can recoment stable and correct implementation SVD method in C++? Preferably standalone implementation (would not want to add large library for one method). I use OpenCV... but openCV SVD return different decomposition(!) for single matrix. I understand, that exists more than one decomposition of simple matrix... but why openCV do l...

C++, Negative RGB values of pixels using OpenCV

I'm using OpenCV to iterate through an image and find the colour of each pixel, here's some of the code I'm using: IplImage* img = cvLoadImage("c:\\test.png"); int pixels = img->height * img->width; int channels = img->nChannels; for (int i = 0; i < pixels*channels; i+= channels) { unsigned char red = img->imageData[i + 2]; u...

imageData function in OpenCV with Python

Hi, I am trying to make some transformations on an image with OpenCV and Python. I started by reading the image with cvLoadImage function, and then I got the image data with imageData function. img = highgui.cvLoadImage("x.png",1) data = img.imageData The problem is, the imageData function returns a string data and when I try to do s...

python-opencv webcam ["noneType"]

few weeks ago I tryed to move my mouse pointer using python and opencv ...I didnt had time to do it and today I accidentally found a piece of code doing that my problem is that I cant open my webcam anymore with opencv ... I`m using ubuntu 10.04 ... /dev/video0 is working I can do luvcview -d /dev/video0 but when I say camera = highgui...