10x10.png (10-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: { 8, 7, 7, 7, 7, 8, 9, 8, 7, 7 }

energy[][]:
 335.29   197.20   231.08   194.09   222.00   226.00   244.63   260.37   169.43*  254.98  
 275.95   136.73   272.84   254.64   280.20   178.56   236.84   128.93*  172.62   248.20  
 183.01   222.06   156.22   186.79   208.01   171.06   295.56   125.46*  259.00   231.78  
 248.53   228.47   252.25   168.24   164.97   127.18   209.46   202.49*  229.03   232.27  
 260.02   293.85   274.51   217.81   165.63   175.67   223.37   194.78*  243.35   217.28  
 117.69   208.68   294.31   243.53   161.69   253.29   236.73   217.57   221.35*  197.18  
 335.71   318.51   222.38   240.88   239.79   220.45   259.36   269.76   264.14   200.68* 
 271.41   225.20   270.73   187.06   197.58   165.59   255.09   276.89   124.04*  298.57  
 259.57   222.50   204.43   252.65   270.87   199.05   324.13    90.64*  245.94   248.36  
 272.10   324.87   216.40   218.43   177.66   174.61   178.31   125.05*  228.36   240.44  

distTo[][]:
 335.29   197.20   231.08   194.09   222.00   226.00   244.63   260.37   169.43*  254.98  
 473.16   333.93   466.93   448.74   474.29   400.56   462.84   298.36*  342.06   417.64  
 516.94   555.99   490.15   635.53   608.57   571.62   593.92   423.82*  557.36   573.84  
 765.47   718.62   742.40   658.39   736.59   698.80   633.29   626.32*  652.85   789.63  
 978.64  1012.47   932.90   876.21   824.03   808.95   849.69   821.10*  869.66   870.13  
1096.33  1141.59  1170.52  1067.56   970.65  1062.25  1045.68  1038.67  1042.45* 1066.84  
1432.04  1414.85  1289.94  1211.53  1210.44  1191.10  1298.03  1308.43  1302.80  1243.13* 
1686.26  1515.14  1482.26  1397.50  1388.68  1356.68  1446.19  1574.92  1367.18* 1541.71  
1774.71  1704.76  1601.93  1641.33  1627.56  1555.73  1680.81  1457.81* 1613.12  1615.54  
1976.86  1926.80  1818.33  1820.36  1733.39  1730.33  1636.12  1582.86* 1686.18  1853.55  

total energy of vertical seam = 1582.861250

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

horizontal seam: { 2, 1, 2, 3, 3, 3, 3, 2, 1, 2 }

energy[][]:
 335.29   197.20   231.08   194.09   222.00   226.00   244.63   260.37   169.43   254.98  
 275.95   136.73*  272.84   254.64   280.20   178.56   236.84   128.93   172.62*  248.20  
 183.01*  222.06   156.22*  186.79   208.01   171.06   295.56   125.46*  259.00   231.78* 
 248.53   228.47   252.25   168.24*  164.97*  127.18*  209.46*  202.49   229.03   232.27  
 260.02   293.85   274.51   217.81   165.63   175.67   223.37   194.78   243.35   217.28  
 117.69   208.68   294.31   243.53   161.69   253.29   236.73   217.57   221.35   197.18  
 335.71   318.51   222.38   240.88   239.79   220.45   259.36   269.76   264.14   200.68  
 271.41   225.20   270.73   187.06   197.58   165.59   255.09   276.89   124.04   298.57  
 259.57   222.50   204.43   252.65   270.87   199.05   324.13    90.64   245.94   248.36  
 272.10   324.87   216.40   218.43   177.66   174.61   178.31   125.05   228.36   240.44  

distTo[][]:
 335.29   473.16   550.82   744.91   952.60  1168.95  1275.40  1477.44  1515.43  1698.88  
 275.95   319.74*  592.57   730.60   942.95  1030.77  1217.07  1346.00  1443.90* 1692.10  
 183.01*  405.06   475.96*  662.75   852.21   980.23  1231.91  1271.28* 1530.27  1675.68* 
 248.53   411.47   657.31   644.20*  809.17*  936.35* 1145.81* 1348.31  1500.31  1732.58  
 260.02   411.54   600.88   818.69   809.83   984.84  1159.72  1340.60  1583.95  1717.58  
 117.69   326.37   620.68   792.28   951.32  1063.12  1221.56  1377.29  1561.95  1759.13  
 335.71   436.20   548.75   789.63   975.60  1153.84  1322.49  1491.32  1641.42  1726.11  
 271.41   484.77   706.94   735.81   933.39  1098.98  1354.07  1599.37  1525.42  1824.00  
 259.57   482.07   686.50   939.15  1006.68  1132.43  1423.11  1401.38  1647.32  1773.78  
 272.10   584.45   698.48   904.93  1082.59  1181.29  1310.74  1435.79  1629.74  1870.18  

total energy of horizontal seam = 1675.680600

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