From 775aa42c09ebe385328d9e23e8523ab73acf2c22 Mon Sep 17 00:00:00 2001 From: WilliamLiuAtCPC <47164078+WilliamLiuAtCPC@users.noreply.github.com> Date: Fri, 6 May 2022 11:16:40 -0700 Subject: [PATCH] finishing part usable --- src/hdrplus_pipeline.cpp | 25 ++++++++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) diff --git a/src/hdrplus_pipeline.cpp b/src/hdrplus_pipeline.cpp index c2c0f68..e064487 100644 --- a/src/hdrplus_pipeline.cpp +++ b/src/hdrplus_pipeline.cpp @@ -8,10 +8,18 @@ #include "hdrplus/align.h" #include "hdrplus/merge.h" #include "hdrplus/finish.h" +#include namespace hdrplus { - +void writeCSV(std::string filename, cv::Mat m) +{ + std::ofstream myfile; + myfile.open(filename.c_str()); + myfile<< cv::format(m, cv::Formatter::FMT_CSV) << std::endl; + myfile.close(); +} + void hdrplus_pipeline::run_pipeline( \ const std::string& burst_path, \ const std::string& reference_image_path ) @@ -26,6 +34,21 @@ void hdrplus_pipeline::run_pipeline( \ // Run merging merge_module.process( burst_images, alignments ); + cv::Mat mergedBayer = burst_images.merged_bayer_image.clone(); + + std::cout<