Permalink
Browse files

more cleanup in exampleNuclearNorm.m

  • Loading branch information...
LarsHaalck committed Apr 3, 2018
1 parent cffca6e commit 79abc7285703911cca2653434cca5bcefc79c722
Showing with 1 addition and 7 deletions.
  1. +1 −7 examples/exampleNuclearNorm.m
@@ -14,7 +14,6 @@
figure(2);imagesc(imageNoisy);axis image;colormap(gray);title('Noisy Image')
%% FlexBox
main = flexBox;
main.params.tryCPP = 0;
numberL = main.addPrimalVar(size(image));
numberS = main.addPrimalVar(size(image));
@@ -30,7 +29,7 @@
%nuclear norm regularizer
main.addTerm(nuclearIdentity(weightNuclear,size(image)), numberL);
%1-norm regularizer (doesnt matter if L1
%1-norm regularizer
main.addTerm(L1identity(weightL1,size(image)), numberS);
%run minimization algorithm
@@ -45,8 +44,3 @@
figure(3);imagesc(minLFlex);axis image;colormap(gray);title('L');
figure(4);imagesc(minSFlex);axis image;colormap(gray);title('S');
%% print diffs
%figure(5);imagesc(minLFlex + minSFlex);axis image;colormap(gray);title('L+S');
%figure(6);imagesc(minLFlex + minSFlex - imageNoisy);axis image;colormap(gray);title('L+S - data');
%figure(7);imagesc(minLFlex - image);axis image;colormap(gray);title('L - original');

0 comments on commit 79abc72

Please sign in to comment.