From f618466c25d43f3bae9e40920273bf77de1e1149 Mon Sep 17 00:00:00 2001 From: leochanj105 Date: Mon, 19 Oct 2020 23:09:30 -0400 Subject: initial sd-vbs initial sd-vbs add sd-vbs sd-vbs --- .../common/toolbox/MultiNcut/discretisationEigenVectorData.m | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100755 SD-VBS/common/toolbox/MultiNcut/discretisationEigenVectorData.m (limited to 'SD-VBS/common/toolbox/MultiNcut/discretisationEigenVectorData.m') diff --git a/SD-VBS/common/toolbox/MultiNcut/discretisationEigenVectorData.m b/SD-VBS/common/toolbox/MultiNcut/discretisationEigenVectorData.m new file mode 100755 index 0000000..4626e3d --- /dev/null +++ b/SD-VBS/common/toolbox/MultiNcut/discretisationEigenVectorData.m @@ -0,0 +1,12 @@ +function Y = discretisationEigenVectorData(EigenVector) +% Y = discretisationEigenVectorData(EigenVector) +% +% discretizes previously rotated eigenvectors in discretisation +% Timothee Cour, Stella Yu, Jianbo Shi, 2004 + +[n,k]=size(EigenVector); + + +[Maximum,J]=max(EigenVector'); + +Y=sparse(1:n,J',1,n,k); -- cgit v1.2.2