Usage Install opencv, you may need to edit CMakeLists.txt to include opencv directory. Use the following commands to compile the code: mkdir build cd build cmake .. make Run: ./build/seam_carving data/test_image.jpg