summaryrefslogtreecommitdiffstats
path: root/Algorithms/Part-II/2-SeamCarving/SeamCarver.java
blob: 48e7f6efc71d8e136f026e491b8eb29218b3fff3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
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
    }
}