Was feeding wrong dimension to GetEdgesEnergy(), so rightmostindices were just duplicating (not apparent with square images, of course), leading to vertical seams