OpenCV (Open Source Computer Vision) is a cross-platform library of programming functions for real time computer vision.
1
vote
0answers
13 views
Python GUI for cropping and saving images quickly
I wrote a simple GUI applications to help me select 'positive' regions of a bunch of photos for the purpose of training an object detectir using OpenCV Haar Cascades.
For training purposes, you need ...
2
votes
0answers
39 views
Optimizing OpenCV's undistortPoints
I am working on improving the runtime of code that undistorts every pixel point in an image. Currently each point is undistorted via a call to ...
3
votes
1answer
162 views
Shortest path in image
This code takes an image and detects a global shortest path from the top to bottom row, with the requirement that top and bottom column index be the same. For this, it scans through each element on ...
5
votes
1answer
135 views
Histogram of a RGB image using OpenCV
I wrote some C++ code using the OpenCV library. The program reads the image and plot histograms of Red, Green, and Blue components. I am very new to OpenCV so I need comments and advice. What do you ...
2
votes
0answers
71 views
Performane issue for Matlab-like reshape in OpenCV
I am translating Matlab code to OpenCV. The code involves lots of reshaping of large matrices. As the Matlab reshape differs from OpenCV you can't just use OpenCV reshape.
Here is why: Let's suppose ...
2
votes
1answer
98 views
Simple speed up of C++ OpenMP kernel
This function calculates the standard deviation of a patch, given a kernel size and greyscale OpenCV image. The middle pixel of the patch is kept if stdev of the patch is below the given threshold, ...
0
votes
0answers
81 views
OpenCV 2.4.10 /C++ displaying image
Please comment about speed and memory optimization for my code. It is about converting a 10 bit raw image (bayer pattern) from int** and displaying some lines.
...
2
votes
0answers
212 views
fftshift implementation for OpenCV
I'm trying to implement fftshift from matlab for OpenCV. Can you please review the correctness of my algorithm? Have I missed something? Also, is there a better and faster way to do it?
...
0
votes
1answer
486 views
Real time head segmentation using OpenCV
I am using OpenCV 2.410 to implement a project. My project allows to segment head from video sequence which get from camera. First, I detect the head region and then apply segmentation method for that ...
0
votes
0answers
40 views
5
votes
1answer
278 views
Tracking Eye Movements
The following class (that was my first class ever in python) was used in an eye tracking context. Imagine a context where you always will have a single gaze-point and some closed contours. How can I ...
3
votes
0answers
152 views
Grayscale bilinear patch extraction - SSE optimization
My program makes an intensive use of small sub-images extracted using bilinear interpolation from larger grayscale images (some call this problem subpixel translation).
I am using the following C++ ...
5
votes
2answers
482 views
More optimized approach of Dijkstra's algorithm
I need a graph-search algorithm that is enough in our application of robot navigation and I chose Dijkstra's algorithm.
We are given the gridmap which contains free, occupied and unknown cells where ...
11
votes
1answer
497 views
Custom iterator implementation returning OpenCV Mat
I have written an adapter class that allows iteration over the rows of a Mat object from OpenCV. For those interested, here is the Mat documentation, but the ...
3
votes
1answer
173 views
Combining multiple files of uncommon filetype into one
I've created a utility program for combining multiple .vec files into one. The program's main application is in training haar cascade classifiers in openCV (details). This is my first open source ...
2
votes
1answer
678 views
Track a fix area with meanshift -OpenCV
I need your help in OpenCV. I'm a student and am working on a project in which involves a little autonomous car. I use Python for the main programming language.
I have some problem with my meanshift. ...
6
votes
1answer
269 views
Replace subimage by its average value
I have the input image in, and the mask image lev (which label each pixel as a number from 1 to ...
2
votes
2answers
22k views
OpenCV 2.4.5 face detection
This code is supposed to grab live camera feed, display feed in a window, mark in rectangles all detected faces, get the biggest detected face (by total area), display it in separate window, convert ...
7
votes
3answers
4k views
Density-based clustering of image keypoints
I have implemented the DBSCAN algorithm for clustering image keypoints. I have been following the pseudocode on the wiki page pretty strictly, and it's working, but I get the feeling its a very naive ...
10
votes
2answers
529 views
OpenCV Mat processing time
I'd like to know whether having different variables for the src (source) and dst (destination) of an OpenCV function will have an effect on the processing time. I have two functions below
that does ...