function SimilarityMatrix = similarityEuclidean(x)
    %spatial distance measure
    Distances = sqrt(pdist(x)+3e-6).^-1; % 0.05 best so far

    SimilarityMatrix = squareform(Distances) + eye(size(x, 1));
     
end


TadasBaltrusaitis
github-repos/MATLAB/TadasBaltrusaitis-OpenFace/OpenFace-3d4b5cf8d96138be42bed229447f36cbb09a5a29/model_training/CCNF/CCRF/lib/similarityEuclidean.m
OpenFace
github-repos/MATLAB/TadasBaltrusaitis-OpenFace
3d4b5cf8d96138be42bed229447f36cbb09a5a29