Ask Your Question

RonM's profile - activity

2017-10-05 01:40:40 -0500 received badge  Popular Question (source)
2014-11-26 11:38:21 -0500 asked a question Python OpenCV installation in ubuntu 12.04 - How to access FAST,SURF etc

Hi all, I downloaded opencv 2.4.9 and managed to get Python2.7 up and running with opencv. But when I checked the version using

import cv

I got

$Rev: 4557 $'

From what I read on other threads, this is an old version and I can also see that the interpreter is using opencv-2.3.1 for some reason. So I don't have FAST,SURF and all those goodies.

I used the following build command from this site


This question is very similar to my problem

But I don't have the old 2.4.6 installation suggested and would also like to use a newer version if possible.

Already spent a good bit of time trying to fix this but with no success. Any help would be much appreciated!

Thanks, Ronen

2014-09-01 08:18:49 -0500 asked a question OpenCv Warp optimization


I'm trying to use the opencv stitching pipeline to develop a prototype for a custom stitching flow. The stitching is between 2 pictures, the resolution of each is about 1200x960.

I noticed that the warp perspective function is pretty lengthy, roughly 0.5 seconds for each picture.

Any estimates of how much this could be improved upon and by what method (besides improving hardware)?

Thanks in advance!


2014-09-01 07:56:32 -0500 commented question Stitching: how to get camera translation into bundle adjustment?

Have you tried using the stitching module for the setup? I've used it successfully for a setup with 2 cameras 5 cm apart (not a single rotating camera) .

2014-08-20 07:43:35 -0500 commented question Providing feature rich overlap for stitching 2 photos?

Hi Balaji, I don't have photos, I need to create the setting which I will then photograph. I think I wasn't clear enough as to what I'm trying to do, so I updated the original post to clarify my goal.

2014-08-20 07:39:53 -0500 received badge  Editor (source)
2014-08-19 08:41:17 -0500 asked a question Providing feature rich overlap for stitching 2 photos?


I would like to stitch two photos (horizontally) with a minimum of overlap between them. But I can control what is in the overlap of the two photos, as indicated by the orange segment shown in the picture. image description

For example, I could print out a pattern that will help the feature finding step in the open-cv stitcher algorithm. Using the SURF feature detector.

My question is: what sort of pattern (i.e chessboard, or something with lots of corners, etc) would be the best for the task of feature finding and stitching the photos? Best = most pairwise matches can be found between the two photos.

I will clarify my goal: I have two cameras who are fixed one relative to the other (assuming negligible distance between them for homography calculation purposes) and I would like to use the stitching process to find the transformation between the cameras. So I don't have actual photos, my aim is to create a "calibration target" which I can photograph using the 2 cameras. So I can decide what the photos will be of, and don't have any 2 specific photos right now. I want a minimum overlap between the fields of view of the cameras (not more than a sheet of paper at 10 meters distance from the cameras), that's why I'm trying to make what little overlap I have count the most (thus I want to "pack" it with easy to identify features). Then, after I have computed the transformation from the calibration phase, I can use it to speed up the stitching process for images taken from the cameras in the future.

Thanks in advance,


2014-07-16 04:14:07 -0500 asked a question Stitching images from 2 overlapping cameras stationary relative to each-other

Hi all, I'm new to CV, and trying to stitch together a video of two cameras which are stationary one relative to the other. The details:

The cameras are one beside the other and I can adjust the rotation angle between them. The cameras will be moving with respect to the world, so the scene will be changing.

The amount of frames to be stitched is roughly 300 (each frame is composed of two pictures, one from each camera).

I don't need to do the stitching in real time, but I want to do it as fast as possible using the fact that I know the relative positions of the cameras. Resolution of each picture is relatively high, around 900x600.

Right now I'm at the stage where I have code to stitch 2 single pictures, courtesy of

The main stages are:

  1. Using SURF detector to find SURF descriptor in both images
  2. matching the SURF descriptor using FLANN Matcher
  3. Postprocessing matches to find good matches
  4. Using RANSAC to estimate the Homography matrix using the matched SURF descriptors
  5. Warping the images based on the homography matrix

My question is: How can I optimize the process based on the fact that I already know the camera positions?

Ideally I would like to do some initial calculation once to find the transform between the camera perspectives, and then reuse it. But not sure with my rudimentary CV knowledge if this is indeed possible, and what transform I could use if so.

I understand that calculating the homography matrix once and reusing it won't work, since the scene is changing.

Two other possibilities:

  1. I found a similar case (but stationary scene) where the transform is computed once and reused. Which transform is this, and could it work in my case?

  2. The other possibility I found is to use the initial knowledge to find the overlapping region between two pictures, and ignore the rest of the pictures to save time. Relevant thread

Any help would be greatly appreciated!