diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2013-12-12 15:40:02 +0100 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2013-12-12 15:40:02 +0100 |
commit | e1ec44b3078a20c4e7ab85e30083063205159761 (patch) | |
tree | 195bad21bd885dc6a1f78ba741b16a1355ef4d92 /Algorithms/Part-II/2-SeamCarving/SeamCarver.java | |
parent | a60ba769f451259caba14886fdb206593b92df76 (diff) | |
download | coursera-e1ec44b3078a20c4e7ab85e30083063205159761.zip coursera-e1ec44b3078a20c4e7ab85e30083063205159761.tar.gz |
Algorithms-II : 2-SeamCarving: add prototypes and data
Diffstat (limited to 'Algorithms/Part-II/2-SeamCarving/SeamCarver.java')
-rw-r--r-- | Algorithms/Part-II/2-SeamCarving/SeamCarver.java | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/Algorithms/Part-II/2-SeamCarving/SeamCarver.java b/Algorithms/Part-II/2-SeamCarving/SeamCarver.java new file mode 100644 index 0000000..48e7f6e --- /dev/null +++ b/Algorithms/Part-II/2-SeamCarving/SeamCarver.java @@ -0,0 +1,54 @@ +/* vim: set expandtab tabstop=4 shiftwidth=4 : */ + +public class SeamCarver +{ + public SeamCarver(Picture picture) + { + } + + public Picture picture() + { + // current picture + return null; + } + + public int width() + { + // width of current picture + return 0; + } + + public int height() + { + // height of current picture + return 0; + } + + public double energy(int x, int y) + { + // energy of pixel at column x and row y in current picture + return 0; + } + + public int[] findHorizontalSeam() + { + // sequence of indices for horizontal seam in current picture + return null; + } + + public int[] findVerticalSeam() + { + // sequence of indices for vertical seam in current picture + return null; + } + + public void removeHorizontalSeam(int[] a) + { + // remove horizontal seam from current picture + } + + public void removeVerticalSeam(int[] a) + { + // remove vertical seam from current picture + } +} |