You are on page 1of 1

3x7.

png (3-by-7 image)

The table gives the dual-gradient energies of each pixel.


The asterisks denote a minimum energy vertical or horizontal seam.

Vertical seam: { 0 1 1 1 1 1 0 }
1000.00* 1000.00 1000.00
1000.00 294.32* 1000.00
1000.00 236.17* 1000.00
1000.00 325.15* 1000.00
1000.00 251.36* 1000.00
1000.00 279.64* 1000.00
1000.00* 1000.00 1000.00
Total energy = 3386.629883

Horizontal seam: { 1 2 1 }
1000.00 1000.00 1000.00
1000.00* 294.32 1000.00*
1000.00 236.17* 1000.00
1000.00 325.15 1000.00
1000.00 251.36 1000.00
1000.00 279.64 1000.00
1000.00 1000.00 1000.00
Total energy = 2236.167314

You might also like