Passing ORB Descriptors to the Stitcher Class
I am working on an image stitching project that requires me to use features that I calculate myself. The reason I am doing so is because I am stitching together images of crop fields (taken via drone), each of which look so similar that finding the same descriptors in adjacent images is nearly impossible. My current strategy is to calculate descriptors for the first image, and then tracking those throughout subsequent images using Kanade Lucas Tomasi optical flow estimation. I am using ORB descriptors, and would like to be able to pass in the descriptors calculated using optical flow for subsequent images to the stitcher. Is this possible? Is this method the best for what I am trying to accomplish? Regards, Jacob
If you use Stitcher class I don't think it's possible because you need to modify source code. But you can use this example to start your project and there is no problem.
Hmm one way to improve your stitching could be to use the knowledge of your flight pattern of the drone. Since you know which two frames are following eachother, you can add a region of interest at the top of frame 1 and at the bottom of frame 2 and only try to match high score features there. That might solve the problem already.
Would it be possible to modify the source code to use my features and then recompile? I am using python, so how would I do this (I can program in C++, however).
You will need to locate the OpenCV source code responsible for the feature selection and adapt it internally then rebuilt OpenCV from scratch and hope all works in Python wrappers.