1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
|
#include <algorithm>
#include <exception>
#include <functional>
#include <iostream>
#include <random>
#include <vector>
#include "tools_for_tests/directories.h"
#include "tools_for_tests/tiffwrappers.h"
#include "sopt/logging.h"
#include "sopt/utilities.h"
// \min_{x} ||\Psi^\dagger x||_1 \quad \mbox{s.t.} \quad ||y - x||_2 < \epsilon and x \geq 0
int main(int argc, char const **argv) {
if (argc != 3) {
std::cout << "Expects two arguments:\n"
"- path to the image to clean (or name of standard SOPT image)\n"
"- path to output image\n";
exit(0);
}
// Read input file
auto const image = sopt::tools::read_standard_tiff(argv[1]);
sopt::utilities::write_tiff(image, argv[2]);
auto const reread = sopt::utilities::read_tiff(argv[2]);
return 0;
}
|