diff --git a/src/seam-carving.cpp b/src/seam-carving.cpp index 3f40ba0..53f75cf 100644 --- a/src/seam-carving.cpp +++ b/src/seam-carving.cpp @@ -277,7 +277,7 @@ void recompute_energy_along_seam( if ((0 < (opt_seam[j] + i)) && ((opt_seam[j] + i) < dim_large - 1)) { compute_energy_for_pixel(carved_img, newWidth, newHeight, x, y, nbChannels, nbColorChannels, - output_energy[width * y + x].first); + output_energy[width * y + x].second); } } } @@ -438,9 +438,7 @@ auto seam_carving(unsigned char *source, int width, int height, int nbChannels, std::cout << std::endl; // Add newline after ProgressBar if (test_energy) { - return std::make_tuple(test_energy_output, width, height, nbChannels); - } else { return std::make_tuple(source_img, curWidth, curHeight, nbChannels); }