Slices a provided image into tiles and then shuffles them. You need to restore initial image.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
478 B

#include "application.h"
#include "argsprocessor.h"
int main(int argc, char **argv)
{
srand(static_cast<unsigned int>(time(nullptr)));
ArgsProcessor args(argc, argv);
if (args.broken())
return EXIT_FAILURE;
const auto&[splitting, resolution, path] = args.unpack();
Application app(resolution.x, resolution.y);
if (app.init(path, splitting))
{
app.run();
return EXIT_SUCCESS;
}
else
return EXIT_FAILURE;
}