opencv

How to interpolate between data points?

I am currently developing a piece of software using opencv and qt that plots data points. I need to be able fill in an image from incomplete data. I want to interpolate between the points I have. Can anyone recommend a library or function that could help me. I thought maybe the opencv reMap method but I can't seem to get that to work. T...

Strange OpenCV Distance Transform Results

I'm trying to run a distance transform on a thresholded binary image in order to assist anomaly detection (my hope is that I can detect large changes around the edges of the object), however for some reason, upon running my Distance Transform script, I'm getting a strange banding type of effect. I tested something similar in the Distance...

Video capture on MacOS

Hi to all! i've a problem with openCV library under MacOs 10.4. When I try to execute this row to save some frame captured from webcam CvVideoWriter *writer = cvCreateVideoWriter( "out.avi", CV_FOURCC('M','J','P','G'), fps, ...

How to deallocate memory when a Qt window closes?

I am currently creating a program in Qt, OpenCv, Mac os X. I have a main window, and then a separate window that is opened. I pass the new window several matrix clones in the constructor: ImageWindow *imageWin = new ImageWindow( cvCloneMat(getData->getMasterRawMat(1)), cvCloneMat(getData->getMasterRawMat(2)), cvCloneMat(get...

opencv : How to set Project Dependencies in Visual Studio 2005 ?

I have four projects: cv cxcore highgui TemplateMatching The project dependencies: project cv depends on cxcore project highgui depends on cxcore project TemplateMatching depends on cv, cxcore, highgui but there are still some errors: Build started: Project: highgui, Configuration: Debug Win32 ..... LINK : ....\b...

Vector of pointers problem

Hi, I am having quite a bit of trouble with trying to push_back an object of my custom class to a vector of pointers with my custom class as the type. Please see the code below along with the error received. I am using Eclipse with the CDT plugin and OpenCV on windows xp. I have spent so much time trying to find an answer but to no ava...

Convert IplImage into a JPEG without using CvSaveImage in OpenCV

I wish to convert an IplImage into a JPEG image in the memory (in order to stream it as M-JPEG frame over sockets) . I know I can use CvSaveImage for this, that creates a jpeg file, I read it again and then stream it over the network. I wish to avoid this extra disk write-read ops for faster operation. Any insights ? ...

OpenCV with Network Cameras

I'm using openCV 1.1pre1 under Windows. I have a network camera and I need to grab frames from openCV. That camera can stream a standard mpeg4 stream over RTSP or mjpeg over http. I've seen many threads talking about using ffmpeg with openCV but I cannot make it work. How I can grab frames from an IP camera with openCV? Thanks Andrea ...

Why does OpenCV give me a black screen?

Hi, I'm currently trying to use OpenCV (using the Processing library). However, when I try to run any examples (either the Processing ones or the C ones included with OpenCV), I see nothing but black instead of input from the camera. The camera's LED indicator does turn on.. has anyone had the same problem? is my camera somehow incompat...

CoInitializeEx fails when calling OpenCV method cvLoadImage()

Hello, I am trying to integrate some OpenCV functionality into my application. Currently I have code set up with DirectShow to get a video feed from my camera, which is then showed in an MFC window. This code cannot be changed or removed. The code runs completely fine, but regardless of the location i place the following line of code...

Differences between AForge and OpenCV

Hello, I am just learning about computer vision and C#. It seems like two prominent image processing libraries are OpenCV and AForge. What are some of the differences of the two? I am making a basic image editor in C# and while researching I have come across articles on both. But I don't really know why I would choose one over the othe...

DirectX and OpenCV

So i have a program written already that captures the image from a webcam, into a vector called pBuffer. I can easily acess the RGB pixel information of each pixel, simply by pBuffer[i]=R;pBuffer[i+1]=G;Buffer[i+2]=B. No problem in here. The next step is now create an IplImage* img, and fill it in with the information of the pBuffer......

Webcam driver settings?

I'm working on a C++ application that uses OpenCV/ffmpeg to capture video frames from my built-in webcam (Studio XPS 13). This application is really sensitive to those auto light adjustments that the webcam driver does.... is there any way I can change this behavior? Either via some webcam driver settings app, or in code (you may suggest...

OpenCV cvSaveImage Jpeg Compression Factor

I am using OpenCV and saving as a jpeg using the cvSaveImage function, but I am unable to find the jpeg compression factor used by this. What's cvSaveImage(...)'s Jpeg Compression factor How can I pass the compression factor when using cvSaveImage(...) ...

OpenCV to use in memory buffers or file pointers

The two functions in openCV cvLoadImage and cvSaveImage accept file path's as arguments. For example, when saving a image it's cvSaveImage("/tmp/output.jpg", dstIpl) and it writes on the disk. Is there any way to feed this a buffer already in memory? So instead of a disk write, the output image will be in memory. I would also like t...

Unhandled exception at 0x10012c5d (highgui110.dll)

Hi there I had OpenCV lib installed on my machine and all was working fine, until I decided to try the new version of the lib 1.1pre. Since that moment I get the following error: Unhandled exception at 0x10012c5d (highgui110.dll) in foo.exe: 0xC0000005: Access violation reading location 0x719b3856. I've tryied to uninstall and reinst...

Saving an image in OpenCV

I am new to OpenCV, and trying to capture an image, and then save it to a file. I am posting the code for your reference, below. The jpg file is being saved, but it is black. // Capture the Image from the webcam CvCapture *pCapturedImage = cvCreateCameraCapture(0); // Get the frame IplImage *pSaveImg = cvQueryFrame(pCapturedImage); /...

OpenCV lib and WM

Hi to all I just made an application using the OpenCV lib, and will be great if I can use this computer vision application on my PDA, which has Windows Mobile 6.0 on it. Do you have any idea about how can I do this? ...

How to use EmguCV (OpenCV in C#) ?

Hello, I don't understand what I have to install to make EmguCV work.I opened the sample-src provided with EmguCV ,but I get errors in Visual studio 2008. I also tried other .NET wrappers for OpenCV,but none of them worked(including the examples). A message "(sample program) has encounted a problem and needs to close.Please report this...

OpenCV need to convert IPL_DEPTH_32S to IPL_DEPTH_32F

Hi, I have a IPL_DEPTH_32S image (meaning I use 32bit integer to represent pixels) and I need to convert it to IPL_DEPTH_32F, so that I can apply template matching. Does anyone know the formula to convert the integers to floats, or of any functions built in to OpenCV that can do this? ...