Crates.io | correlation_flow |
lib.rs | correlation_flow |
version | 0.1.4 |
source | src |
created_at | 2020-09-01 15:20:00.626737 |
updated_at | 2020-10-01 00:09:57.871884 |
description | Optical flow measurement with image phase correlation |
homepage | |
repository | https://github.com/tstellanova/correlation_flow |
max_upload_size | |
id | 283426 |
size | 49,502 |
Optical flow calculation using image correlation for no_std rust. This library will compare small grayscale image blocks (limited to 64x64 pixels currently), and detect the phase correlation between them. This potentially enables applications such as:
The examples are designed to be used with J-Link / RTT. We provide a couple different ways to run these:
Edit config to select the segger.gdb
runner
In one shell run: ./start_gdb_server_jlink.sh
In another shell run: JLinkRTTClient
Then run your choice of examples
This example is intended to run on the PX4FLOW hardware. It simply compares two image frames stored in the app binary.
cargo run --release --example px4flow
We used ImageMagick's convert
command to generate raw 8-bit grayscale
images from png files using eg:
convert 64sq_253_46.png -depth 8 64sq_253_46.gray