SeamCarving
SeamCarving copied to clipboard
C++ implementation of size carving/dynamic programming algorithm according to "Seam Carving for Content-Aware Image Resizing" by Shai Avidan and Ariel Shamir.
if the image size of nxm becomes n' x m',the paper said it needs a dp method to determine the correct order of seam carving.As this T(r,c)= min(T(r-1,c)+E(sx(I(n- r- 1×m-c))),T(r,c...
local variable path passed warning fixed. Path array was dynamically allocated.
Hi, I tried to run your code for regular sized image but I got segmentation fault error. It is working if the new width and column have a maximum 3...
$ ./seamCarving inputA.jpg n The size of the image is: (1280, 800) Enter new width: 800 Enter new height: 600 Processing image... Segmentation fault (core dumped)