## Author: Laurent ## Created: 2020-11-02 function [X,Y] = vectorisation(I) I_g = I(:, 1:end-1); I_d = I(:, 2:end ); X = reshape(I_g,[],1); Y = reshape(I_d,[],1); endfunction