Add a first version of iterative seam carving.
[seam-carving.git] / src / entropy_main.cc
blob47284a51e8ad1833dd6b910f4662303424e7d231
1 #include <iostream>
3 #include "all.hh"
5 using namespace mln;
6 using namespace mln::value;
8 int main (int argc, char** argv)
10 if (argc != 3)
12 std::cerr << "usage: " << *argv << " in.ppm out.pgm\n";
13 return 1;
16 image2d<rgb8> img = load (argv[1]);
17 image2d<float> nrg = get_entropy (img);
18 save (nrg, argv[2]);