2024-01-11 13:32:49 -05: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...
|
|
|
|
|
*
|
|
|
|
|
* 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!
|
|
|
|
|
*
|
|
|
|
|
* Don't judge the code you might see in there! :)
|
|
|
|
|
**********************************************************************/
|
|
|
|
|
|
|
|
|
|
#include "logger.h"
|
2025-01-23 10:49:17 +01:00
|
|
|
#include "common/image/equation.h"
|
|
|
|
|
#include "common/image/io.h"
|
2025-01-12 20:25:45 +01:00
|
|
|
|
2025-01-13 20:21:49 +01:00
|
|
|
int main(int argc, char *argv[])
|
|
|
|
|
{
|
|
|
|
|
initLogger();
|
2025-01-12 20:25:45 +01:00
|
|
|
|
2025-01-23 10:49:17 +01:00
|
|
|
image::Image img321;
|
|
|
|
|
image::load_img(img321, "/home/alan/Downloads/testimgsave.jpg");
|
2025-01-12 20:25:45 +01:00
|
|
|
|
2025-01-23 10:49:17 +01:00
|
|
|
std::vector<image::EquationChannel> ch;
|
|
|
|
|
ch.push_back({"ch3,ch2,ch1", &img321});
|
|
|
|
|
auto img2 = image::generate_image_equation(ch, "ch2 * ch3, ch2 * ch3, ch1 * ch3");
|
2025-01-12 20:25:45 +01:00
|
|
|
|
2025-01-23 10:49:17 +01:00
|
|
|
image::save_img(img2, "/home/alan/Downloads/testimgsave_NEWEQU.jpg");
|
2024-12-12 19:30:09 +01:00
|
|
|
}
|