satdump/src-testing/main.cpp

27 lines
850 B
C++
Raw Normal View History

/**********************************************************************
2022-03-20 20:56:32 +01:00
* This file is used for testing random stuff without running the
* whole of SatDump, which comes in handy for debugging individual
* elements before putting them all together in modules...
2022-03-20 20:56:32 +01:00
*
* If you are an user, ignore this file which will not be built by
* default, and if you're a developper in need of doing stuff here...
* Go ahead!
2022-03-20 20:56:32 +01:00
*
* Don't judge the code you might see in there! :)
**********************************************************************/
2022-03-28 11:51:13 +02:00
#include "logger.h"
2023-09-07 08:37:08 +02:00
#include "common/image/earth_curvature.h"
2023-09-08 22:47:06 +02:00
int main(int argc, char *argv[])
{
initLogger();
image::Image<uint16_t> image1;
image1.load_png(argv[1]);
auto image2 = image::earth_curvature::correct_earth_curvature(image1, 820, 2800, 1);
image2.save_png(argv[2]);
2023-07-23 23:13:13 +02:00
}