7x10.png (7-by-10 image)

The energy[][] matrix gives the dual-gradient energy of each pixel.

The distTo[][] matrix gives the energy of the minimum energy path from
a pixel in the top-most row (or left-most column) to each pixel.

The asterisks denote the minimum energy vertical (or horizontal) seam.

-----------------------------------------------------

vertical seam: { 4, 3, 4, 3, 4, 3, 3, 2, 2, 1 }

energy[][]:
 344.42   126.25   303.36   212.17   164.64*  237.46   296.24  
 274.72   183.54   295.55   193.89*  205.60   294.62   199.59  
 178.28   255.25   274.19   302.82   170.77*  306.23   382.94  
 312.33   253.63   258.40   174.81*  389.01   231.09   284.88  
 213.64   319.87   253.40   353.10   253.29*  369.46   133.43  
 251.43   244.46   339.17   113.74*  245.15   285.13   261.79  
 220.43   281.78   293.41   260.67*  200.70   227.75   299.64  
 237.01   161.37    72.79*  263.82   290.37   282.19   205.91  
 272.15   258.97   203.24*  293.78   169.46   230.88   179.80  
 297.54   137.91*  279.76   264.47   300.23   119.01   342.91  

distTo[][]:
 344.42   126.25   303.36   212.17   164.64*  237.46   296.24  
 400.97   309.79   421.80   358.53*  370.23   459.25   437.05  
 488.07   565.04   583.98   661.35   529.30*  676.46   819.99  
 800.40   741.70   823.44   704.11*  918.31   760.39   961.34  
 955.34  1061.58   957.51  1057.21   957.39* 1129.85   893.82  
1206.77  1199.80  1296.68  1071.13* 1202.54  1178.95  1155.60  
1420.23  1481.58  1364.54  1331.80* 1271.83  1383.35  1455.25  
1657.24  1525.91  1404.59* 1535.65  1562.20  1554.03  1589.26  
1798.06  1663.56  1607.83* 1698.37  1705.11  1784.91  1733.83  
1961.10  1745.74* 1887.60  1872.31  1998.59  1824.12  2076.73  

total energy of vertical seam = 1745.743172

-----------------------------------------------------

horizontal seam: { 6, 7, 7, 7, 8, 9, 8 }

energy[][]:
 344.42   126.25   303.36   212.17   164.64   237.46   296.24  
 274.72   183.54   295.55   193.89   205.60   294.62   199.59  
 178.28   255.25   274.19   302.82   170.77   306.23   382.94  
 312.33   253.63   258.40   174.81   389.01   231.09   284.88  
 213.64   319.87   253.40   353.10   253.29   369.46   133.43  
 251.43   244.46   339.17   113.74   245.15   285.13   261.79  
 220.43*  281.78   293.41   260.67   200.70   227.75   299.64  
 237.01   161.37*   72.79*  263.82*  290.37   282.19   205.91  
 272.15   258.97   203.24   293.78   169.46*  230.88   179.80* 
 297.54   137.91   279.76   264.47   300.23   119.01*  342.91  

distTo[][]:
 344.42   400.97   665.18   869.55   994.54  1231.99  1528.23  
 274.72   361.82   657.37   829.90  1035.50  1276.20  1431.59  
 178.28   433.52   636.01   938.83   981.58  1287.81  1595.61  
 312.33   431.91   690.31   810.82  1199.83  1212.67  1497.55  
 213.64   533.51   685.31  1038.42  1042.23  1329.87  1334.52  
 251.43   458.10   797.26   788.94   960.41  1201.09  1405.49  
 220.43*  502.20   675.20   715.26   915.96  1143.71  1443.35  
 237.01   381.80*  454.59*  718.40* 1005.63  1170.05  1324.65  
 272.15   495.98   585.04   748.36   887.86* 1118.74  1186.67* 
 297.54   410.06   689.83   849.52  1048.59  1006.87* 1349.78  

total energy of horizontal seam = 1186.667406

-----------------------------------------------------
