Image correspondences using cross-correlation
Finding corresponding features in a pair of images is the basis of many optic flow, stereo vision and image registration algorithms. One straightforward approach to finding a match is to take a small patch of one image, compute its sliding cross-correlation with the other image, and find a peak. This submission supplies a class which implements this method.
There are many other ways of finding correspondences, but normalised cross-correlation is relatively easy to understand, and fairly effective if a sparse set of matches is sufficient and the change in viewpoint is not too large. This submission is intended largely as a learning aid, though it may be usable for some applications. A demonstration script is therefore included.
The algorithm extends the basic idea in two ways. First, a reverse match may be done on each feature pair to test for consistency; this eliminates many incorrect matches. Second, the correlation computation may be greatly speeded up using the SVD trick implemented in convolve2, at the cost of some accuracy and density of matches.
The core of the submission is object-oriented to facilitate its use with image sequences and to allow efficient reuse of parts of the computation.
Citar como
David Young (2024). Image correspondences using cross-correlation (https://www.mathworks.com/matlabcentral/fileexchange/27269-image-correspondences-using-cross-correlation), MATLAB Central File Exchange. Recuperado .
Compatibilidad con la versión de MATLAB
Compatibilidad con las plataformas
Windows macOS LinuxCategorías
- Image Processing and Computer Vision > Computer Vision Toolbox > Feature Detection and Extraction >
- Image Processing and Computer Vision > Computer Vision Toolbox > Recognition, Object Detection, and Semantic Segmentation > Image Category Classification >
- Image Processing and Computer Vision > Computer Vision Toolbox > Point Cloud Processing > Display Point Clouds >
Etiquetas
Agradecimientos
Inspirado por: Fast 2-D convolution, Extended array indexing
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Descubra Live Editor
Cree scripts con código, salida y texto formateado en un documento ejecutable.
html/
Versión | Publicado | Notas de la versión | |
---|---|---|---|
1.3.0.0 | Minor updates to comments. Update to method used by findpeaks, which now calls imregionalmax. |
||
1.2.0.0 | Revised the properties that control user-specified feature locations and propagation of features in image sequences. |
||
1.1.0.0 | Code tidied; demo extended. |
||
1.0.0.0 |