https://github.com/nobuotsukamoto/phasecorrelate_example
https://github.com/nobuotsukamoto/phasecorrelate_example
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/nobuotsukamoto/phasecorrelate_example
- Owner: NobuoTsukamoto
- License: mit
- Created: 2020-01-05T05:56:41.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2020-01-05T05:57:42.000Z (almost 6 years ago)
- Last Synced: 2024-10-29T08:41:02.790Z (11 months ago)
- Language: C++
- Size: 191 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# PhaseCorrelate examples (Python / C++).
## About
OpenCV PhaseCorrelate examples (Python / C++).
See here for details of [PhaseCorrelate API](https://docs.opencv.org/3.4.4/d7/df3/group__imgproc__motion.html#ga552420a2ace9ef3fb053cd630fdb4952).## Environment
- OpenCV 3.4.4 (or higher)## How to build (C++ examples)
```
$ cd cplus
$ cmake .
$ make
```## How to use
# C++
phase_corr
Outputs the displacement (pixel unit) in X and Y directions.
```
$ ./phase_corr ../lena_src.jpg ../lena_dst.jpg
3.0277, 3.98623
```# Python
phase_correlate.py
Outputs the correlation value in addition to the deviation in the X and Y directions.
```
python3 phase_correlate.py ../lena_src.jpg ../lena_dst.jpg
((3.0276976107825533, 3.986227864315339), 0.8357693982543424)
```