function permutation = addCycle2Img(cycle,permutation) imCycle = [cycle(2:end), cycle(1)]; permutation(cycle) = imCycle;