2023-05-04 16:37:33 +08:00
|
|
|
#define EIGEN_USE_MKL_ALL
|
|
|
|
|
|
|
|
|
|
#include <iostream>
|
|
|
|
|
#include <algorithm>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#include <complex>
|
|
|
|
|
|
2023-05-05 16:47:49 +08:00
|
|
|
#include "common/ceMatchedFilterHandling.h"
|
2023-05-04 16:37:33 +08:00
|
|
|
#include "MatlabReader.h"
|
2023-06-02 15:51:45 +08:00
|
|
|
#include "startReconstructions.h"
|
2023-06-05 14:55:53 +08:00
|
|
|
#include "spdlog/spdlog.h"
|
|
|
|
|
#include "spdlog/sinks/stdout_color_sinks.h"
|
|
|
|
|
#include "spdlog/sinks/basic_file_sink.h"
|
|
|
|
|
|
|
|
|
|
std::shared_ptr<spdlog::logger> getLogger(const char* title) {
|
|
|
|
|
auto console_sink = std::make_shared<spdlog::sinks::stdout_color_sink_mt>();
|
|
|
|
|
console_sink->set_level(spdlog::level::info);
|
|
|
|
|
console_sink->set_pattern(fmt::format("[%Y-%m-%d %T .%e][{}] [%^%l%$] %v", title));
|
|
|
|
|
std::shared_ptr<spdlog::logger> logger(new spdlog::logger(title, {console_sink}));
|
|
|
|
|
logger->set_level(spdlog::level::info);
|
|
|
|
|
logger->flush_on(spdlog::level::info);
|
|
|
|
|
return logger;
|
|
|
|
|
}
|
|
|
|
|
|
2023-05-04 16:37:33 +08:00
|
|
|
int main()
|
|
|
|
|
{
|
2023-06-05 14:55:53 +08:00
|
|
|
auto defaultLogger = getLogger("Main");
|
|
|
|
|
spdlog::set_default_logger(defaultLogger);
|
|
|
|
|
SPDLOG_INFO("start");
|
2023-06-02 15:51:45 +08:00
|
|
|
Recon::startReconstructions();
|
2023-06-05 14:55:53 +08:00
|
|
|
SPDLOG_INFO("finish");
|
2023-05-04 16:37:33 +08:00
|
|
|
return 0;
|
|
|
|
|
}
|