From: Max Value Date: Sun, 14 Sep 2025 22:35:24 +0000 (+0100) Subject: changes for new system X-Git-Url: https://git.ozva.co.uk/?a=commitdiff_plain;h=52f7dce9c0a1afd34c5e95c6d4840d6fe1256ba8;p=rust_fft changes for new system --- diff --git a/Notes.md b/Notes.md new file mode 100644 index 0000000..182f771 --- /dev/null +++ b/Notes.md @@ -0,0 +1,9 @@ +# Rust FFT + +![Forest](src/calibration.jpg) + +## To-do + +- Come up with better name +- Implement LUT color correction, look into maths first +- qr_code to tag each of the images with the spare channel diff --git a/build.rs b/build.rs index dd3bf66..53a6b21 100644 --- a/build.rs +++ b/build.rs @@ -5,7 +5,7 @@ fn main() { cc::Build::new() .file("src/perspective.cpp") .cpp(true) - .include("/usr/share/include/opencv4/opencv2/") + .include("/usr/share/include/opencv2/") .compile("perspective.a"); println!("cargo::rustc-flags=-lopencv_core -lopencv_highgui -lopencv_xfeatures2d -lopencv_calib3d -lopencv_videoio -lopencv_imgcodecs -lopencv_imgproc -lopencv_features2d"); diff --git a/src/perspective.cpp b/src/perspective.cpp index b88b394..4af6e19 100644 --- a/src/perspective.cpp +++ b/src/perspective.cpp @@ -1,10 +1,10 @@ -// g++ ./perspective.cpp -I/usr/share/include/opencv4/ -lopencv_core -lopencv_calib3d -lopencv_highgui -lopencv_xfeatures2d -lopencv_features2d -lopencv_imgproc -lopencv_videoio -lopencv_imgcodecs -lopencv_features2d -o perspective.a +// g++ ./perspective.cpp -I/usr/share/include/opencv2/ -lopencv_core -lopencv_calib3d -lopencv_highgui -lopencv_xfeatures2d -lopencv_features2d -lopencv_imgproc -lopencv_videoio -lopencv_imgcodecs -lopencv_features2d -o perspective.a // -#include "opencv4/opencv2/core.hpp" -#include "opencv4/opencv2/highgui.hpp" -#include "opencv4/opencv2/xfeatures2d.hpp" -#include "opencv4/opencv2/calib3d.hpp" -#include "opencv4/opencv2/imgproc.hpp" +#include "opencv2/core.hpp" +#include "opencv2/highgui.hpp" +#include "opencv2/xfeatures2d.hpp" +#include "opencv2/calib3d.hpp" +#include "opencv2/imgproc.hpp" using namespace cv; using namespace cv::xfeatures2d;