function [transposedContourChains] = transposeContourChainsInCellArray(contourChains)
% Given a cell array of 2 x K contour chains, this function transposes each
% element of the array, so that it is K x 2.

    transposedContourChains = cell(1, length(contourChains));
    
    for k = 1 : length(contourChains)
        transposedContourChains{k} = contourChains{k}';
    end
end
