diff options
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 + } +} |