summaryrefslogtreecommitdiffstats
path: root/Algorithms/Part-II/2-SeamCarving/ResizeDemo.java
diff options
context:
space:
mode:
Diffstat (limited to 'Algorithms/Part-II/2-SeamCarving/ResizeDemo.java')
-rw-r--r--Algorithms/Part-II/2-SeamCarving/ResizeDemo.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/Algorithms/Part-II/2-SeamCarving/ResizeDemo.java b/Algorithms/Part-II/2-SeamCarving/ResizeDemo.java
index 1b9f01d..d78eb44 100644
--- a/Algorithms/Part-II/2-SeamCarving/ResizeDemo.java
+++ b/Algorithms/Part-II/2-SeamCarving/ResizeDemo.java
@@ -40,14 +40,16 @@ public class ResizeDemo {
int[] verticalSeam = sc.findVerticalSeam();
sc.removeVerticalSeam(verticalSeam);
}
+
Picture outputImg = sc.picture();
System.out.printf("new image size is %d columns by %d rows\n",
sc.width(), sc.height());
System.out.println("Resizing time: " + sw.elapsedTime() + " seconds.");
- inputImg.show();
- outputImg.show();
+ // inputImg.show();
+ // outputImg.show();
+ outputImg.save("out.png");
}
}